Issue #370
closedUpdating consumer groups
Description
Description of problem:
We have a few consumers setup (CentOS). We are able to update the individual consumers without error. We grouped several like consumers together into a consumer group and tried to update the consumer group together. That fails and appears to be a bug in how the CLI is parsing the data it gets back from the server.
Version-Release number of selected component (if applicable):
How reproducible: Very. Every time.
Steps to Reproduce:
1. pulp-admin rpm consumer group package update --consumer-group-id=it-nonprod --names='*'
"An unexpected error has occurred. More information can be found in the client
log file ~/.pulp/admin.log."
Consumer logs show nothing on the consumers in the group. Gopher logs show that responses are being sent.
Actual results:
2013-09-06 10:27:51,241 - ERROR - Client-side exception occurred
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/pulp/client/extensions/core.py", line 478, in run
exit_code = Cli.run(self, args)
File "/usr/lib/python2.6/site-packages/okaara/cli.py", line 966, in run
exit_code = command_or_section.execute(self.prompt, remaining_args)
File "/usr/lib/python2.6/site-packages/pulp/client/extensions/extensions.py", line 224, in execute
return self.method(*arg_list, **clean_kwargs)
File "/usr/lib/pulp/admin/extensions/rpm_admin_consumer/consumer_group_package.py", line 183, in run
self.update(consumer_group_id, units, options)
File "/usr/lib/pulp/admin/extensions/rpm_admin_consumer/consumer_group_package.py", line 195, in update
msg = _('Update task created with id [%s]') % task.task_id
AttributeError: 'list' object has no attribute 'task_id'
Expected results:
Expected it to attempt to update all consumers in the consumer group
+ This bug was cloned from Bugzilla Bug #1005263 +
Related issues