Bug 697988

Summary: cancel syncs throwing OS traceback
Product: [Retired] Pulp Reporter: Shannon Hughes <shughes>
Component: z_otherAssignee: Pradeep Kilambi <pkilambi>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: mmccune
Target Milestone: ---   
Target Release: Sprint 23   
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:10:25 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, 684061, 697956    

Description Shannon Hughes 2011-04-19 20:24:10 UTC
Description of problem:

when performing a sync cancel, seeing pulp throw a os error traceback. note that the traceback below is not the same repo that i am trying to sync

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/pulp/server/tasking/task.py", line 335, in run
    result = self.callable(*self.args, **self.kwargs)
  File "/usr/lib/python2.7/site-packages/pulp/server/api/repo.py", line 1501, in _sync
    threads)
  File "/usr/lib/python2.7/site-packages/pulp/server/api/repo_sync.py", line 145, in sync
    progress_callback, max_speed, threads)
  File "/usr/lib/python2.7/site-packages/pulp/server/api/repo_sync.py", line 474, in sync
    pulp.server.util.create_repo(store_path, groups=groups_xml_path, checksum_type=repo['checksum_type'])
  File "/usr/lib/python2.7/site-packages/pulp/server/util.py", line 380, in create_repo
    shutil.copytree(current_repo_dir, backup_repo_dir)
  File "/usr/lib/python2.7/shutil.py", line 174, in copytree
    os.makedirs(dst)
  File "/usr/lib/python2.7/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 17] File exists: '/var/lib/pulp//repos/kalpana/Fedora/14/x86_64/repodata.old'


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Pradeep Kilambi 2011-04-20 14:23:23 UTC
commit e776210c3b93d9aaabadeb6a40decf429db46cb7

Comment 2 Jeff Ortel 2011-04-21 21:30:05 UTC
build: 0.170

Comment 3 Preethi Thomas 2011-05-03 18:30:21 UTC
verified
[root@preethi ~]# rpm -q pulp
pulp-0.0.172-1.fc14.noarch

[root@preethi ~]# pulp-admin repo sync --id=f14-original 
Sync for repository f14-original started
Use "repo status" to check on the progress

[root@preethi ~]# pulp-admin repo sync --id=f13-original 
Sync for repository f13-original started
Use "repo status" to check on the progress
[root@preethi ~]# 
[root@preethi ~]# 
[root@preethi ~]# 
[root@preethi ~]# pulp-admin repo cancel_sync --id=f14-original 
Sync for repository f14-original canceled

No error in pulp.log either

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

pulp-0.0.223-4.

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

pulp-0.0.223-4.