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