Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1157383 - auto-attach preference can not be configured to disable both in GUI and CLI
Summary: auto-attach preference can not be configured to disable both in GUI and CLI
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: subscription-manager
Version: 7.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: candlepin-bugs
QA Contact: John Sefler
URL:
Whiteboard:
Depends On:
Blocks: rhsm-rhel72 1326631
TreeView+ depends on / blocked
 
Reported: 2014-10-27 06:57 UTC by qianzhan
Modified: 2020-12-11 10:09 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1326631 (view as bug list)
Environment:
Last Closed: 2020-12-11 10:09:52 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Enable_auto_attach_preference_unchecked_after_unchecking.png (270.64 KB, image/png)
2015-08-12 08:23 UTC, qianzhan
no flags Details

Description qianzhan 2014-10-27 06:57:28 UTC
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:

Comment 4 William Poteat 2015-08-04 15:52:04 UTC
Settings are correctly retained across CLI/GUI in current source.

Comment 5 qianzhan 2015-08-12 08:22:55 UTC
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.

Comment 6 qianzhan 2015-08-12 08:23:39 UTC
Created attachment 1061853 [details]
Enable_auto_attach_preference_unchecked_after_unchecking.png

Comment 8 Rehana 2020-12-11 10:09:52 UTC
closing the bug as current release .


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