Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 928175

Summary: Installed product list is not displayed when list --installed is executed after deleting the consumer
Product: Red Hat Enterprise Linux 5 Reporter: Shwetha Kallesh <skallesh>
Component: subscription-managerAssignee: Carter Kozak <ckozak>
Status: CLOSED ERRATA QA Contact: IDM QE LIST <seceng-idm-qe-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 5.10CC: bkearney, ckozak, fsharath, jesusr, jgalipea, jmolet, jsefler, redakkan, skallesh, spandey
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
No description necessary
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-30 23:04:07 UTC Type: Bug
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: 840995    
Attachments:
Description Flags
RHSM log none

Description Shwetha Kallesh 2013-03-27 04:59:38 UTC
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:

Comment 2 RHEL Program Management 2013-04-29 17:17:31 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 3 Carter Kozak 2013-05-23 15:19:31 UTC
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.

Comment 4 Carter Kozak 2013-05-23 15:43:08 UTC
commit eeb545d2439775acf70a7b1518356d3a8d8f5a0b
Author: ckozak <ckozak>
Date:   Thu May 23 11:01:23 2013 -0400

    928175: fixed status command after user deletion

Comment 6 Shwetha Kallesh 2013-06-03 13:18:44 UTC
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:

Comment 8 errata-xmlrpc 2013-09-30 23:04:07 UTC
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