Bug 697988 - cancel syncs throwing OS traceback
Summary: cancel syncs throwing OS traceback
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: Sprint 23
Assignee: Pradeep Kilambi
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks: verified-to-close 684061 697956
TreeView+ depends on / blocked
 
Reported: 2011-04-19 20:24 UTC by Shannon Hughes
Modified: 2011-08-16 12:22 UTC (History)
1 user (show)

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


Attachments (Terms of Use)

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.


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