Bug 678346

Summary: Repo sync error with grinder
Product: [Retired] Pulp Reporter: Preethi Thomas <pthomas>
Component: z_otherAssignee: John Matthews <jmatthew>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: jortel, skarmark
Target Milestone: ---Keywords: Triaged
Target Release: Sprint 21   
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:08:42 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-02-17 16:24:27 UTC
[root@dell-pe1855-01 ~]# rpm -q pulp
pulp-0.0.139-1.fc14.noarch

On a freshly kickstarted f14 with pulp, I got this. So failing just in case its an actual issue
[root@dell-pe1855-01 ~]# pulp-admin -u admin -p admin repo sync --id=f14 -F
Sync for repository f14 started
Sync: Finished
2765/2773 new items downloaded
8/2773 existing items processed

Item Details: 
Tree_Files: 7/7
Rpms: 2765/2766
Warning: 1 errors occurred
1 Rpm Error(s):
	{'error_type': "<type 'exceptions.OSError'>", 'error': "[Errno 17] File exists: '/var/lib/pulp//repos/released/F-14/GOLD/Fedora/x86_64/os//Packages'", 'traceback': ['Traceback (most recent call last):', '  File "/usr/lib/python2.7/site-packages/grinder/ParallelFetch.py", line 289, in run', '    status,msg = self.fetcher.fetchItem(itemInfo)', '  File "/usr/lib/python2.7/site-packages/grinder/RepoFetch.py", line 100, in fetchItem', "    packages_location=info['pkgpath'] or None)", '  File "/usr/lib/python2.7/site-packages/grinder/BaseFetch.py", line 90, in fetch', '    os.makedirs(basedir)', '  File "/usr/lib64/python2.7/os.py", line 157, in makedirs', '    mkdir(name, mode)', "OSError: [Errno 17] File exists: '/var/lib/pulp//repos/released/F-14/GOLD/Fedora/x86_64/os//Packages'"]}

Comment 1 John Matthews 2011-02-17 17:10:00 UTC
Fixed with this commit:

http://git.fedorahosted.org/git/?p=grinder.git;a=commit;h=f1d690d6eb0fe631932f94d0a33934ef13f9db1d

Will be in grinder 0.80

Comment 2 Jeff Ortel 2011-02-22 14:32:58 UTC
Build: 0.140

Comment 3 Preethi Thomas 2011-02-22 18:08:06 UTC
verified
[root@intel-d3c4702-01 ~]# rpm -q grinder
grinder-0.0.80-1.fc14.noarch

[root@intel-d3c4702-01 ~]# pulp-admin -u admin -p admin repo create --id=f14 --name=f14 --arch=x86_64 --feed=yum:http://download.devel.redhat.com/released/F-14/GOLD/Fedora/x86_64/os/
Successfully created repository [ f14 ]

You have mail in /var/spool/mail/root
[root@intel-d3c4702-01 ~]# 
[root@intel-d3c4702-01 ~]# 
[root@intel-d3c4702-01 ~]# pulp-admin -u admin -p admin repo sync --id=f14 -F
Sync for repository f14 started
Sync: Finished
2766/2773 new items downloaded
7/2773 existing items processed

Item Details: 
Tree_Files: 7/7
Rpms: 2766/2766

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

pulp-0.0.223-4.

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

pulp-0.0.223-4.