RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1510759 - Installed product can not be listed after deleting the consumer from the subscription management server side
Summary: Installed product can not be listed after deleting the consumer from the subs...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: subscription-manager
Version: 7.5
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: rc
: ---
Assignee: candlepin-bugs
QA Contact: Red Hat subscription-manager QE Team
URL:
Whiteboard:
Depends On:
Blocks: 1559228
TreeView+ depends on / blocked
 
Reported: 2017-11-08 07:34 UTC by Wei Liu
Modified: 2021-02-08 14:54 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1559228 1598048 (view as bug list)
Environment:
Last Closed: 2021-02-08 14:54:24 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
the rhsm log (26.44 KB, text/plain)
2017-11-08 07:34 UTC, Wei Liu
no flags Details

Description Wei Liu 2017-11-08 07:34:28 UTC
Created attachment 1349298 [details]
the rhsm log

Description of problem:
Delete the consumer from the SAM server side,then list the installed product by #subscription-manager list --installed.Failed to list the info.

Version-Release number of selected component (if applicable):
subscription-manager-gui-1.20.5-1.el7.x86_64
subscription-manager-rhsm-certificates-1.20.5-1.el7.x86_64
subscription-manager-rhsm-1.20.5-1.el7.x86_64
subscription-manager-1.20.5-1.el7.x86_64
subscription-manager-initial-setup-addon-1.20.5-1.el7.x86_64
SAM-1.4.1-RHEL-6-20141113.0

How reproducible:
always

Steps to Reproduce:
1.Install build RHEL-7.5-20171107.1

2.Register the system and attach subscription
[root@ent-02-vm-03 ~]# subscription-manager register
Registering to: ent-02-vm-02.lab.eng.nay.redhat.com:443/sam/api
Username: admin
Password: 
The system has been registered with ID: e1efcb33-5df1-4ac9-b12e-3884244dae31
The registered system name is: ent-02-vm-03.lab.eng.nay.redhat.com
[root@ent-02-vm-03 ~]# subscription-manager attach --auto
Installed Product Current Status:
Product Name: Red Hat Enterprise Linux Server
Status:       Subscribed

3.Delete the consumer info from the sam server side
#[root@ent-02-vm-02 ~]# headpin -u *** -p *** system unregister --uuid=e1efcb33-5df1-4ac9-b12e-3884244dae31 --org=ACME_Corporation
Successfully unregistered System [ e1efcb33-5df1-4ac9-b12e-3884244dae31 ]

4.List the installed product by command line and the output message is as below:
[root@ent-02-vm-03 ~]# subscription-manager list --installed
Consumer profile "e1efcb33-5df1-4ac9-b12e-3884244dae31" has been deleted from the server. You can use command clean or unregister to remove local profile.

Actual results:
Can not list the installed product info

Expected results:
List the installed product info directly

Additional info:

Comment 1 qianzhan 2017-12-04 10:02:43 UTC
Also happened on Satellite6.2.12 with RHEL-7.5-Alpha-1.0(RHEL-7.5-20171130.0).

Comment 3 Kevin Howell 2018-01-24 16:08:11 UTC
Cannot reproduce in latest. I believe this was fixed with bug 1510727. Please re-open if you discover otherwise.

*** This bug has been marked as a duplicate of bug 1510727 ***

Comment 4 Wei Liu 2018-01-31 02:50:47 UTC
I retested this issue on RHEL-7.5-Snapshot-1.0(RHEL-7.5-20180125.0) and found the installed product status after deleting the consumer info from the server side is not consistent with the status before ,the steps was as below:

[root@dhcp-128-67 ~]# subscription-manager list --installed
+-------------------------------------------+
    Installed Product Status
+-------------------------------------------+
Product Name:   Red Hat Enterprise Linux Server
Product ID:     69
Version:        7.5 Beta
Arch:           x86_64
Status:         Unknown                          <----Unknown
Status Details: 
Starts:         
Ends:           

[root@dhcp-128-67 ~]# subscription-manager register
Registering to: subscription.rhsm.stage.redhat.com:443/subscription
Username: rnew_test
Password: 
The system has been registered with ID: 45307f96-52d1-4b42-a710-f8d0ab93ddb3
The registered system name is: dhcp-128-67.nay.redhat.com
[root@dhcp-128-67 ~]# subscription-manager attach --auto
Installed Product Current Status:
Product Name: Red Hat Enterprise Linux Server
Status:       Subscribed

[root@dhcp-128-67 ~]# curl -k -u ******:****** --request DELETE https://subscription.rhsm.stage.redhat.com:443/subscription/consumers/45307f96-52d1-4b42-a710-f8d0ab93ddb3
[root@dhcp-128-67 ~]# subscription-manager list --installed
+-------------------------------------------+
    Installed Product Status
+-------------------------------------------+
Product Name:   Red Hat Enterprise Linux Server
Product ID:     69
Version:        7.5 Beta
Arch:           x86_64
Status:         Subscribed               <----Subscribed
Status Details: 
Starts:         11/09/2017
Ends:           11/09/2018


In my opinion, the status after deleting the consumer info from the server side should be consistent with before for its consumer info has been deleted.So I reopen this issue and make the status to NEW.

Comment 6 Rehana 2021-02-08 14:54:24 UTC
Old bug review : 
================
Due to the low severity negative ( test scenario ) nature of the bug we wont be able to prioritise the work. However , we also think a lot of improvements have been provided over the past releases since 2018. We hope those improvements help here. 

Closing this bug as wont fix.

thanks,
Rehana


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