Bug 697527

Summary: unregister CDS with rhui-manager doesn't release CDS instance in first attempt
Product: Red Hat Update Infrastructure for Cloud Providers Reporter: Sachin Ghai <sghai>
Component: CDSAssignee: Jay Dobies <jason.dobies>
Status: CLOSED CURRENTRELEASE QA Contact: wes hayutin <whayutin>
Severity: high Docs Contact:
Priority: unspecified    
Version: 2.0   
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-05-31 12:51:43 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Sachin Ghai 2011-04-18 14:20:28 UTC
Description of problem:
unregister CDS with rhui-manager doesn't release the CDS instance in first attempt. When we list the cds instances after deletion, its still showing the deleted instance in the list.

Version-Release number of selected component (if applicable):
pulp 0.166
rhui tools : 2.0.14

How reproducible:
Always

Steps to Reproduce:

rhui (cds) => l

-= RHUI Content Delivery Servers =-

  cds 01

------------------------------------------------------------------------------
rhui (cds) => d

Select the CDS instances to be removed from the RHUI: 
  -  1 : cds 01
Enter value from (1-1) to toggle selection, 'c' to confirm selections, or '?' for more commands: 1

Select the CDS instances to be removed from the RHUI: 
  x  1 : cds 01
Enter value from (1-1) to toggle selection, 'c' to confirm selections, or '?' for more commands: c


The following CDS instances will be unregistered:
  cds 01
Proceed? (y/n) y


Unregistering cds 01...

------------------------------------------------------------------------------
rhui (cds) => l

-= RHUI Content Delivery Servers =-

  cds 01

  
Actual results:

rhui (cds) => l

-= RHUI Content Delivery Servers =-

  cds 01
-------------------

[root@pulp-server ~]# pulp-admin -u admin -p admin cds list
+------------------------------------------+
                CDS Instances
+------------------------------------------+

Name                	cds.pnq.redhat.com       
Hostname            	cds 01                   
Description         	None                     
Repos               	None                     
Last Sync           	Never                    
Status:
   Responding       	No                       
   Last Heartbeat   	2011-04-18 14:11:31      



Expected results:
CDS instance should be released.

Additional info:
Note: when you will unregister the same cds instance in second attempt, it will be released successfully.

Result in second attempt:
===========================

The following CDS instances will be unregistered:
  cds 01
Proceed? (y/n) y

Unregistering cds 01...

------------------------------------------------------------------------------
rhui (cds) => l

-= RHUI Content Delivery Servers =-

No CDS instances are registered.

Comment 1 Jay Dobies 2011-04-18 18:58:24 UTC
commit	114008f2578f2b1f4710066578edc91d4a10cbb8
tree	55cf86f36c9c1c998cae911cb23977a85b0fabc3


697527 - Deleting the sync schedule was re-adding the deleted CDS


src/pulp/server/api/cds.py

Comment 2 Sachin Ghai 2011-04-29 07:16:12 UTC
Tested with build 0.168, now I can unregister the CDS with rhui-manager and in
first attempt.

thanks,Sachin

Comment 3 wes hayutin 2011-08-01 21:38:32 UTC
moving to release pending

Comment 4 wes hayutin 2012-05-31 12:51:43 UTC
closing out, product released