Bug 688288 - Running CDS register a second time gives a misleading error
Summary: Running CDS register a second time gives a misleading error
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: nodes
Version: 1.0.0
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
: ---
Assignee: Jay Dobies
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-03-16 17:52 UTC by Preethi Thomas
Modified: 2012-02-24 20:12 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-24 20:12:34 UTC


Attachments (Terms of Use)

Description Preethi Thomas 2011-03-16 17:52:41 UTC
Description of problem:
If you run CDS register a second time on the same host, the error message is misleading.

[root@preethi ~]# rpm -q pulp
pulp-0.0.151-1.fc14.noarch


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

[root@preethi ~]# 
[root@preethi ~]# 
[root@preethi ~]# 
[root@preethi ~]# pulp-admin cds register --hostname=pulp-cds.usersys.redhat.com
Successfully registered CDS [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                   None                     
Last Sync               Never                    


[root@preethi ~]# pulp-admin cds register --hostname=pulp-cds.usersys.redhat.com
Error attempting to register CDS [pulp-cds.usersys.redhat.com]
Check that the CDS packages have been installed on the CDS and have been started

Comment 1 Jay Dobies 2011-10-25 19:02:38 UTC
commit 38b91fb13dd6d6cad769576bc8bdd8880f6e3811
Author: Jay Dobies <jason.dobies>
Date:   Tue Oct 25 15:02:27 2011 -0400

    688288 - For a conflict, give the user a custom error message

src/pulp/client/admin/plugins/cds.py

Comment 2 Jeff Ortel 2011-10-27 03:22:27 UTC
build 0.242-2

Comment 3 Preethi Thomas 2011-11-11 20:51:26 UTC
verified
[root@preethi pulp]# pulp-admin cds register --hostname=f16-cds.usersys.redhat.com
Successfully registered CDS [f16-cds.usersys.redhat.com]

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

Name                	f16-cds.usersys.redhat.com
Hostname            	f16-cds.usersys.redhat.com
Description         	None                     
Cluster             	None                     
Sync Schedule       	None                     
Repos               	None                     
Last Sync           	Never                    
Status:
   Responding       	Yes                      
   Last Heartbeat   	2011-11-11 21:02:36.646875+00:00


[root@preethi pulp]# pulp-admin cds register --hostname=f16-cds.usersys.redhat.com
error:  error: operation failed: A CDS with the hostname [f16-cds.usersys.redhat.com] already exists

Comment 4 Preethi Thomas 2012-02-24 20:12:34 UTC
Pulp v1.0 is released
Closed Current Release.


Note You need to log in before you can comment on or make changes to this bug.