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:
auto-attach preference can not be configured to disable both in GUI and CLI
Version-Release number of selected component (if applicable):
candlepin-0.9.6.5-1.el6sam.noarch
candlepin-scl-1-5.el6_4.noarch
candlepin-scl-quartz-2.1.5-5.el6_4.noarch
candlepin-scl-rhino-1.7R3-1.el6_4.noarch
candlepin-scl-runtime-1-5.el6_4.noarch
candlepin-selinux-0.9.6.5-1.el6sam.noarch
candlepin-tomcat6-0.9.6.5-1.el6sam.noarch
katello-candlepin-cert-key-pair-1.0-1.noarch
katello-certs-tools-1.4.2-2.el6sat.noarch
katello-cli-1.4.3.1-1.el6sam.noarch
katello-cli-common-1.4.3.1-1.el6sam.noarch
katello-common-1.4.3.28-1.el6sam_splice.noarch
katello-configure-1.4.5.1-3.el6sam.noarch
katello-glue-candlepin-1.4.3.28-1.el6sam_splice.noarch
katello-glue-elasticsearch-1.4.3.28-1.el6sam_splice.noarch
katello-headpin-1.4.3.28-1.el6sam_splice.noarch
katello-headpin-all-1.4.3.28-1.el6sam_splice.noarch
katello-selinux-1.4.4-2.el6sat.noarch
ruby193-rubygem-katello-redhat-access-engine-0.0.1-1.el6sam.noarch
thumbslug-0.0.40-1.el6sam.noarch
thumbslug-selinux-0.0.40-1.el6sam.noarch
subscription-manager: 1.13.5-1.el7
python-rhsm: 1.13.5-1.el7
How reproducible:
100%
Steps to Reproduce:
1. Register the client against SAM.
2. Open subscription-manager-gui -> System -> Preferences, uncheck "Enable auto-attach preference", and click "Close" button to close preferences window.
3. Reopen subscription-manager-gui, and reopen preferences window.
4. Open a terminal on the client, and show the current auto-attach preference.
[root@dhcp-128-22 ~]# subscription-manager auto-attach --show
Auto-attach preference: enabled
5. Disable the auto-attach preference on terminal.
[root@dhcp-128-22 ~]# subscription-manager auto-attach --disable
Auto-attach preference: disabled
6. Show the current auto-attach preference again.
[root@dhcp-128-22 ~]# subscription-manager auto-attach --show
Auto-attach preference: enabled
Actual results:
In step 3, the "Enable auto-attach preference" is checked automatically after uncheck it.
In step 6, the auto-attach preference is "enabled" after disable it.
Expected results:
In step 3, the "Enable auto-attach preference" should not be checked automatically after uncheck it.
In step 6, the auto-attach preference should be "disabled" after disable it.
Additional info:
Verified.
Verifying version:
[root@dhcp-128-89 ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 2.2.0.65-Unknown
subscription management rules: 5.16
subscription-manager: 1.15.9-2.el7
python-rhsm: 1.15.4-2.el7
Steps to verify:
1. Register system to Satellite 6.1.0-20150731.1.
2. Open GUI, and uncheck "Enable auto-attach preference", and close the GUI.
3. Reopen the GUI, and "Enable auto-attach preference" is still unchecked. Please see attachment 'Enable_auto_attach_preference_unchecked_after_unchecking.png'
4. Check the preference in CLI.
[root@dhcp-128-89 ~]# subscription-manager auto-attach --show
Auto-attach preference: disabled
As per step 3 and step 4, moving this bug to verified.