Bug 674103 - repo list --groupid throws type error
Summary: repo list --groupid throws type error
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: unspecified
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
: Sprint 22
Assignee: Pradeep Kilambi
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks: verified-to-close
TreeView+ depends on / blocked
 
Reported: 2011-01-31 16:41 UTC by Preethi Thomas
Modified: 2011-08-16 12:21 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-08-16 12:08:36 UTC
Embargoed:


Attachments (Terms of Use)

Description Preethi Thomas 2011-01-31 16:41:42 UTC
Description of problem:

[root@preethi ~]# pulp-admin repo list 
+------------------------------------------+
       List of Available Repositories
+------------------------------------------+

Id                      f13                      
Name                    f13                      
FeedURL                 http://download.devel.redhat.com/released/F-13/GOLD/Fedora/x86_64/os/
FeedType                yum                      
Arch                    x86_64                   
Sync Schedule           None                     
Packages                3102                     
Files                   0                        
Distributions           ks-f13-x86_64            
Publish                 True                     
Clones                  []                       
Groups                  None                     


Id                      f14                      
Name                    f14                      
FeedURL                 http://download.devel.redhat.com/released/F-14/GOLD/Fedora/x86_64/os/
FeedType                yum                      
Arch                    x86_64                   
Sync Schedule           None                     
Packages                2766                     
Files                   0                        
Distributions           ks-f14-x86_64            
Publish                 True                     
Clones                  []                       
Groups                  group1                   


[root@preethi ~]# pulp-admin repo list --groupid=group1
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/repo.py", line 240, in run
    if not len(repos):
TypeError: object of type 'NoneType' has no len()

Comment 1 Sayli Karmarkar 2011-03-16 07:37:58 UTC
Not getting this same error message but there is a different error:

$ sudo pulp-admin repo list --groupid=pulp
error: operation failed: not found

$ sudo pulp-admin repo list
+------------------------------------------+
       List of Available Repositories
+------------------------------------------+

Id                 	pulp-repo1               
Name               	pulp-repo                
FeedURL            	http://repos.fedorapeople.org/repos/pulp/pulp/
FeedType           	yum                      
Arch               	noarch                   
Sync Schedule      	2 * * * *                
Packages           	0                        
Files              	0                        
Distributions      	None                     
Publish            	True                     
Clones             	[]                       
Groups             	[u'pulp']                
Filters            	[]

Comment 2 Pradeep Kilambi 2011-03-31 21:24:51 UTC
commit 82a2dcba4630e9044bf2be8b6ac9e5b80c3e666b


$ sudo pulp-admin repo list --groupid=grp2
+------------------------------------------+
       List of Available Repositories
+------------------------------------------+

Id                 	f14-clone2               
Name               	f14-clone1               
Feed URL           	file:///var/lib/pulp//repos/repos/pulp/pulp/fedora-14/x86_64
Feed Type          	local                    
Feed Certs         	No                       
Consumer Certs     	No                       
Architecture       	noarch                   
Sync Schedule      	None                     
Packages           	10                       
Files              	0                        
Distributions      	None                     
Publish            	True                     
Clones             	[]                       
Groups             	['grp2']                 
Filters            	[]

Comment 3 Jeff Ortel 2011-04-01 21:44:44 UTC
build: 0.160

Comment 4 Preethi Thomas 2011-04-08 13:47:05 UTC
[root@preethi ~]# rpm -q pulp
pulp-0.0.160-1.fc14.noarch


root@preethi ~]# pulp-admin repo list --groupid=test-grp
+------------------------------------------+
       List of Available Repositories
+------------------------------------------+

Id                 	f13-clone                
Name               	f13-clone                
Feed URL           	http://repos.fedorapeople.org/repos/pulp/pulp/testing/fedora-13/x86_64/
Feed Type          	yum                      
Feed Certs         	No                       
Consumer Certs     	Yes                      
Architecture       	x86_64                   
Sync Schedule      	None                     
Packages           	10                       
Files              	0                        
Distributions      	None                     
Publish            	True                     
Clones             	[]                       
Groups             	['test-grp']             
Filters            	[]

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

pulp-0.0.223-4.

Comment 6 Preethi Thomas 2011-08-16 12:21:33 UTC
Closing with Community Release 15

pulp-0.0.223-4.


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