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

Bug 603901

Summary: pulp consumer list error
Product: [Retired] Pulp Reporter: wes hayutin <whayutin>
Component: z_otherAssignee: Pradeep Kilambi <pkilambi>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: low    
Version: unspecifiedCC: jconnor, ssachdev
Target Milestone: ---Keywords: QA-Closed
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-10-20 16:11:05 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:

Description wes hayutin 2010-06-14 19:29:19 UTC
Description of problem:

commit 29a9294f2b6955d04221ca9b2ee445b1cfc659b0

[root@localhost noarch]# pulp consumer list
+-------------------------------------------+
    List of Consumers 
+-------------------------------------------+

[root@localhost noarch]# pulp consumer create --id=0 --description=user-00
 Successfully created Consumer [ 0 ]
[root@localhost noarch]# pulp consumer list
+-------------------------------------------+
    List of Consumers 
+-------------------------------------------+
Traceback (most recent call last):
  File "/usr/bin/pulp", line 26, in <module>
    pulpcli.CLI().main()
  File "build/bdist.linux-i686/egg/pulptools/pulpcli.py", line 516, in main
  File "build/bdist.linux-i686/egg/pulptools/pulpcli.py", line 56, in main
  File "build/bdist.linux-i686/egg/pulptools/pulpcli.py", line 139, in _do_core
  File "build/bdist.linux-i686/egg/pulptools/pulpcli.py", line 173, in _list
NameError: global name 'constants' is not defined

Comment 1 wes hayutin 2010-06-14 21:06:39 UTC
[root@localhost ~]# pulp repo list
+-------------------------------------------+
    List of Available Repositories 
+-------------------------------------------+
Traceback (most recent call last):
  File "/usr/bin/pulp", line 26, in <module>
    pulpcli.CLI().main()
  File "build/bdist.linux-i686/egg/pulptools/pulpcli.py", line 516, in main
  File "build/bdist.linux-i686/egg/pulptools/pulpcli.py", line 56, in main
  File "build/bdist.linux-i686/egg/pulptools/pulpcli.py", line 310, in _do_core
  File "build/bdist.linux-i686/egg/pulptools/pulpcli.py", line 354, in _list
NameError: global name 'constants' is not defined
[root@localhost ~]#

Comment 3 wes hayutin 2010-06-15 16:29:18 UTC
[root@localhost ~]# pulp consumer create --id=1 --description=user01
 Successfully created Consumer [ 1 ]
[root@localhost ~]# pulp consumer list
+-------------------------------------------+
    List of Consumers 
+-------------------------------------------+
Traceback (most recent call last):
  File "/usr/bin/pulp", line 26, in <module>
    pulpcli.CLI().main()
  File "build/bdist.linux-i686/egg/pulptools/pulpcli.py", line 516, in main
  File "build/bdist.linux-i686/egg/pulptools/pulpcli.py", line 56, in main
  File "build/bdist.linux-i686/egg/pulptools/pulpcli.py", line 139, in _do_core
  File "build/bdist.linux-i686/egg/pulptools/pulpcli.py", line 173, in _list
NameError: global name 'constants' is not defined


[root@localhost pulp]# pulp repo list
+-------------------------------------------+
    List of Available Repositories 
+-------------------------------------------+
Traceback (most recent call last):
  File "/usr/bin/pulp", line 26, in <module>
    pulpcli.CLI().main()
  File "build/bdist.linux-i686/egg/pulptools/pulpcli.py", line 516, in main
  File "build/bdist.linux-i686/egg/pulptools/pulpcli.py", line 56, in main
  File "build/bdist.linux-i686/egg/pulptools/pulpcli.py", line 310, in _do_core
  File "build/bdist.linux-i686/egg/pulptools/pulpcli.py", line 354, in _list
NameError: global name 'constants' is not defined
[root@localhost pulp]# 



[root@localhost pulp]# git show
commit 0aa40cb3e6527d5be703d152c577f18f43ae8a0a
Author: Pradeep Kilambi <pkilambi>
Date:   Tue Jun 15 11:21:40 2010 -0400

Comment 4 wes hayutin 2010-06-15 16:29:52 UTC
server/client = 10.16.120.143  root/dog

Comment 6 Shveta 2010-08-18 09:46:34 UTC
[root@fedora12g2 ~]# pulp-admin -u admin -p admin consumer list
+-------------------------------------------+
    Consumer Information 
+-------------------------------------------+

Id                      10.65.201.137            
Description             10.65.201.137            
Subscribed Repos        /consumers/10.65.201.137/repoids/
Profile                 http://localhost:8811/consumers/10.65.201.137/package_profile/


Id                      10.65.193.75             
Description             10.65.193.75             
Subscribed Repos        /consumers/10.65.193.75/repoids/
Profile                 http://localhost:8811/consumers/10.65.193.75/package_profile/

Comment 7 Preethi Thomas 2010-10-20 16:11:05 UTC
Closed after review.