Description of problem: when you specify invalid job_id to "system_group job_tasks" you get exception system_group job_tasks --org org --name mygroup --job_id 0 error: 'tasks' (more in the log file /var/log/katello/client.log) /var/log/katello/client.log: 2013-07-17 08:17:42,236 [ERROR][MainThread] error() @ base.py:202 - 'tasks' 2013-07-17 08:17:42,236 [ERROR][MainThread] error() @ base.py:203 - Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/katello/client/cli/base.py", line 215, in main ret_code = super(KatelloCLI, self).main(args, command_name, parent_usage) File "/usr/lib/python2.6/site-packages/katello/client/core/base.py", line 312, in main return subcommand.main(self.args[1:], self.args[0], self._get_usage_line(command_name, parent_usage)) File "/usr/lib/python2.6/site-packages/katello/client/core/base.py", line 312, in main return subcommand.main(self.args[1:], self.args[0], self._get_usage_line(command_name, parent_usage)) File "/usr/lib/python2.6/site-packages/katello/client/core/base.py", line 390, in main return self.run() File "/usr/lib/python2.6/site-packages/katello/client/core/system_group.py", line 237, in run tasks = history['tasks'] KeyError: 'tasks' Version-Release number of selected component (if applicable): katello-1.4.2-18.el6sat.noarch katello-candlepin-cert-key-pair-1.0-1.noarch katello-agent-1.4.3-1.git.1.24fe511.el6.noarch katello-certs-tools-1.4.2-2.el6sat.noarch katello-configure-1.4.3-16.el6sat.noarch katello-glue-pulp-1.4.2-18.el6sat.noarch katello-all-1.4.2-18.el6sat.noarch katello-cli-common-1.4.2-8.el6sat.noarch ruby193-rubygem-foreman-katello-engine-0.0.8-6.el6sat.noarch signo-katello-0.0.19-1.el6sat.noarch katello-glue-elasticsearch-1.4.2-18.el6sat.noarch katello-configure-foreman-1.4.3-16.el6sat.noarch katello-foreman-all-1.4.2-18.el6sat.noarch katello-qpid-client-key-pair-1.0-1.noarch katello-cli-1.4.2-8.el6sat.noarch ruby193-rubygem-katello_api-0.0.3-2.el6_4.noarch katello-common-1.4.2-18.el6sat.noarch katello-selinux-1.4.3-3.el6sat.noarch katello-glue-candlepin-1.4.2-18.el6sat.noarch ruby193-rubygem-katello-foreman-engine-0.0.3-6.el6sat.noarch katello-qpid-broker-key-pair-1.0-1.noarch How reproducible: always Steps to Reproduce: 1. system_group create --name grp --org org 2. system_group job_tasks --org org --name grp --job_id 0 Actual results: error: 'tasks' (more in the log file /var/log/katello/client.log) Expected results: Additional info:
Since this issue was entered in Red Hat Bugzilla, the release flag has been set to ? to ensure that it is properly evaluated for this release.
Lets add some error checking to the API to check for this
Created attachment 812681 [details] attempted_error_ reproduction Tried to reproduce the exception, but get the correct/expected error message - looks like it is fixed.
But it is not expected output what I can see in your screenshot. error: 'tasks' (more in the log file /var/log/katello/client.log) Have you looked into client.log? File "/usr/lib/python2.6/site-packages/katello/client/core/system_group.py", line 237, in run tasks = history['tasks'] KeyError: 'tasks'
This is related to the old cli, I am closing this out. If you feel this was a mistake, please go ahead and re-open. Thank you!