Bug 688297

Summary: CDS list shows name & hostname interchanged
Product: [Retired] Pulp Reporter: Preethi Thomas <pthomas>
Component: z_otherAssignee: Jay Dobies <jason.dobies>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: jortel, sghai, skarmark
Target Milestone: ---Keywords: Triaged
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:07:09 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, 684061    

Description Preethi Thomas 2011-03-16 18:20:34 UTC
Description of problem:


V[root@preethi ~]# pulp-admin cds register --hostname=pulp-cds.usersys.redhat.com --name=pulp-cds-1 --description=pulp-cds-1
Successfully registered CDS [pulp-cds.usersys.redhat.com]

[root@preethi ~]# 
[root@preethi ~]# 
[root@preethi ~]# pulp-admin cds register --hostname=hp-bl260cg5-01.rhts.eng.bos.redhat.com --name=pulp-cds-2 --description=pulp-cds-2
Successfully registered CDS [hp-bl260cg5-01.rhts.eng.bos.redhat.com]

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

Name                    pulp-cds.usersys.redhat.com
Hostname                pulp-cds-1               
Description             pulp-cds-1               
Repos                   None                     
Last Sync               Never                    


Name                    hp-bl260cg5-01.rhts.eng.bos.redhat.com
Hostname                pulp-cds-2               
Description             pulp-cds-2               
Repos                   None                     
Last Sync               Never

Comment 1 Jay Dobies 2011-04-18 14:26:40 UTC
*** Bug 697521 has been marked as a duplicate of this bug. ***

Comment 2 Jay Dobies 2011-05-12 15:29:37 UTC
commit 248460b74fff3d88ca87fbfd1bdcb4d7b40f293d
Author: Jay Dobies <jason.dobies>
Date:   Thu May 12 11:32:40 2011 -0400

    688297 - Fixed incorrect substitutions for name and hostname

src/pulp/client/core/cds.py

Comment 3 Jeff Ortel 2011-05-12 18:45:37 UTC
build: 0.176

Comment 4 Jeff Ortel 2011-05-12 21:00:14 UTC
Not tagged in 0.176.

Comment 5 Jeff Ortel 2011-05-13 20:50:46 UTC
build: 0.177

Comment 6 Sachin Ghai 2011-05-26 12:03:19 UTC
Verified in build:

pulp 0.181
rhui-tools: 2.0.25

Now CDS list showing correct name and hostname:

-----------------------------------------------------------
Hostname of the CDS to register:
dhcp193-65.pnq.redhat.com

Display name for the CDS [dhcp193-65.pnq.redhat.com]:
cds0065


The following CDS instance will be registered:
  Hostname: dhcp193-65.pnq.redhat.com
  Name:     cds0065
Proceed? (y/n) y




+------------------------------------------+
                CDS Instances
+------------------------------------------+

Name                	cds0065                  
Hostname            	dhcp193-65.pnq.redhat.com
Description         	None                     
Group               	None                     
Sync Schedule       	2011-05-26T17:23:28+05:30/PT1H
Repos               	None                     
Last Sync           	Never                    
Status:
   Responding       	Yes                      
   Last Heartbeat   	2011-05-26 11:54:19.133951+00:00


[root@dhcp193-79 ~]#

Comment 7 Preethi Thomas 2011-08-16 12:07:09 UTC
Closing with Community Release 15

pulp-0.0.223-4.

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

pulp-0.0.223-4.