Bug 676657

Summary: Repo sync error
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 20   
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:06:59 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-10 15:48:51 UTC
Description of problem:

Saw the following error on repo sync. Saw it the very first time I ran repo sync on a yum repo. Not able to reproduce it though.


[root@preethi ~]# rpm -q pulp
pulp-0.0.137-1.fc14.noarch
[root@preethi ~]# rpm -q grinder
grinder-0.0.79-1.fc14.noarch

[root@preethi ~]#  pulp-admin -u admin -p admin repo sync --id=f14 -F
Sync for repository f14 started
Step: Finished
Waiting /
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 231, in main
    self.run()
  File "/usr/lib/python2.7/site-packages/pulp/client/core/repo.py", line 684, in run
    self.sync_foreground(task)
  File "/usr/lib/python2.7/site-packages/pulp/client/core/repo.py", line 653, in sync_foreground
    self.print_sync_finish(task['state'], task['progress'])
  File "/usr/lib/python2.7/site-packages/pulp/client/core/repo.py", line 639, in print_sync_finish
    current += self.form_error_details(progress)
  File "/usr/lib/python2.7/site-packages/pulp/client/core/repo.py", line 259, in form_error_details
    ret_val += "\t" + errors + "\n"
TypeError: cannot concatenate 'str' and 'dict' objects


Additional info:

Comment 1 John Matthews 2011-02-10 18:30:53 UTC
http://git.fedorahosted.org/git/?p=pulp.git;a=commit;h=eb247ee1ce9a96c1b1a172e32ac9ecd4fc13048d

Modified the client so it can handle different error formats.

Comment 2 Jeff Ortel 2011-02-14 17:10:31 UTC
Fixed build: 0.138

Comment 3 Preethi Thomas 2011-02-17 00:17:40 UTC
Fails_qa

[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 4 Preethi Thomas 2011-02-17 16:35:32 UTC
Moving back to verified

Opened new bug for the above error.

https://bugzilla.redhat.com/show_bug.cgi?id=678346

<preethi> jmatthews, failed https://bugzilla.redhat.com/show_bug.cgi?id=676657
<prad> jconnor, sure, I just fixed it so it doesnt break :)
<jconnor> prad: fair enough and thank you for the catch :)
<prad> np
<jmatthews> preethi, these are unrelated
<jmatthews> preethi, the second issue you saw is an issue with grinder
<jmatthews> preethi, there was a race condition on dir creation, it's been fixed will be available in next build
<preethi> jmatthews, ok. wasn't sure. my subsequent syncs didn't give the same error though
<jmatthews> preethi, might be good to create a new bug for the last error you saw
<preethi> jmatthews, will do
<preethi> thanks
<jmatthews> preethi, thx

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

pulp-0.0.223-4.

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

pulp-0.0.223-4.