Bug 695414

Summary: Repos deployed to a CDS cannot be deleted from Pulp if the CDS is down
Product: [Retired] Pulp Reporter: Jay Dobies <jason.dobies>
Component: nodesAssignee: Jeff Ortel <jortel>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedKeywords: Triaged
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:06:35 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    

Description Jay Dobies 2011-04-11 16:39:21 UTC
A repo can't be deleted if it's still associated with a CDS. A repo can't be unassociated from a CDS if the CDS is down. So you're stuck.

I talked about this with Jeff and the idea is to move the unassociate functionality into the repo delete and do a best try. Repo delete will now return a list of which CDS instances were successfully unassociated and which weren't; regardless, the repo will still be deleted from the Pulp server.

Comment 1 Jeff Ortel 2011-04-18 18:44:28 UTC
Implemented as described.

Comment 2 Jeff Ortel 2011-04-19 18:49:20 UTC
build: 0.168

Comment 3 Preethi Thomas 2011-05-12 14:57:48 UTC
[root@preethi ~]# rpm -q pulp
pulp-0.0.174-1.fc14.noarch

[root@preethi ~]# pulp-admin repo delete --id=errata-repo
Successful deleted repository [ errata-repo ]
Unassociated with CDS(s):
  pulp-cds.usersys.redhat.com

[root@preethi ~]# pulp-admin cds list
+------------------------------------------+
                CDS Instances
+------------------------------------------+

Name                	pulp-cds.usersys.redhat.com
Hostname            	pulp-cds.usersys.redhat.com
Description         	None                     
Repos               	repos-pulp-pulp-fedora-14-x86_64
Last Sync           	2011-05-12 14:27:23      
Status:
   Responding       	No                       
   Last Heartbeat   	2011-05-12 15:07:51

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

pulp-0.0.223-4.

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

pulp-0.0.223-4.