Created attachment 716874 [details] RHSM log Description of problem: Installed product ist should be displayed when subscription-manager list --installed is executed after deleting the consumer Version-Release number of selected component (if applicable): [root@rhel7 ~]# subscription-manager version server type: Red Hat Subscription Management subscription management server: 0.8.0-1 subscription-manager: 1.8.4-1.el7 python-rhsm: 1.8.7-1.el7 How reproducible: Steps to Reproduce: [root@rhel7 ~]# subscription-manager register --org=admin Username: admin Password: The system has been registered with id: 6130b588-b49a-41de-8506-aa06ad7b59af [root@rhel7 ~]# subscription-manager attach --auto Installed Product Current Status: Product Name: Stackable with Awesome OS for x86_64 Bits Status: Subscribed Product Name: Awesome OS for x86_64 Bits Status: Subscribed Product Name: Shared File System Bits Status: Subscribed [root@rhel7 ~]# curl -k -u admin:admin --request DELETE https://10.70.35.179:8443/candlepin/consumers/6130b588-b49a-41de-8506-aa06ad7b59af [root@rhel7 ~]# subscription-manager list --installed Consumer 6130b588-b49a-41de-8506-aa06ad7b59af has been deleted Actual results: subscription-manager list --installed Consumer 6130b588-b49a-41de-8506-aa06ad7b59af has been deleted Expected results: Installed product list should be displayed as 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 problem does not appear to occur with the latest version of subscription-manager in git. However, the status command causes similar behavior that I will fix.
commit eeb545d2439775acf70a7b1518356d3a8d8f5a0b Author: ckozak <ckozak> Date: Thu May 23 11:01:23 2013 -0400 928175: fixed status command after user deletion
Marking verified!! [root@localhost ~]# subscription-manager version server type: This system is currently not registered. subscription management server: 0.8.10-1 subscription-manager: 1.8.9-1.el5 python-rhsm: 1.8.12-1.el5 [root@localhost ~]# curl -k -u admin:admin --request DELETE https://10.70.35.34:8443/candlepin/consumers/abb1f217-818e-4aa4-a586-762b28443cf9 [root@localhost ~]# subscription-manager list --installed +-------------------------------------------+ Installed Product Status +-------------------------------------------+ Product Name: Awesome OS for ia64 Bits Product ID: 100000000000006 Version: 3.11 Arch: ia64 Status: Unknown Status Details: Starts: Ends: Product Name: Stackable with Awesome OS for x86_64 Bits Product ID: 1000000000000023 Version: 3.11 Arch: x86_64 Status: Unknown Status Details: Starts: Ends: Product Name: Awesome OS Developer Basic Product ID: 1144 Version: 1.0 Arch: ALL Status: Unknown Status Details: Starts: Ends: Product Name: Awesome OS for x86_64/i686/ia64/ppc/ppc64/s390x/s390 Bits Product ID: 100000000000011 Version: 3.11 Arch: x86_64,i686,ia64,ppc,ppc64,s390x,s390 Status: Unknown Status Details: Starts: Ends: Product Name: Awesome OS Workstation Bits Product ID: 27060 Version: 6.1 Arch: ALL Status: Unknown Status Details: Starts: Ends: Product Name: Awesome OS Developer Bits Product ID: 1 Version: 1.0 Arch: ALL Status: Unknown Status Details: Starts: Ends: Product Name: Management Bits Product ID: 37069 Version: 1.0 Arch: ALL Status: Unknown Status Details: Starts: Ends: Product Name: Large File Support Bits Product ID: 37068 Version: 1.0 Arch: ALL Status: Unknown Status Details: Starts: Ends: Product Name: Awesome OS Modifier Bits Product ID: 37080 Version: 6.1 Arch: ALL Status: Unknown Status Details: Starts: Ends: Product Name: Clustering Bits Product ID: 37065 Version: 1.0 Arch: ALL Status: Unknown Status Details: Starts: Ends: Product Name: Shared Storage Bits Product ID: 37067 Version: 1.0 Arch: ALL Status: Unknown Status Details: Starts: Ends: Product Name: Awesome OS Server Bits Product ID: 37060 Version: 6.1 Arch: ALL Status: Unknown Status Details: Starts: Ends:
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2013-1332.html