Bug 754540 - cancel_sync does not clean up the directories
Summary: cancel_sync does not clean up the directories
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Pulp
Classification: Retired
Component: user-experience
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Todd Sanders
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-16 19:17 UTC by Preethi Thomas
Modified: 2013-09-26 21:22 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-09-26 21:22:14 UTC


Attachments (Terms of Use)

Description Preethi Thomas 2011-11-16 19:17:13 UTC
Description of problem:
Looks like the cancel_sync is not cleaning up files under /var/lib/pulp/repos/

[root@preethi ~]# pulp-admin repo clone --id=f16 --clone_id=f16-clone1 --feed=parent -F
Repository [f16] is being cloned as [f16-clone1]
Clone: Canceled
Item Details: 
Tree Files: 0/5
RPMs: 763/3107

[root@preethi ~]# ls /var/lib/pulp//repos/f16-clone1
libreoffice-langpack-sl-3.4.3.2-11.fc16.x86_64.rpm
[root@preethi ~]# ls /var/lib/pulp//repos/
f15-clone  f15-clone1  f15-clone2  f16-clone  f16-clone1  pub  released


From the log

2011-11-16 14:25:05,321 31377:139982849177344: pulp.server.api.repo_clone_task:INFO: repo_clone_task:55 RepoCloneTask repo <f16-clone1> has been canceled
2011-11-16 14:25:05,324 31377:139982849177344: pulp.server.api.repo:INFO: repo:468 Delete API call invoked f16-clone1
2011-11-16 14:25:05,357 31377:139982849177344: pulp.server.api.keystore:INFO: keystore:200 mkdir: /var/lib/pulp/published/gpg/f16-clone1
2011-11-16 14:25:05,357 31377:139982849177344: pulp.server.api.keystore:INFO: keystore:185 unlinking: /var/lib/pulp/published/gpg/f16-clone1
2011-11-16 14:25:05,404 31377:139982849177344: pulp.server.api.repo:INFO: repo:574 removing repo files .... /var/lib/pulp//repos/f16-clone1
2011-11-16 14:25:05,507 31377:139981842544384: pulp.server.api.repo:ERROR: repo:1993 no repo exists for [f16-clone1]
2011-11-16 14:25:05,507 31377:139981842544384: pulp.server.api.repo_sync:INFO: repo_sync:133 Content sync canceled




Version-Release number of selected component (if applicable):
[root@preethi ~]# rpm -q pulp
pulp-0.0.248-1.fc15.noarch

Comment 86 Michael Hrivnak 2013-09-26 21:22:14 UTC
neither the clone feature nor the directory in question exist anymore, so I'm closing this. Please re-open if you think this is still an issue.


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