Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1096710

Summary: Error message is displayed when binding a consumer to a repository
Product: [Retired] Pulp Reporter: pgustafs
Component: consumersAssignee: pulp-bugs
Status: CLOSED DUPLICATE QA Contact: pulp-qe-list
Severity: unspecified Docs Contact:
Priority: medium    
Version: 2.4 BetaCC: mhrivnak
Target Milestone: ---Keywords: Triaged
Target Release: 2.4.0   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-05-13 15:50:17 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description pgustafs 2014-05-12 10:02:55 UTC
Description of problem: When binding an consumer to an rpm repository using pulp-consumer an error message is displayed on the consumer even though the bind was successful.


Version-Release number of selected component (if applicable):
# rpm -qa | grep pulp
python-pulp-common-2.4.0-0.13.beta.el6.noarch
python-pulp-puppet-common-2.4.0-0.13.beta.el6.noarch
python-pulp-client-lib-2.4.0-0.13.beta.el6.noarch
python-pulp-bindings-2.4.0-0.13.beta.el6.noarch
pulp-agent-2.4.0-0.13.beta.el6.noarch
pulp-puppet-consumer-extensions-2.4.0-0.13.beta.el6.noarch
pulp-rpm-handlers-2.4.0-0.13.beta.el6.noarch
python-isodate-0.5.0-1.pulp.el6.noarch
python-pulp-agent-lib-2.4.0-0.13.beta.el6.noarch
python-pulp-rpm-common-2.4.0-0.13.beta.el6.noarch
pulp-consumer-client-2.4.0-0.13.beta.el6.noarch
pulp-rpm-consumer-extensions-2.4.0-0.13.beta.el6.noarch
pulp-rpm-yumplugins-2.4.0-0.13.beta.el6.noarch
pulp-puppet-handlers-2.4.0-0.13.beta.el6.noarch



How reproducible: Always


Steps to Reproduce:
1. register a consumer to pulp-server
2. bind to a rpm repository
# pulp-consumer rpm bind --repo-id test-repo
Bind tasks successfully created:

An unexpected error has occurred. More information can be found in the client
log file ~/.pulp/consumer.log.

You have new mail in /var/spool/mail/root
[root@pgustafs-01 yum.repos.d]# 
Message from syslogd@pgustafs-01 at May 12 11:58:02 ...
 �<30>goferd: [INFO][worker-0] pulp_rpm.handlers.repolib:330 - Configuring repo [test-repo] to use baseurl [https://pulp-server.example.com/pulp/repos/test-repo]


~/.pulp/consumer.log shows:

2014-05-12 11:58:02,179 - 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 974, 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/python2.6/site-packages/pulp_rpm/extensions/consumer/pulp_cli.py", line 61, in bind
    tasks = [dict(task_id=str(t.task_id)) for t in response.response_body]
TypeError: 'Task' object is not iterable




Additional info:

Comment 1 Michael Hrivnak 2014-05-13 15:50:17 UTC

*** This bug has been marked as a duplicate of bug 1080455 ***