Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1703743

Summary: Error when unregister/unsubscribe at the second time on subscription-manager-gui
Product: Red Hat Enterprise Linux 7 Reporter: qianzhan
Component: subscription-managerAssignee: candlepin-bugs
Status: CLOSED ERRATA QA Contact: Red Hat subscription-manager QE Team <rhsm-qe>
Severity: high Docs Contact:
Priority: high    
Version: 7.7CC: csnyder, jomurphy, jsefler, sgao
Target Milestone: rcKeywords: Regression, 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: Environment:
Last Closed: 2019-08-06 12:57:32 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:
Attachments:
Description Flags
error_when_unregistering_at_the_second_try.png
none
rhsm.log none

Description qianzhan 2019-04-28 04:21:54 UTC
Description of problem:
Error when unregister/unsubscribe at the second time on subscription-manager-gui

Version-Release number of selected component (if applicable):
subscription-manager-gui-1.24.4-1.el7.x86_64
tfm-rubygem-katello-3.10.0.46-1.el7sat.noarch
katello-3.10.0-0.6.rc1.el7sat.noarch
candlepin-2.5.15-1.el7sat.noarch

How reproducible:
always

Steps to Reproduce:
1. Register RHEL-7.7-20190424.0 system against Satelilte6.5-snapshot25.0 in CLI.

2. Open subscription-manager-gui, try to unreigster the system:
1) Click Unregister button, no response on GUI.
2) Click Unregister button again, an Error window prompts. Please refer attachment 'error_when_unregistering_at_the_second_try.png'
3) Check the rhsm.log: the same error also in rhsm.log.

3. Register system and auto-attach in CLI.

4. Open subscription-manager-gui, try to remove the subscription:
1) Click Remove button, no response on GUI.
2) Click Remove button again, the attached subscription disappears on GUI.
3) Check the rhsm.log:

2019-04-28 11:29:57,101 [INFO] subscription-manager-gui:10250:AsyncBindUnbindThread @connection.py:638 - Response: status=404, request="DELETE /rhsm/consumers/11bffbe2-7fd4-4d75-aff3-e336adf29b38/certificates/6927261600243094364"
2019-04-28 11:29:57,102 [ERROR] subscription-manager-gui:10250:AsyncBindUnbindThread @entitlement.py:331 - HTTP error (404 - Not Found): Entitlement Certificate with serial number "6927261600243094364" could not be found.


Actual results:
As step 2 and step 4.

Expected results:
System can be unregistered at the first try, and no error.
System can be unsubscribed at the first try, and no error.

Additional info:
Please refer attachment 'rhsm.log'

Comment 2 qianzhan 2019-04-28 04:23:10 UTC
Created attachment 1559572 [details]
error_when_unregistering_at_the_second_try.png

Comment 3 qianzhan 2019-04-28 04:23:40 UTC
Created attachment 1559574 [details]
rhsm.log

Comment 8 qianzhan 2019-06-10 06:03:53 UTC
This bug does not exist any more on  subscription-manager-1.24.10-1.el7.x86_64 against Satellite6.6-snapshot6.0, so move this bug as VERIFIED.

Comment 10 errata-xmlrpc 2019-08-06 12:57:32 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.

https://access.redhat.com/errata/RHBA-2019:2008