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
Introduced with 7173f932 most likely, taking.
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
Reproduced at Fedora as well
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
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
mass ON_QA move
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)
# 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
getting rid of 6.0.0 version since that doesn't exist