saltstack/salt — Issue #618: Traceback when managing service on FreeBSD
Author: cedwards
Created: 2012-01-31 17:13:31+00:00
State: open

I get the following on occasion when running 'salt-call state.highstate' on one of my FreeBSD servers (jailed). I can re-run the command and it'll exit successfully, but periodically I get this Traceback in the same place.

...[snip]...
[INFO ] No changes made for nginx
[INFO ] Executing state service.watcher for nginx
[INFO ] Executing command ps auxwww | grep nginx | grep -v grep | awk '{print $2}' in directory /root
Traceback (most recent call last):
File "/usr/local/bin/salt-call", line 21, in
main()
File "/usr/local/bin/salt-call", line 17, in main
client.run()
File "/usr/local/lib/python2.7/site-packages/salt/cli/__init__.py", line 633, in run
caller.run()
File "/usr/local/lib/python2.7/site-packages/salt/cli/caller.py", line 99, in run
ret = self.call()
File "/usr/local/lib/python2.7/site-packages/salt/cli/caller.py", line 39, in call
*self.opts['arg']
File "/usr/local/lib/python2.7/site-packages/salt/modules/state.py", line 79, in highstate
return st_.call_highstate()
File "/usr/local/lib/python2.7/site-packages/salt/state.py", line 1000, in call_highstate
return self.state.call_high(high)
File "/usr/local/lib/python2.7/site-packages/salt/state.py", line 695, in call_high
ret = self.format_verbosity(self.call_chunks(chunks))
File "/usr/local/lib/python2.7/site-packages/salt/state.py", line 531, in call_chunks
running = self.call_chunk(low, running, chunks)
File "/usr/local/lib/python2.7/site-packages/salt/state.py", line 669, in call_chunk
ret = self.call(low)
File "/usr/local/lib/python2.7/site-packages/salt/state.py", line 515, in call
ret = self.states[cdata['full']](*cdata['args'])
File "/usr/local/lib/python2.7/site-packages/salt/states/service.py", line 285, in watcher
changes = {name: __salt__['service.restart'](name)}
File "/usr/local/lib/python2.7/site-packages/salt/modules/service.py", line 69, in restart
cmd = os.path.join(grainmap[__grains__['os']],
KeyError: 'FreeBSD'