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

Bug 670233

Summary: consumer list fails with type error
Product: [Retired] Pulp Reporter: Preethi Thomas <pthomas>
Component: z_otherAssignee: Sayli Karmarkar <skarmark>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: cperry, jconnor, skarmark
Target Milestone: ---Keywords: Triaged
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 12:10:15 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    

Description Preethi Thomas 2011-01-17 16:17:56 UTC
Description of problem:


[root@preethi ~]# rpm -q pulp
pulp-0.0.125-1.fc14.noarch
[root@preethi ~]# pulp-admin consumer list
Traceback (most recent call last):
  File "/usr/bin/pulp-admin", line 147, in <module>
    admin.main()
  File "/usr/lib/python2.7/site-packages/pulp/client/cli/base.py", line 98, in main
    command.main(args[1:])
  File "/usr/lib/python2.7/site-packages/pulp/client/core/base.py", line 118, in main
    action.main(args[1:])
  File "/usr/lib/python2.7/site-packages/pulp/client/core/base.py", line 229, in main
    self.run()
  File "/usr/lib/python2.7/site-packages/pulp/client/core/consumer.py", line 81, in run
    con['package_profile'])
  File "/usr/lib64/python2.7/urlparse.py", line 247, in urljoin
    urlparse(url, bscheme, allow_fragments)
  File "/usr/lib64/python2.7/urlparse.py", line 134, in urlparse
    tuple = urlsplit(url, scheme, allow_fragments)
  File "/usr/lib64/python2.7/urlparse.py", line 167, in urlsplit
    cached = _parse_cache.get(key, None)
TypeError: unhashable type: 'list'
[root@preethi ~]#

Comment 1 Sayli Karmarkar 2011-01-17 21:07:21 UTC
Fixed. 

$ sudo pulp-admin consumer list
+------------------------------------------+
            Consumer Information
+------------------------------------------+

Id                 	consumer1                
Description        	None                     
Subscribed Repos   	[u'example']             
Additional info    	key  :  value,           


Id                 	consumer2                
Description        	None                     
Subscribed Repos   	[u'example']             
Additional info

Comment 2 Jay Dobies 2011-01-17 21:33:43 UTC
Fixed in 0.126.

Comment 3 Preethi Thomas 2011-01-18 13:52:36 UTC
verified

[root@preethi ~]# pulp-admin consumer list
+------------------------------------------+
            Consumer Information
+------------------------------------------+
[root@preethi ~]# pulp-client consumer create --id=preethi.usersys.redhat.com
Successfully created consumer [ preethi.usersys.redhat.com ]

[root@preethi ~]# pulp-admin consumer list
+------------------------------------------+
            Consumer Information
+------------------------------------------+

Id                      preethi.usersys.redhat.com
Description             None                     
Subscribed Repos        []                       
Additional info                                  

[root@preethi ~]# rpm -q pulp
pulp-0.0.126-1.fc14.noarch

Comment 4 Preethi Thomas 2011-08-16 12:10:15 UTC
Closing with Community Release 15

pulp-0.0.223-4.

Comment 5 Preethi Thomas 2011-08-16 12:22:19 UTC
Closing with Community Release 15

pulp-0.0.223-4.