-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Traceback on jobs.active #11151
Comments
Even after upgrading to 2014.1.1 (and I've verified that the code is as it should be in the associated fix), I'm seeing the same behavior on ubuntu 12.04. Traceback and --versions-report are identical to above. |
@JustinFarris This has already been fixed in develop. See 537f96f. |
@cachedout I see that, but as I said, even with the change listed, I'm still seeing the error. |
@JustinFarris Could you please post the stacktrace that you're receiving? |
$ sudo salt-run jobs.active $ sudo salt --versions-report $ cat /usr/lib/pymodules/python2.7/salt/runners/jobs.py |
As mentioned before, this was fixed here. In your snippet, you have:
Per the current HEAD, that should be:
This fix is not yet in any of the 2014.1 releases but it should be straightforward to change that line and hopefully eliminate the traceback that you're seeing. |
Ah, I'm a dummy. I saw one change but missed another. Sorry for the whining. |
@JustinFarris No worries at all. Glad you got this resolved! |
Hi I'm on 2014.1.5 RPM EPEL and I'm getting this stacktrace when running salt-run jobs.active. [ERROR ] An un-handled exception was caught by salt's global exception handler: From /usr/lib/python2.6/site-packages/salt/runners/jobs.py I still see 'Target': job['tgt'], did the fix get included in 2014.1.5 ? def _format_job_instance(job): |
@wongster80 I submitted a PR to include the necessary fix in the upcoming release of 2014.1.6. |
My another machine is OK. |
This is with 2014.1:
$ salt-run jobs.active
[ERROR ] An un-handled exception was caught by salt's global exception handler:
KeyError: 'tgt'
Traceback (most recent call last):
File "/usr/local/bin/salt-run", line 10, in
salt_run()
File "/usr/lib/pymodules/python2.7/salt/scripts.py", line 95, in salt_run
client.run()
File "/usr/lib/pymodules/python2.7/salt/cli/init.py", line 357, in run
runner.run()
File "/usr/lib/pymodules/python2.7/salt/runner.py", line 219, in run
self.opts['fun'], self.opts['arg'], self.opts)
File "/usr/lib/pymodules/python2.7/salt/runner.py", line 126, in cmd
return self.functions[fun](*args, **kwargs)
File "/usr/lib/pymodules/python2.7/salt/runners/jobs.py", line 36, in active
ret[job['jid']] = _format_job_instance(job)
File "/usr/lib/pymodules/python2.7/salt/runners/jobs.py", line 178, in _format_job_instance
'Target': job['tgt'],
KeyError: 'tgt'
Traceback (most recent call last):
File "/usr/local/bin/salt-run", line 10, in
salt_run()
File "/usr/lib/pymodules/python2.7/salt/scripts.py", line 95, in salt_run
client.run()
File "/usr/lib/pymodules/python2.7/salt/cli/init.py", line 357, in run
runner.run()
File "/usr/lib/pymodules/python2.7/salt/runner.py", line 219, in run
self.opts['fun'], self.opts['arg'], self.opts)
File "/usr/lib/pymodules/python2.7/salt/runner.py", line 126, in cmd
return self.functions[fun](*args, **kwargs)
File "/usr/lib/pymodules/python2.7/salt/runners/jobs.py", line 36, in active
ret[job['jid']] = _format_job_instance(job)
File "/usr/lib/pymodules/python2.7/salt/runners/jobs.py", line 178, in _format_job_instance
'Target': job['tgt'],
KeyError: 'tgt'
$ echo "Yes, the traceback is repeated twice." > /dev/null
$ salt --versions-report
Salt: 2014.1.0
Python: 2.7.3 (default, Feb 27 2014, 19:58:35)
Jinja2: 2.6
M2Crypto: 0.21.1
msgpack-python: 0.1.10
msgpack-pure: Not Installed
pycrypto: 2.4.1
PyYAML: 3.10
PyZMQ: 13.0.0
ZMQ: 3.2.2
This is under an Ubuntu 12.04.
The text was updated successfully, but these errors were encountered: