Bug 697743 - unregister CDS with rhui-manager doesn't release CDS instance in first attempt
Summary: unregister CDS with rhui-manager doesn't release CDS instance in first attempt
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: nodes
Version: unspecified
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
: ---
Assignee: Jay Dobies
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks: verified-to-close
TreeView+ depends on / blocked
 
Reported: 2011-04-19 05:31 UTC by Sachin Ghai
Modified: 2011-08-16 14:20 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2011-08-16 14:20:12 UTC
Embargoed:


Attachments (Terms of Use)

Description Sachin Ghai 2011-04-19 05:31:30 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-19 12:50:54 UTC
commit	114008f2578f2b1f4710066578edc91d4a10cbb8
tree	55cf86f36c9c1c998cae911cb23977a85b0fabc3


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


src/pulp/server/api/cds.py

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

Comment 3 Sachin Ghai 2011-04-20 12:23:48 UTC
Tested with build 0.168, now I can unregister the CDS with rhui-manager and in first attempt.

thanks,Sachin

Comment 4 Preethi Thomas 2011-08-16 14:20:12 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.