Bug 995242 - GUI: The value for Org Name in facts dialog is different from that displayed in CLI
Summary: GUI: The value for Org Name in facts dialog is different from that displayed ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Candlepin
Classification: Community
Component: candlepin
Version: 0.9
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Alex Wood
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks: rhsm-rhel70
TreeView+ depends on / blocked
 
Reported: 2013-08-08 19:59 UTC by Sharath Dwaral
Modified: 2015-05-14 14:53 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-09-29 19:05:27 UTC
Embargoed:


Attachments (Terms of Use)
Org name in GUI different from CLI (184.08 KB, image/png)
2013-08-08 19:59 UTC, Sharath Dwaral
no flags Details
Snapshot of GUI and CLI facts (85.75 KB, image/png)
2014-03-04 15:48 UTC, Sharath Dwaral
no flags Details

Description Sharath Dwaral 2013-08-08 19:59:17 UTC
Created attachment 784585 [details]
Org name in GUI different from CLI

Description of problem:
Organization and organization ID are the same in GUI for STAGE SERVERS ONLY.
The value for Org Name is different from that displayed in CLI

Version-Release number of selected component (if applicable):
# rpm -qa | egrep "subscription-manager|python-rhsm"
subscription-manager-gui-1.8.18-1.el5
subscription-manager-migration-data-1.11.3.2-1.git.0.14f9d59.el5
python-rhsm-1.8.16-1.el5
subscription-manager-migration-1.8.18-1.el5
subscription-manager-1.8.18-1.el5
subscription-manager-firstboot-1.8.18-1.el5
python-rhsm-debuginfo-1.8.16-1.el5
subscription-manager-debuginfo-1.8.18-1.el5

How reproducible:
ALWAYS

Steps to Reproduce:

Register to "STAGE SERVER"
See attachment


Actual results:
See Attachment

Expected results:
Name and ID should be different as shown in terminal.

Additional info:

Comment 1 Alex Wood 2013-08-20 15:27:55 UTC
This appears to be an inconsistency on the Candlepin side.  

getOwnerList is used by the CLI

In [17]: cp.getOwnerList("2013sku")
Out[17]: 
[{'contentPrefix': None,
  'defaultServiceLevel': None,
  'displayName': 'Red Hat',
  'href': '/owners/6786288',
  'id': None,
  'key': '6786288',
  'parentOwner': None,
  'upstreamConsumer': None}]

getOwner is used by the GUI

In [19]: consumer_auth_cp.getOwner(identity.uuid)
Out[19]: 
{'contentPrefix': None,
 'created': '2013-06-17T15:36:18.000+0000',
 'defaultServiceLevel': None,
 'displayName': '6786288',
 'href': '/owners/6786288',
 'id': '8a99f9843f3ddee1013f52c792c1615b',
 'key': '6786288',
 'parentOwner': None,
 'updated': '2013-06-17T15:36:18.000+0000',
 'upstreamConsumer': None}

Comment 3 Alex Wood 2014-02-18 22:23:20 UTC
I believe that this bug should now be fixed.  The IT service adapters recently changed to read from cp_owner when findUserByLogin() is called.  Please retest this.

Comment 4 Sharath Dwaral 2014-03-04 15:48:28 UTC
Created attachment 870481 [details]
Snapshot of GUI and CLI facts

Version:

# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: Unknown
subscription-manager: 1.10.14-3.el7
python-rhsm: 1.10.12-1.el7


Verification:

Please see attachment
The values displayed in the GUI and CLI match

VERIFIED

Comment 5 Bryan Kearney 2014-09-29 19:05:27 UTC
These bugs were fixed during 7.0 but not moved to CLOSED. They have been delivered


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