Bug 918104 - System.uuid is displayed in the subscription-manager facts --list,after the consumer has been deleted
Summary: System.uuid is displayed in the subscription-manager facts --list,after the c...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: subscription-manager
Version: 5.10
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: beta
: 5.10
Assignee: William Poteat
QA Contact: IDM QE LIST
URL:
Whiteboard:
Depends On:
Blocks: rhsm-rhel510 rhsm-2013
TreeView+ depends on / blocked
 
Reported: 2013-03-05 13:45 UTC by Shwetha Kallesh
Modified: 2013-06-03 13:28 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-06-03 13:28:50 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Shwetha Kallesh 2013-03-05 13:45:01 UTC
Description of problem:
System.uuid is displayed in the subscription-manager facts --list,after the consumer has been deleted

Version-Release number of selected component (if applicable):
[root@rhel7 ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 0.7.25-1
subscription-manager: 1.8.3-1.el7
python-rhsm: 1.8.3-1.el7


How reproducible:


Steps to Reproduce:
[root@rhel7 ~]# subscription-manager register --org=admin
Username: admin
Password: 
The system has been registered with id: 57bf8dd7-bb13-403b-b0f5-78fe00e84e26 
[root@rhel7 ~]# curl -k -u admin:admin --request DELETE https://10.70.1.188:8443/candlepin/consumers/57bf8dd7-bb13-403b-b0f5-78fe00e84e26
[root@rhel7 ~]# subscription-manager facts --list | grep 57bf8dd7-bb13-403b-b0f5-78fe00e84e26
system.uuid: 57bf8dd7-bb13-403b-b0f5-78fe00e84e26
[root@rhel7 ~]# service rhsmcertd restart
Redirecting to /bin/systemctl restart  rhsmcertd.service
[root@rhel7 ~]# subscription-manager facts --list | grep 57bf8dd7-bb13-403b-b0f5-78fe00e84e26
system.uuid: 57bf8dd7-bb13-403b-b0f5-78fe00e84e26

  
Actual results:


Expected results:
I was expecting the uuid to be removed from facts --list after restarting rhsmcertd service,just like it happens with unregister

Additional info:

Comment 3 RHEL Program Management 2013-04-09 20:18:06 UTC
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux release.  Product Management has
requested further review of this request by Red Hat Engineering, for
potential inclusion in a Red Hat Enterprise Linux release for currently
deployed products.  This request is not yet committed for inclusion in
a release.

Comment 4 Bryan Kearney 2013-04-29 20:36:32 UTC
This appears to be working for me. I am moving this back to ON_QA to re-verify.

The system has been registered with id: 1c376316-a809-421c-beeb-e8e52a29435d 
[root@bkearney Downloads]# subscription-manager facts --list | grep uuid
dmi.system.uuid: 0D3DAA81-5180-11CB-9A43-9BBE6E3134F0
system.uuid: 1c376316-a809-421c-beeb-e8e52a29435d
[root@bkearney Downloads]# subscription-manager unregister 
System has been unregistered.
[root@bkearney Downloads]# subscription-manager facts --list | grep uuid
dmi.system.uuid: 0D3DAA81-5180-11CB-9A43-9BBE6E3134F0
[root@bkearney Downloads]# 


Testing with 1.8.5

Comment 5 Sharath Dwaral 2013-04-30 19:16:26 UTC
Version:
# rpm -qa | egrep "subscription-manager|python-rhsm"
python-rhsm-1.8.9-1.git.7.214419e.el5
subscription-manager-migration-data-1.11.2.7-1.git.0.1dfd00e.el5
subscription-manager-gui-1.8.6-1.git.7.96019b0.el5
subscription-manager-firstboot-1.8.6-1.git.7.96019b0.el5
subscription-manager-migration-1.8.6-1.git.7.96019b0.el5
subscription-manager-1.8.6-1.git.7.96019b0.el5

How to reproduce:

# subscription-manager unregister
System has been unregistered.

# subscription-manager clean
All local data removed

# subscription-manager register
Username: testuser1
Password: 
Organization: admin
The system has been registered with ID: d891c7ae-5799-431b-87ba-d5b870f07738 

# subscription-manager identity
Current identity is: d891c7ae-5799-431b-87ba-d5b870f07738
name: dhcp129-152.rdu.redhat.com
org name: Admin Owner
org ID: admin

# subscription-manager facts --list | grep uuid
dmi.system.uuid: bfe614ba-7823-1b05-edb2-70c90b169083
>> system.uuid: d891c7ae-5799-431b-87ba-d5b870f07738
virt.uuid: bfe614ba-7823-1b05-edb2-70c90b169083

# curl -k -u admin:admin --request DELETE https://fsharath-candlepin.usersys.redhat.com:8443/candlepin/consumers/d891c7ae-5799-431b-87ba-d5b870f07738

>> identity shows the consumer is deleted

# subscription-manager identity
Consumer d891c7ae-5799-431b-87ba-d5b870f07738 has been deleted

# subscription-manager facts --list | grep uuid
dmi.system.uuid: bfe614ba-7823-1b05-edb2-70c90b169083
>>system.uuid: d891c7ae-5799-431b-87ba-d5b870f07738
virt.uuid: bfe614ba-7823-1b05-edb2-70c90b169083

>> restarting rhsmcertd

# rhsmcertd -n

# subscription-manager facts --list | grep uuid
dmi.system.uuid: bfe614ba-7823-1b05-edb2-70c90b169083
>> system.uuid: d891c7ae-5799-431b-87ba-d5b870f07738
virt.uuid: bfe614ba-7823-1b05-edb2-70c90b169083

>> Updating facts

# subscription-manager facts --update
Consumer d891c7ae-5799-431b-87ba-d5b870f07738 has been deleted

# subscription-manager facts --list | grep uuid
dmi.system.uuid: bfe614ba-7823-1b05-edb2-70c90b169083
>> system.uuid: d891c7ae-5799-431b-87ba-d5b870f07738
virt.uuid: bfe614ba-7823-1b05-edb2-70c90b169083

This is a facts bug, Facts does not get updates after the cosumer is deleted.

Comment 6 William Poteat 2013-06-03 13:28:50 UTC
This is too minor to worry about. The rhsmcertd process handles the moving of the consumer certificate. That will make the uuid go away.


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