Bug 704316 - Error deleting a repo with a sync schedule
Summary: Error deleting a repo with a sync schedule
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Jason Connor
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks: verified-to-close 688298
TreeView+ depends on / blocked
 
Reported: 2011-05-12 18:50 UTC by Jay Dobies
Modified: 2014-03-31 01:39 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-08-16 12:10:36 UTC
Embargoed:


Attachments (Terms of Use)

Description Jay Dobies 2011-05-12 18:50:08 UTC
I have a repo that was created with RHUI, which means it has a sync schedule on it. I'm unable to delete that repo now. Below is a breakdown of the commands I used:


---- Not sure what "progress unknown" means, if that means in progress or some hung state.

[root@guardian ~]# pulp-admin repo status --id rhui-1.2-5Server-x86_64
+------------------------------------------+
     Status for rhui-1.2-5Server-x86_64
+------------------------------------------+
Repository: rhui-1.2-5Server-x86_64
Number of Packages: 13
Last Sync: 2011-05-11 16:01:58-04:00
Currently syncing: progress unknown


---- Whatever it is, I can't delete:

[root@guardian ~]# pulp-admin repo delete --id rhui-1.2-5Server-x86_64
error: operation failed: PulpException: "Repo cannot be deleted because of sync in progress. You can cancel ongoing sync using 'repo cancel_sync' command."


---- I tried cancelling whatever was in progress and it looks like it worked:

[root@guardian ~]# pulp-admin repo cancel_sync --id rhui-1.2-5Server-x86_64
Sync for repository rhui-1.2-5Server-x86_64 canceled


---- But I still can't delete:

[root@guardian ~]# pulp-admin repo delete --id rhui-1.2-5Server-x86_64
error: operation failed: PulpException: "Repo cannot be deleted because of sync in progress. You can cancel ongoing sync using 'repo cancel_sync' command."

Comment 1 Jason Connor 2011-05-12 22:16:18 UTC
added removal of scheduled syncs as first part of delete
fix pushed in: ad776addad0b7bedcffd69c7b56b5dc3b23ec918

Comment 2 Jeff Ortel 2011-05-13 20:50:45 UTC
build: 0.177

Comment 3 Preethi Thomas 2011-05-20 15:07:27 UTC
verified

[root@preethi ~]# rpm -q pulp
pulp-0.0.178-1.fc14.noarch

[root@preethi ~]# pulp-admin repo create --id=sync-schedule-delete --feed=http://repos.fedorapeople.org/repos/pulp/pulp/fedora-14/x86_64/ --interval PT1H --start=2011-05-20T11:15-06:00
Successfully created repository [ sync-schedule-delete ]

[root@preethi ~]# pulp-admin repo delete --id=sync-schedule-delete
Successful deleted repository [ sync-schedule-delete ]

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

pulp-0.0.223-4.

Comment 5 Preethi Thomas 2011-08-16 12:22:31 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.