Bug 1510759
Summary: | Installed product can not be listed after deleting the consumer from the subscription management server side | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Wei Liu <weiliu> | ||||
Component: | subscription-manager | Assignee: | candlepin-bugs | ||||
Status: | CLOSED WONTFIX | QA Contact: | Red Hat subscription-manager QE Team <rhsm-qe> | ||||
Severity: | low | Docs Contact: | |||||
Priority: | low | ||||||
Version: | 7.5 | CC: | csnyder, khowell, qianzhan, redakkan | ||||
Target Milestone: | rc | Keywords: | 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: | |||||||
: | 1559228 1598048 (view as bug list) | Environment: | |||||
Last Closed: | 2021-02-08 14:54:24 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: | 1559228 | ||||||
Attachments: |
|
Also happened on Satellite6.2.12 with RHEL-7.5-Alpha-1.0(RHEL-7.5-20171130.0). 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 *** 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. 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 |
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: