Bug 653480
| Summary: | Error on running pulp-admin consumer info | ||
|---|---|---|---|
| Product: | [Retired] Pulp | Reporter: | Preethi Thomas <pthomas> |
| Component: | z_other | Assignee: | Pradeep Kilambi <pkilambi> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Preethi Thomas <pthomas> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | unspecified | Keywords: | Triaged |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-08-16 13:58:33 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 647488 | ||
commit b0f25bca3559afb607985c1087a16f787ec623cc
Author: Pradeep Kilambi <pkilambi>
Date: Wed Nov 17 14:32:07 2010 -0500
bug#653480 - Fixing busted consumer info call and separate pkg profile
made few enhancements to separate our pkg profile..
$ sudo pulp-admin consumer info
+------------------------------------------+
Consumer Information
+------------------------------------------+
Id pulp-consumer
Description None
Subscribed Repos [u'f13-updates']
Additional info {}
$ sudo pulp-admin consumer info --show-profile |less
+------------------------------------------+
Consumer Information
+------------------------------------------+
Id pulp-consumer
Description None
Subscribed Repos [u'f13-updates']
Additional info {}
+------------------------------------------+
Package Profile associated with consumer [pulp-consumer]
+------------------------------------------+
ql2200-firmware-2.02.08-3.fc12.noarch
libcurl-devel-7.20.1-2.fc13.x86_64
c2050-0.3b-3.fc12.x86_64
fedora-screensaver-theme-1.0.0-5.fc12.noarch
ini4j-0.4.1-2.fc12.noarch
openvpn-2.1.1-2.fc13.x86_64
ca-certificates-2010-2.fc13.noarch
xorg-x11-drv-void-1.3.0-5.fc13.x86_64
libpng-devel-1.2.44-1.fc13.x86_64
libdiscid-0.2.2-4.fc12.x86_64
mx4j-3.0.1-9.11.fc13.noarch
python-simplejson-2.0.9-3.fc12.x86_64
...
Fixed in 0.109. [root@10 ~]# pulp-admin consumer list
+------------------------------------------+
Consumer Information
+------------------------------------------+
Id 10.16.79.211
Description None
Subscribed Repos /pulp/api/consumers/10.16.79.211/repoids/
Additional info {}
[root@10 ~]# pulp-admin consumer info --id=10.16.79.211
+------------------------------------------+
Consumer Information
+------------------------------------------+
Id 10.16.79.211
Description None
Subscribed Repos []
Additional info {}
[root@10 ~]# pulp-admin consumer info --show-profile |less
+------------------------------------------+
Package Profile associated with consumer [10.16.79.211]
+------------------------------------------+
createrepo-0.9.8-5.fc14.noarch
setup-2.8.23-1.fc14.noarch
python-webpy-0.32-6.fc14.noarch
basesystem-10.0-3.noarch
ca-certificates-2010.63-3.fc14.noarch
tzdata-2010k-1.fc14.noarch
glibc-common-2.12.90-17.x86_64
glibc-2.12.90-17.x86_64
zlib-1.2.5-2.fc14.x86_64
audit-libs-2.0.4-4.fc14.x86_64
Closing with Community Release 15 pulp-0.0.223-4. |
Description of problem: [root@preethi ~]# pulp-admin consumer list +------------------------------------------+ Consumer Information +------------------------------------------+ Id preethi.usersys.redhat.com Description None Subscribed Repos /pulp/api/consumers/preethi.usersys.redhat.com/repoids/ Profile https://preethi.usersys.redhat.com:443/pulp/api/consumers/preethi.usersys.redhat.com/package_profile/ Additional info {} [root@preethi ~]# pulp-admin consumer info --id=preethi.usersys.redhat.com Traceback (most recent call last): File "/usr/bin/pulp-admin", line 111, in <module> admin.main() File "/usr/lib/python2.6/site-packages/pulp/client/cli/base.py", line 105, in main command.main(args[1:]) File "/usr/lib/python2.6/site-packages/pulp/client/core/base.py", line 116, in main action.main(args[1:]) File "/usr/lib/python2.6/site-packages/pulp/client/core/base.py", line 200, in main self.run() File "/usr/lib/python2.6/site-packages/pulp/client/core/consumer.py", line 112, in run for pkg in cons['package_profile'].values(): AttributeError: 'list' object has no attribute 'values'