Bug 640021
| Summary: | consumergroup list results in error if the consumer group has a keyvalue. | ||
|---|---|---|---|
| Product: | [Retired] Pulp | Reporter: | Preethi Thomas <pthomas> |
| Component: | z_other | Assignee: | Sayli Karmarkar <skarmark> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Preethi Thomas <pthomas> |
| Severity: | medium | Docs Contact: | |
| Priority: | high | ||
| Version: | unspecified | CC: | cperry, whayutin |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-08-16 13:59:22 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: | 641987 | ||
$ sudo pulp-admin consumergroup add_keyvalue --id=demogroup --key=test_key --value=key
Successfully added key-value pair test_key:key
$ sudo pulp-admin consumergroup list
+------------------------------------------+
List of Available Consumer Groups
+------------------------------------------+
Id demogroup
Description
Consumer ids []
Additional info {u'test_key': u'key'}
Seems to be working fine. I am not able to reproduce it. Please re-test it with the new build.
verified.
[root@preethi ~]# rpm -qa pulp
pulp-0.0.71-1.fc13.noarch
root@preethi ~]# pulp-admin consumergroup add_keyvalue --id=consumer-grp1 --key=location --value=rdu
Successfully added key-value pair location:rdu
[root@preethi ~]# pulp-admin consumergroup list
+------------------------------------------+
List of Available Consumer Groups
+------------------------------------------+
Id consumer-grp1
Description
Consumer ids []
Additional info {u'location': u'rdu'}
Closing with Community Release 15 pulp-0.0.223-4. |
Description of problem: consumergroup list results in error if you add a keyvalue to the consumergroup. Steps 1. Create a consumer group [root@preethi ~]# pulp-admin consumergroup create --id=consumer_grp1 --consumerids=preethi.usersys.redhat.com Successfully created Consumer group [ consumer_grp1 ] with description [ ] You have new mail in /var/spool/mail/root 2. Add a key value to the consumergroup [root@preethi ~]# pulp-admin consumergroup add_keyvalue --id=consumer_grp1 --key=test_key --value=key Successfully added key-value pair test_key:key 3. No do a consumergroup list [root@preethi ~]# pulp-admin consumergroup list +------------------------------------------+ List of Available Consumer Groups +------------------------------------------+ Traceback (most recent call last): File "/usr/bin/pulp-admin", line 30, in <module> pulpcli.PulpCore().main() File "/usr/lib/python2.6/site-packages/pulp/client/pulpcli.py", line 108, in main cmd.main() File "/usr/lib/python2.6/site-packages/pulp/client/core/basecore.py", line 151, in main self._do_core() File "/usr/lib/python2.6/site-packages/pulp/client/core/core_consumergroup.py", line 141, in _do_core self._list() File "/usr/lib/python2.6/site-packages/pulp/client/core/core_consumergroup.py", line 193, in _list group["key_value_pairs"]) KeyError: 'key_value_pairs'