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.
Description of problem:
When attaching/subscribing without option, no error message prompts, but auto-attach happens.
Version-Release number of selected component (if applicable):
subscription-manager: 1.14.1-1.el6
python-rhsm: 1.14.1-1.el6
How reproducible:
always
Steps to Reproduce:
1. Register to SAM1.4.1.
2. Run attach/subscribe command without options.
[root@dhcp-128-51 ~]# subscription-manager attach
Installed Product Current Status:
Product Name: Red Hat Enterprise Linux Server
Status: Subscribed
[root@dhcp-128-51 ~]# subscription-manager attach
All installed products are covered by valid entitlements. No need to update subscriptions at this time.
Installed Product Current Status:
Product Name: Red Hat Enterprise Linux Server
Status: Subscribed
[root@dhcp-128-51 ~]# subscription-manager remove --all
1 subscription removed at the server.
1 local certificate has been deleted.
[root@dhcp-128-51 ~]# subscription-manager subscribe
Installed Product Current Status:
Product Name: Red Hat Enterprise Linux Server
Status: Subscribed
[root@dhcp-128-51 ~]# subscription-manager subscribe
All installed products are covered by valid entitlements. No need to update subscriptions at this time.
Installed Product Current Status:
Product Name: Red Hat Enterprise Linux Server
Status: Subscribed
Actual results:
As step 2.
Expected results:
When attaching/subscribing without options, the following error message should prompt:
#subscription-manager subscribe
"Error: This command requires that you specify a pool with --pool or use --auto."
Additional info:
Development made this recent change on purpose.... If you do not provide any options to the subscribe/attach module, the default behavior will be to auto-attach subscriptions.
commit cb590a75f3a2de921961808d00ab251180c51691 Make 'attach' auto unless otherwise specified
[root@jsefler-os6 ~]# subscription-manager subscribe --help | egrep -A1 -- "^ +--auto"
--auto Automatically attach compatible subscriptions to this
system. This is the default action.
^^^^^^^^^^^^^^^^^^^^^^^^^^^
I suggest moving to CLOSED NOTABUG.