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 1894450 - After removing consumer from server side, 'subscription-manager identity' command returns old system identity instead of exception
Summary: After removing consumer from server side, 'subscription-manager identity' com...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: subscription-manager
Version: 8.4
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: 8.4
Assignee: Jiri Hnidek
QA Contact: Red Hat subscription-manager QE Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-11-04 10:12 UTC by Archana Pandey
Modified: 2021-05-18 13:34 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-05-18 13:33:55 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github candlepin subscription-manager pull 2362 0 None closed 1894450: Fix issue with identity command; ENT-3235 2020-12-14 10:31:48 UTC

Comment 2 John Sefler 2020-12-08 20:08:00 UTC
Pre-verifying the following development build targeted for RHEL-8.4....

[root@kvm-05-guest11 ~]# rpm -q subscription-manager python3-syspurpose
subscription-manager-1.28.7-1.git.0.5b601d5.el8.x86_64
python3-syspurpose-1.28.7-1.git.0.5b601d5.el8.x86_64
[root@kvm-05-guest11 ~]# 
[root@kvm-05-guest11 ~]# rpm -q subscription-manager --changelog | grep 1894450
- 1894450: Fix issue with identity command; ENT-3235 (#2364)
[root@kvm-05-guest11 ~]# 
[root@kvm-05-guest11 ~]# 
[root@kvm-05-guest11 ~]# subscription-manager register --username=stage-ethel --serverurl=subscription.rhsm.stage.redhat.com:443/subscription
Registering to: subscription.rhsm.stage.redhat.com:443/subscription
Password: 
The system has been registered with ID: 793cdb9f-0fe4-4d6e-b4ae-28f432086a2b
The registered system name is: kvm-05-guest11.hv2.lab.eng.bos.redhat.com
[root@kvm-05-guest11 ~]# 
[root@kvm-05-guest11 ~]# 
[root@kvm-05-guest11 ~]# curl --stderr /dev/null --insecure --user stage-ethel:REDACTED --request DELETE https://candlepin.corp.stage.redhat.com/candlepin/consumers/793cdb9f-0fe4-4d6e-b4ae-28f432086a2b
[root@kvm-05-guest11 ~]# subscription-manager identity
Consumer profile "793cdb9f-0fe4-4d6e-b4ae-28f432086a2b" has been deleted from the server. You can use command clean or unregister to remove local profile.
[root@kvm-05-guest11 ~]# 


Verified:Tested  An immediate query for identity after a server-side delete of the consumer throws the expected feedback that the consumer has been deleted from the server with suggested remediation.

Comment 5 Archana Pandey 2020-12-14 16:12:58 UTC
Verifying on RHEL 8.4 nightly compose :

Beaker Test information:
                         HOSTNAME=kvm-04-guest05.lab.eng.rdu2.redhat.com
                            JOBID=4876802
                         RECIPEID=9252127
                    RESULT_SERVER=
                           DISTRO=RHEL-8.4.0-20201211.n.0
                     ARCHITECTURE=x86_64


[root@kvm-04-guest05 ~]# rpm -qa subscription-manager
subscription-manager-1.28.7-1.el8.x86_64

[root@kvm-04-guest05 ~]# rpm -q subscription-manager --changelog | grep 1894450
- 1894450: Fix issue with identity command; ENT-3235 (#2364)
[root@kvm-04-guest05 ~]# 

[root@kvm-04-guest05 ~]# subscription-manager register --username=stage-ethel --serverurl=subscription.rhsm.stage.redhat.com:443/subscription
Registering to: subscription.rhsm.stage.redhat.com:443/subscription
Password: 
The system has been registered with ID: e9550e84-99f1-4fb6-917c-27433d4e3dfe
The registered system name is: kvm-04-guest05.lab.eng.rdu2.redhat.com
 
[root@kvm-04-guest05 ~]# subscription-manager identity
system identity: e9550e84-99f1-4fb6-917c-27433d4e3dfe
name: kvm-04-guest05.lab.eng.rdu2.redhat.com
org name: 12997644
org ID: 12997644
[root@kvm-04-guest05 ~]# curl --stderr /dev/null --insecure --user stage-ethel:**** --request DELETE https://candlepin.corp.stage.redhat.com/candlepin/consumers/e9550e84-99f1-4fb6-917c-27433d4e3dfe
[root@kvm-04-guest05 ~]# 
[root@kvm-04-guest05 ~]# subscription-manager identity
Consumer profile "e9550e84-99f1-4fb6-917c-27433d4e3dfe" has been deleted from the server. You can use command clean or unregister to remove local profile.
[root@kvm-04-guest05 ~]# 

VERIFIED: An immediate query for identity after a server-side delete of the consumer throws the expected feedback that the consumer has been deleted from the server with suggested remediation.

Comment 7 errata-xmlrpc 2021-05-18 13:33:55 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 (subscription-manager bug fix and enhancement update), 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-2021:1575


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