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 617277 - subscription-manager unregister not removing key.pem
Summary: subscription-manager unregister not removing key.pem
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: subscription-manager
Version: 6.1
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Pradeep Kilambi
QA Contact: wes hayutin
URL:
Whiteboard:
Depends On:
Blocks: 568421
TreeView+ depends on / blocked
 
Reported: 2010-07-22 16:21 UTC by wes hayutin
Modified: 2010-10-05 20:16 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-10-05 20:16:51 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description wes hayutin 2010-07-22 16:21:02 UTC
[root@oldceremony ~]# subscription-manager-cli unregister
[root@oldceremony ~]# subscription-manager-cli register --username=pascal.catric --pass=redhat 
This system is already registered. Use --force to override
[root@oldceremony ~]# rpm -q subscription-manager
subscription-manager-0.71-1.el6.i686
[root@oldceremony ~]# ls /etc/pki/entitlement/product/
[root@oldceremony ~]# ls /etc/pki/entitlement/
key.pem  product
[root@oldceremony ~]#

Comment 1 Bryan Kearney 2010-08-03 21:18:02 UTC
Aainst latest (8cfc68209b2286a3738c6656b189d992ebf4b158) did the following:

./rhsm/subscription-manager-cli register --username admin --password admin --force
./rhsm/subscription-manager-cli subscribe --pool=3
ls /etc/pki/entitlement/ (see key.pem)
./rhsm/subscription-manager-cli unregister
ls /etc/pki/entitlement/ 

Directory does not exist.

Comment 2 wes hayutin 2010-08-09 21:49:41 UTC
I see this periodically, leaving on_qa

Comment 3 John Sefler 2010-09-08 16:04:25 UTC
I WAS NOT ABLE TO REPRODUCE THIS BUG.  THE unregister IS REMOVING THE key.pem.
Leaving ON_QA for now since Comment #2 claims to see this periodically.

[root@jsefler-rhel6-client01 ~]# rpm -q subscription-manager
subscription-manager-0.75-1.git.29.c3b1d88.fc12.i386


[root@jsefler-rhel6-client01 ~]# ls /etc/pki/entitlement
product
[root@jsefler-rhel6-client01 ~]# ls /etc/pki/entitlement/product/
[root@jsefler-rhel6-client01 ~]# subscription-manager-cli register --username=admin --password=admin
97d030fc-cbf4-467b-9b3c-3446decc392a admin
[root@jsefler-rhel6-client01 ~]# ls /etc/pki/entitlement/
product
[root@jsefler-rhel6-client01 ~]# ls /etc/pki/entitlement/product/
[root@jsefler-rhel6-client01 ~]# subscription-manager-cli subscribe --pool=3
[root@jsefler-rhel6-client01 ~]# ls /etc/pki/entitlement/
key.pem  product
[root@jsefler-rhel6-client01 ~]# ls /etc/pki/entitlement/product/
173.pem
[root@jsefler-rhel6-client01 ~]# subscription-manager-cli unregister
[root@jsefler-rhel6-client01 ~]# ls /etc/pki/entitlement/
ls: cannot access /etc/pki/entitlement/: No such file or directory
[root@jsefler-rhel6-client01 ~]# subscription-manager-cli register --username=admin --password=admin
4a7549b2-d59c-41cd-bf76-993f43f35f57 admin
[root@jsefler-rhel6-client01 ~]# ls /etc/pki/entitlement/
product
[root@jsefler-rhel6-client01 ~]#

Comment 4 Jeff Weiss 2010-10-05 20:16:51 UTC
I cannot reproduce this either.  Closing.


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