Bug 704316
| Summary: | Error deleting a repo with a sync schedule | ||
|---|---|---|---|
| Product: | [Retired] Pulp | Reporter: | Jay Dobies <jason.dobies> |
| Component: | z_other | Assignee: | Jason Connor <jconnor> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Preethi Thomas <pthomas> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | unspecified | CC: | mmccune |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| 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:36 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, 688298 | ||
added removal of scheduled syncs as first part of delete fix pushed in: ad776addad0b7bedcffd69c7b56b5dc3b23ec918 build: 0.177 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 ] Closing with Community Release 15 pulp-0.0.223-4. Closing with Community Release 15 pulp-0.0.223-4. |
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."