Bug 1080455
| Summary: | pulp-consumer bind/unbind repo throws an error | ||
|---|---|---|---|
| Product: | [Retired] Pulp | Reporter: | Ina Panova <ipanova> |
| Component: | consumers | Assignee: | Sayli Karmarkar <skarmark> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Ina Panova <ipanova> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | medium | ||
| Version: | unspecified | CC: | cperry, mkovacik, pgustafs, skarmark |
| Target Milestone: | --- | Keywords: | Triaged |
| Target Release: | 2.4.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-08-09 06:56:34 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: | |||
this error appears only with rpm repo bind, puppet repo bind does not throw any error: # pulp-consumer -u admin -p admin puppet bind --repo-id m4 This command may be exited via ctrl+c without affecting the request. [\] Running... Task Succeeded This is already fixed in master as a result of another fix. Moving to modified, so that it gets verified after the next build. The fix for this bug is included in the 2.4.0-0.10.beta build that was just published to the Pulp fedorapeople.org repository. # pulp-consumer -u admin -p admin status
This consumer is registered to the server
[example.com] with the ID [my_consumer].
[root@ip-10-90-2-114 ~]# pulp-admin -u admin -p admin rpm repo create --repo-id somerepo
Successfully created repository [somerepo]
tested in 2.4.0-0.10.beta build
[root@ip-10-90-2-114 ~]# pulp-consumer -u admin -p admin rpm bind --repo-id somerepo
Bind tasks successfully created:
An unexpected error has occurred. More information can be found in the client
log file ~/.pulp/consumer.log.
from ~/.pulp/consumer.log:
2014-04-28 13:57:05,999 - ERROR - Client-side exception occurred
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/pulp/client/extensions/core.py", line 478, in run
exit_code = Cli.run(self, args)
File "/usr/lib/python2.7/site-packages/okaara/cli.py", line 974, in run
exit_code = command_or_section.execute(self.prompt, remaining_args)
File "/usr/lib/python2.7/site-packages/pulp/client/extensions/extensions.py", line 224, in execute
return self.method(*arg_list, **clean_kwargs)
File "/usr/lib/python2.7/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
*** Bug 1091428 has been marked as a duplicate of this bug. *** *** Bug 1096710 has been marked as a duplicate of this bug. *** The fix for this bug is included in the pulp-2.4.0-0.14.beta builds. Tested in pulp-2.4.0-0.14.beta # pulp-consumer -u admin -p admin rpm bind --repo-id m1 Bind tasks successfully created: Task Id: 45c6560a-4009-4c5d-a3a2-29074a28c280 [root@ec2-54-216-83-245 ~]# yum repolist Loaded plugins: pulp-profile-update https://ec2-54-216-83-245.eu-west-1.compute.amazonaws.com/pulp/repos/m1/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found Trying other mirror. https://ec2-54-216-83-245.eu-west-1.compute.amazonaws.com/pulp/repos/m1/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found Trying other mirror. file:///tmp/tito/repodata/repomd.xml: [Errno 14] curl#37 - "Couldn't open file /tmp/tito/repodata/repomd.xml" Trying other mirror. http://repos.fedorapeople.org/repos/pulp/pulp/stable/2/fedora-20/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found Trying other mirror. repo id repo name status fedora/20/x86_64 Fedora 20 - x86_64 38,597 m1 m1 0 pulp-local-build pulp local build 0 pulp-v2-beta/20/x86_64 Pulp v2 Beta Builds 51 pulp-v2-stable/20/x86_64 Pulp v2 Production Releases 0 pulp-v2-testing/20/x86_64 Pulp v2 Testing Builds 51 updates/20/x86_64 Fedora 20 - x86_64 - Updates 16,488 repolist: 55,187 [root@ec2-54-216-83-245 ~]# pulp-admin -u admin -p admin consumer list +----------------------------------------------------------------------+ Consumers +----------------------------------------------------------------------+ Id: c1 Display Name: c1 Description: None Bindings: Confirmed: m1 Unconfirmed: Notes: Moving to Verified. This has been fixed in Pulp 2.4.0-1. |
Description of problem: Consumer binging to the repo via cli throws an error: [root@ip-10-104-226-68 ~]# pulp-consumer -u admin -p admin register --consumer-id c1 Consumer [c1] successfully registered [root@ip-10-104-226-68 ~]# pulp-consumer -u admin -p admin rpm bind --repo-id rpmrepo Bind tasks successfully created: An unexpected error has occurred. More information can be found in the client log file ~/.pulp/consumer.log. from ~/.pulp/consumer.log: 2014-03-25 12:34:41,687 - ERROR - Client-side exception occurred Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/pulp/client/extensions/core.py", line 478, in run exit_code = Cli.run(self, args) File "/usr/lib/python2.7/site-packages/okaara/cli.py", line 974, in run exit_code = command_or_section.execute(self.prompt, remaining_args) File "/usr/lib/python2.7/site-packages/pulp/client/extensions/extensions.py", line 224, in execute return self.method(*arg_list, **clean_kwargs) File "/usr/lib/pulp/consumer/extensions/rpm_consumer/pulp_cli.py", line 72, in bind tasks = [dict(task_id=str(t.task_id)) for t in response.response_body] TypeError: 'Task' object is not iterable Same error with: # pulp-consumer -u admin -p admin rpm unbind --repo-id rpmrepo Unbind tasks successfully created: An unexpected error has occurred. More information can be found in the client log file ~/.pulp/consumer.log. Despite this error the repo is bound: # pulp-consumer history +----------------------------------------------------------------------+ Consumer History [c1] +----------------------------------------------------------------------+ Consumer Id: c1 Type: repo_bound Details: Distributor Id: yum_distributor Repo Id: rpmrepo Originator: admin Timestamp: 2014-03-25T13:00:35Z And in 'yum repolist' this repo is also present. Version-Release number of selected component (if applicable): pulp-consumer-client-2.4.0-0.3.alpha.git.13.3215df6.fc20.noarch How reproducible: always Steps to Reproduce: 1. Register consumer 2. Bind consumer to the repo/unbind consumer 3. Actual results: bind/unbind consumer throws an error Expected results: no error should be raised Additional info: