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 771363 - Promoting the changeset fails (system test)
Summary: Promoting the changeset fails (system test)
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: katello-agent
Version: 6.0.1
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: Ivan Necas
QA Contact: Garik Khachikyan
URL:
Whiteboard:
Depends On:
Blocks: katello-blockers
TreeView+ depends on / blocked
 
Reported: 2012-01-03 13:59 UTC by Lukas Zapletal
Modified: 2019-09-25 21:08 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-22 18:16:57 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Lukas Zapletal 2012-01-03 13:59:16 UTC
Description of problem:

Promoting the changeset, please wait... error: string indices must be integers (more in the log file)

2012-01-03 04:29:39,972 [ERROR][MainThread] error() @ base.py:184 - string indices must be integers
2012-01-03 04:29:39,974 [ERROR][MainThread] error() @ base.py:185 - Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/katello/client/cli/base.py", line 226, in main
    return command.main(command_args)
  File "/usr/lib/python2.6/site-packages/katello/client/core/base.py", line 149, in main
    return action.main(args[1:])
  File "/usr/lib/python2.6/site-packages/katello/client/core/base.py", line 358, in main
    return self.run()
  File "/usr/lib/python2.6/site-packages/katello/client/core/changeset.py", line 465, in run
    print _("Changeset [ %s ] promotion failed: %s" % (csName, format_task_errors(task.errors())) )
  File "/usr/lib/python2.6/site-packages/katello/client/core/utils.py", line 586, in errors
    return [task["result"]["errors"] for task in self._tasks]
TypeError: string indices must be integers

2012-01-03 04:31:15,060 [ERROR][MainThread] error() @ base.py:342 - error: Validation failed: Name has already been taken
2012-01-03 04:33:53,271 [ERROR][MainThread] error() @ base.py:342 - error: Validation failed: Package 'does_not_exist' not found in the Locker environment
2012-01-03 04:33:54,772 [ERROR][MainThread] error() @ base.py:342 - error: Validation failed: Package group 'does_not_exist' not found in the Locker environment
2012-01-03 04:33:56,317 [ERROR][MainThread] error() @ base.py:342 - error: Validation failed: Package group category 'does_not_exist' not found in the Locker environment

Comment 1 Lukas Zapletal 2012-01-03 14:42:15 UTC
Introduced with 7173f932 most likely, taking.

Comment 3 Ivan Necas 2012-01-04 11:13:29 UTC
Note on reproduction:

kk org create --name TestOrg3
kk environment create --org TestOrg3 --name Dev --prior Locker
kk provider create --name katello --org TestOrg3
kk product create --org TestOrg3 --provider katello --name productzoo1
kk repo create --org TestOrg3 --product productzoo1 --name base-two --url http://lzap.fedorapeople.org/fakerepos/zoo4/
kk repo synchronize --org TestOrg3 --product productzoo1 --name base-two
kk changeset create --org TestOrg3 --name Promotezoo --environment Dev
kk changeset update --add_product productzoo1  --name Promotezoo --environment Dev --org TestOrg3
kk changeset promote --org TestOrg3 --name Promotezoo --environment Dev
kk changeset create --org TestOrg3 --name Promotezoo2 --environment Dev
kk changeset update --from_product productzoo1 --add_erratum RHEA-2010:0001  --name Promotezoo2 --environment Dev --org TestOrg3
kk changeset promote --org TestOrg3 --name Promotezoo2 --environment Dev

It showed up when adding errata on 6.1 system.
katello-0.1.160-1.el6
pulp-0.0.254-8.el6.noarch

Actually, two problems are there:

1. promotion of errata itself
2. handling error result

Comment 4 Ivan Necas 2012-01-04 11:14:22 UTC
Reproduced at Fedora as well

Comment 5 Ivan Necas 2012-01-04 14:50:01 UTC
There was also additional problem on RHEL 6.1. related to https://bugzilla.redhat.com/show_bug.cgi?id=743816 .

Updating yum to yum-3.2.29-21.el6.noarch solved the problem. Adding it as dependency for RHEL 6

Comment 6 Ivan Necas 2012-01-04 15:05:08 UTC
Dependency on yum added in commit a5a38ce72207389f65c1daaea7252e51fbf0f60d.

Another problem with promotion fixed in c24e50abcbff7e206329c95e610a3671c04f0941.

Problem with showing errors in CLI fixed in 
216a1b3c77a0c7412d33f31bcc19f7cdff05b767.


All changes tagged in katello-0.1.163-1

Comment 8 Mike McCune 2012-01-26 19:07:44 UTC
mass ON_QA move

Comment 11 Garik Khachikyan 2012-02-01 12:38:07 UTC
would be checking on RHEL 6.1 latest yum: yum-3.2.29-22.el6.noarch (initial 6.1 is: yum-3.2.29-17.el6.noarch)

Comment 12 Garik Khachikyan 2012-02-10 16:39:31 UTC
# VERIFIED

checked in both: latest RHEL6.1 and RHEL6.2

yum version for rhel6.1 - yum-3.2.29-17.el6_1.1.noarch
yum version for rhel6.2 - yum-3.2.29-22.el6.noarch

the scenario in comment#3 goes fine for both systems.

checked against:
---

subscription-manager-0.99.6-1.el6.x86_64
pulp-0.0.265-1.el6.noarch
candlepin-0.5.17-1.el6.noarch
katello-0.1.231-1.git.1.4ca672f.el6.noarch
katello-cli-0.1.54-1.git.0.2670189.el6.noarch

Comment 14 Mike McCune 2013-08-16 18:14:35 UTC
getting rid of 6.0.0 version since that doesn't exist


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