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 627685 - subscription-manager-cli reregister without specifying consumerid may unintentionally remove entitlements
Summary: subscription-manager-cli reregister without specifying consumerid may uninten...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: subscription-manager
Version: 6.1
Hardware: All
OS: Linux
low
high
Target Milestone: rc
: ---
Assignee: Jesus M. Rodriguez
QA Contact: John Sefler
URL:
Whiteboard:
Depends On:
Blocks: 568421 636830
TreeView+ depends on / blocked
 
Reported: 2010-08-26 16:44 UTC by John Sefler
Modified: 2010-11-23 16:14 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-11-23 16:14:35 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description John Sefler 2010-08-26 16:44:04 UTC
Description of problem:
Follow these steps to see the problem:

# subscription-manager-cli reregister --username=testuser1 --password=password
9de87421-1ab4-4db4-8598-95274a8c6e4f testuser1
# subscription-manager-cli subscribe to many pools... <SNIP>^C
# rm /etc/pki/consumer/cert.pem
rm: remove regular file `/etc/pki/consumer/cert.pem'? y
# subscription-manager-cli reregister --username=testuser1 --password=password
ec3313c1-cd24-4b63-a74c-859639891e4d testuser1


Notice that this reregister did not actually reregister.  In fact, it actually issued a new register under the covers and returned a new uuid.  The consequence of this action is that this consuming system has now unintentionally lost all the entitlements to the pools that it had originally subscribed to.  In my opinion this is a severe consequence.  I think that the reregister request should have been blocked.

Would like to see stdout similar to this:
Could not reregister without a valid consumerid.


Version-Release number of selected component (if applicable):
candlepin b12cb4ca80b4464ada6cce9fae50ff56d45f7bef

# rpm -q subscription-manager
subscription-manager-0.75-1.git.16.7e1e0ba.fc12.i386

Comment 2 Bryan Kearney 2010-10-01 19:10:22 UTC
Per 7946c8b0782eb01311c9074742fb829266356c72 the logic for this command has been deprecated. The identity command now will only regenerate the certificate.

Comment 3 Jeff Weiss 2010-10-06 16:31:19 UTC
[root@jweiss-rhel6-1 src]# ./subscription-manager-cli register --consumerid=6f4d01f2-03c2-4b36-813f-e7866e952073 -
-username=testuser1 --password=password
6f4d01f2-03c2-4b36-813f-e7866e952073 testuser1
[root@jweiss-rhel6-1 src]# ./subscription-manager-cli list
+-------------------------------------------+
    Installed Product Status
+-------------------------------------------+

ProductName:            RHEL for Workstations SVC
Status:                 Not Installed            
Expires:                2011-10-04               
Subscription:           721286381979858208       
ContractNumber:         2                        

[root@jweiss-rhel6-1 src]# 

Seems to be working

Comment 4 John Sefler 2010-11-23 16:14:35 UTC
This bug was opened/resolved/closed against the Entitlement-Alpha release.


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