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:
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.
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
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.
This is too minor to worry about. The rhsmcertd process handles the moving of the consumer certificate. That will make the uuid go away.