Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 974503 - CLI - system task command returns error when failed task id given
Summary: CLI - system task command returns error when failed task id given
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hammer
Version: Nightly
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: Unspecified
Assignee: Walden Raines
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-06-14 09:56 UTC by Ales Dujicek
Modified: 2014-03-12 23:01 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-03-12 23:01:41 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Ales Dujicek 2013-06-14 09:56:19 UTC
Description of problem:

"system task" command returns error when failed task's status requested

command works properly during running task:
katello> system task --id 7774f6ad-f2af-4208-8689-0ec57bdaee8e
--------------------------------------------------------------------------------
                                  Remote task
--------------------------------------------------------------------------------

System   : system1
Action   : Package Group Install: @foogroup
Started  : 2013/06/14 09:41:03
Finished : 
Status   : running
Result   : 


but after it is finished:
katello> system task --id 7774f6ad-f2af-4208-8689-0ec57bdaee8e
error: cannot concatenate 'str' and 'list' objects (more in the log file /var/log/katello/client.log)



client.log:
2013-06-14 05:41:15,813 [ERROR][MainThread] error() @ base.py:202 - cannot concatenate 'str' and 'list' objects
2013-06-14 05:41:15,816 [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.py", line 322, in run
    task['result'] = "\n" + task['result_description']
TypeError: cannot concatenate 'str' and 'list' objects


Version-Release number of selected component (if applicable):
signo-katello-0.0.9-1.el6.noarch
katello-configure-1.4.3-1.git.62.f050662.el6.noarch
katello-qpid-client-key-pair-1.0-1.noarch
katello-glue-candlepin-1.4.2-1.git.654.58f211f.el6.noarch
katello-all-1.4.2-1.git.654.58f211f.el6.noarch
katello-candlepin-cert-key-pair-1.0-1.noarch
katello-repos-1.4.2-1.el6.noarch
katello-cli-1.4.2-1.git.90.6c7a175.el6.noarch
katello-certs-tools-1.4.2-1.el6.noarch
katello-cli-common-1.4.2-1.git.90.6c7a175.el6.noarch
katello-glue-pulp-1.4.2-1.git.654.58f211f.el6.noarch
katello-qpid-broker-key-pair-1.0-1.noarch
katello-glue-elasticsearch-1.4.2-1.git.654.58f211f.el6.noarch
katello-1.4.2-1.git.654.58f211f.el6.noarch
katello-common-1.4.2-1.git.654.58f211f.el6.noarch
katello-selinux-1.4.3-1.git.4.99dc194.el6.noarch

How reproducible:
always

Steps to Reproduce:
1. system packages --org orgcon-1371196880 --name system1  --install_group foogroup
Performing remote action [ 7774f6ad-f2af-4208-8689-0ec57bdaee8e ]...
2. system task --id 7774f6ad-f2af-4208-8689-0ec57bdaee8e

Comment 1 RHEL Program Management 2013-06-14 10:13:03 UTC
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.

Comment 5 Bryan Kearney 2014-03-12 23:01:41 UTC
Closing old bugs which are not relevant based on new UI and CLI


Note You need to log in before you can comment on or make changes to this bug.