Bug 678708 - repo sync produce KeyError
Summary: repo sync produce KeyError
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: unspecified
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: ---
: ---
Assignee: Jeff Ortel
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks: verified-to-close
TreeView+ depends on / blocked
 
Reported: 2011-02-18 22:54 UTC by dgao
Modified: 2011-08-16 12:22 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2011-08-16 12:09:35 UTC
Embargoed:


Attachments (Terms of Use)

Description dgao 2011-02-18 22:54:18 UTC
[root@pulp-nightly ~]# pulp-admin auth login -u admin -p admin
User credentials successfully stored at [/root/.pulp]

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

Id                 	foo                      
Name               	foo                      
FeedURL            	http://10.16.76.78/pub/updates
FeedType           	yum                      
Arch               	noarch                   
Sync Schedule      	None                     
Packages           	7                        
Files              	0                        
Distributions      	None                     
Publish            	True                     
Clones             	[]                       
Groups             	None                     


[root@pulp-nightly ~]# pulp-admin repo sync --id=foo -F
Traceback (most recent call last):
  File "/usr/bin/pulp-admin", line 149, in <module>
    admin.main()
  File "/usr/lib/python2.6/site-packages/pulp/client/cli/base.py", line 137, in main
    command.main(args[1:])
  File "/usr/lib/python2.6/site-packages/pulp/client/core/base.py", line 118, in main
    action.main(args[1:])
  File "/usr/lib/python2.6/site-packages/pulp/client/core/base.py", line 224, in main
    self.run()
  File "/usr/lib/python2.6/site-packages/pulp/client/core/repo.py", line 685, in run
    task = self.get_task()
  File "/usr/lib/python2.6/site-packages/pulp/client/core/repo.py", line 664, in get_task
    self.get_repo(id)
  File "/usr/lib/python2.6/site-packages/pulp/client/core/repo.py", line 75, in get_repo
    repo = self.repository_api.repository(id)[1]
KeyError: 1

Comment 1 Jeff Ortel 2011-02-22 14:35:54 UTC
Build: 0.140

Comment 2 dgao 2011-02-22 15:51:47 UTC
[root@pulp-qe ~]# pulp-admin auth login -u admin -p admin
User credentials successfully stored at [/root/.pulp]


[root@pulp-qe ~]# pulp-admin repo create --id=foo --feed=yum:http://10.16.76.78/pub/updates
Successfully created repository [ foo ]

[root@pulp-qe ~]# pulp-admin repo sync --id=foo -F
Sync for repository foo started
Sync: Finished
0/7 new items downloaded
7/7 existing items processed

Item Details: 
Rpms: 7/7

[root@pulp-qe ~]# pulp-admin repo content --id=foo 
+------------------------------------------+
               Contents of foo
+------------------------------------------+

Packages in foo: 

warnerbros-0.1-1.x86_64.rpm
feedless-1.0-1.noarch.rpm
emoticons-0.1-2.x86_64.rpm
origin-1.0-1.noarch.rpm
animaniacs-0.1-1.x86_64.rpm
patb-0.1-2.x86_64.rpm
parent-1.0-1.noarch.rpm

Errata in foo: 

RHEA-2010:9999

Files in foo: 

 none

Comment 3 Preethi Thomas 2011-08-16 12:09:35 UTC
Closing with Community Release 15

pulp-0.0.223-4.

Comment 4 Preethi Thomas 2011-08-16 12:22:01 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.