Bug 697206

Summary: A CDS cannot be removed from the Pulp server if the CDS release command fails
Product: [Retired] Pulp Reporter: Jay Dobies <jason.dobies>
Component: nodesAssignee: Jay Dobies <jason.dobies>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: skarmark
Target Milestone: ---Keywords: Triaged
Target Release: Sprint 24   
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:58 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    

Description Jay Dobies 2011-04-16 20:54:03 UTC
There needs to be some sort of force option to remove it from the Pulp server even if the release command fails on the CDS. It's not ideal in that case, but we need to be able to remove CDS instances that are not running.

Comment 1 Jay Dobies 2011-05-12 15:51:26 UTC
Going to address this as a more general story in Sprint 24.

Comment 2 Jay Dobies 2011-06-09 18:49:07 UTC
commit 20d28c3aa382e40ba8a9feb5e196ab881859e23e
Author: Jay Dobies <jason.dobies>
Date:   Thu Jun 9 14:52:43 2011 -0400

    697206 - Added force option to CDS unregister to be able to remove it
    even if the CDS is offline.

src/pulp/client/api/cds.py
src/pulp/client/core/cds.py
src/pulp/client/server.py
src/pulp/server/api/cds.py
src/pulp/server/webservices/controllers/cds.py

Comment 3 Jay Dobies 2011-06-10 18:50:17 UTC
Included in 0.189.

Comment 4 Preethi Thomas 2011-07-27 19:54:29 UTC
verified
[root@preethi upload]# rpm -q pulp
pulp-0.0.213-1.fc14.noarch
[root@preethi upload]# 

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

Name                	pulp-cds.usersys.redhat.com
Hostname            	pulp-cds.usersys.redhat.com
Description         	None                     
Cluster             	None                     
Sync Schedule       	None                     
Repos               	f14                      
Last Sync           	2011-07-27 13:45:06-04:00
Status:
   Responding       	No                       
   Last Heartbeat   	2011-07-27 20:03:17.586553+00:00


[root@preethi upload]# pulp-admin cds unregister
Usage: pulp-admin <options> cds unregister <options>

pulp-admin: error: Option --hostname is required; please see --help
[root@preethi upload]# pulp-admin cds unregister --hostname=pulp-cds.usersys.redhat.com
error: operation failed: PulpException: u'Timeout occurred attempting to release CDS [pulp-cds.usersys.redhat.com]'
[root@preethi upload]# 
[root@preethi upload]# 
[root@preethi upload]# pulp-admin cds unregister --hostname=pulp-cds.usersys.redhat.com --force
Successfully unregistered CDS [pulp-cds.usersys.redhat.com]

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

[root@preethi upload]#

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

pulp-0.0.223-4.

Comment 6 Preethi Thomas 2011-08-16 12:22:41 UTC
Closing with Community Release 15

pulp-0.0.223-4.