Bug 603901 - pulp consumer list error
Summary: pulp consumer list error
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: unspecified
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
: ---
Assignee: Pradeep Kilambi
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-06-14 19:29 UTC by wes hayutin
Modified: 2011-07-15 19:30 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-10-20 16:11:05 UTC
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.