Bug 1559228

Summary: Installed product can not be listed after deleting the consumer from the subscription management server side
Product: Red Hat Enterprise Linux 6 Reporter: qianzhan
Component: subscription-managerAssignee: candlepin-bugs
Status: CLOSED WONTFIX QA Contact: Red Hat subscription-manager QE Team <rhsm-qe>
Severity: low Docs Contact:
Priority: low    
Version: 6.10CC: candlepin-bugs, csnyder, khowell, qianzhan, rhsm-qe, toneata, weiliu
Target Milestone: rcKeywords: Reopened, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1510759 Environment:
Last Closed: 2019-07-03 12:27:54 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: 1510759    
Bug Blocks:    

Comment 2 Wei Liu 2018-03-22 03:17:25 UTC
This issue also exists on rhel6.10:

Version-Release number of selected component (if applicable):
subscription-manager-rhsm-1.20.10-3.el6.x86_64
subscription-manager-1.20.10-3.el6.x86_64
subscription-manager-firstboot-1.20.10-3.el6.x86_64
subscription-manager-rhsm-certificates-1.20.10-3.el6.x86_64
subscription-manager-gui-1.20.10-3.el6.x86_64

How reproducible:
always

Steps to Reproduce:
1.Install build RHEL-6.10-20180321.1

2.Check the status of installed product
[root@dhcp-128-56 ~]# subscription-manager list --installed
+-------------------------------------------+
    Installed Product Status
+-------------------------------------------+
Product Name:   Red Hat Enterprise Linux Server
Product ID:     69
Version:        6.10 Beta
Arch:           x86_64
Status:         Unknown    <---unknown
Status Details: 
Starts:         
Ends:           

[root@dhcp-128-56 ~]# subscription-manager register
Registering to: subscription.rhsm.stage.redhat.com:443/subscription
Username: rnew_test
Password: 
The system has been registered with ID: dec1b172-5c24-4e20-8b9b-b089186a733d
The registered system name is: dhcp-128-56.nay.redhat.com
[root@dhcp-128-56 ~]# subscription-manager attach --auto
Installed Product Current Status:
Product Name: Red Hat Enterprise Linux Server
Status:       Subscribed

[root@dhcp-128-56 ~]# curl -k -u ***:*** --request DELETE https://subscription.rhsm.stage.redhat.com:443/subscription/consumers/dec1b172-5c24-4e20-8b9b-b089186a733d

[root@dhcp-128-56 ~]# subscription-manager list --installed
+-------------------------------------------+
    Installed Product Status
+-------------------------------------------+
Product Name:   Red Hat Enterprise Linux Server
Product ID:     69
Version:        6.10 Beta
Arch:           x86_64
Status:         Subscribed   <---subscribed
Status Details: 
Starts:         11/09/2017
Ends:           11/08/2018

the status after deleting the consumer info from the server side should be consistent with before for its consumer info has been deleted.