Bug 1282617 - [RFE] deprecate the "auto-attach" module in favor of "healing" to improve the customer's experience
[RFE] deprecate the "auto-attach" module in favor of "healing" to improve the...
Status: CLOSED WONTFIX
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: subscription-manager (Show other bugs)
6.8
Unspecified Unspecified
medium Severity unspecified
: rc
: ---
Assigned To: candlepin-bugs
John Sefler
: FutureFeature, Triaged
Depends On:
Blocks: 1282630
  Show dependency treegraph
 
Reported: 2015-11-16 16:57 EST by John Sefler
Modified: 2017-12-06 05:52 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-12-06 05:52:32 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
System Preferences (23.01 KB, image/png)
2015-11-16 17:21 EST, John Sefler
no flags Details

  None (edit)
Description John Sefler 2015-11-16 16:57:06 EST
Description of problem:
Currently we are overloading the term "auto-attach" to imply two different things:
1. immediately attach any available subscription(s) so as to satisfy my system's status now; or
2. turn on/off a configuration setting that will instruct rhsmcertd to issue an instruction to attach any available subscription(s) so as to satisfy my system's status on a daily schedule.

Unfortunately this is leading to a lot of customer confusion.  See bug 1272148 as an example.

Historically, case 1 came first and was dubbed "autosubscribe" but was later deprecated/aliased to "auto-attach".  Case 2 came afterwards and was internally dubbed "healing".  Let's use this new RFE bug to use the original terminology for case 2.


Unfortunately there are a lot of places that will require updates to make this change.  I will start listing them in the comments that follow.


Version-Release number of selected component (if applicable):
[root@jsefler-7 ~]# rpm -q subscription-manager
subscription-manager-1.15.9-15.el7.x86_64
Comment 2 John Sefler 2015-11-16 17:01:34 EST
[root@jsefler-7 ~]# subscription-manager --help | grep -A30 "Other Modules:"
Other Modules:   

  auto-attach    Set if subscriptions are attached on a schedule (default of daily)
  clean          Remove all local system and subscription data without affecting the server
  config         List, set, or remove the configuration parameters in use by this system
  environments   Display the environments available for a user
  facts          View or update the detected system information
  identity       Display the identity certificate for this system or request a new one
  import         Import certificates which were provided outside of the tool
  orgs           Display the organizations against which a user can register a system
  plugins        View and configure subscription-manager plugins
  redeem         Attempt to redeem a subscription for a preconfigured system
  repo-override  Manage custom content repository settings
  repos          List the repositories which this system is entitled to use
  service-level  Manage service levels for this system
  subscribe      Deprecated, see attach
  unsubscribe    Deprecated, see remove
  version        Print version information


Expected:
  auto-attach   Deprecated, see healing
  healing       Set if subscriptions are attached on a schedule (default of daily)
Comment 3 John Sefler 2015-11-16 17:03:57 EST
update the man page for subscription-manager including the section on deprecated commands
Comment 4 John Sefler 2015-11-16 17:08:21 EST
[root@jsefler-7 ~]# subscription-manager config | grep rhsmcertd -A10
[rhsmcertd]
   autoattachinterval = [1440]
   certcheckinterval = [240]

[] - Default value in use


Expected:
   autoattachinterval should be renamed to healinterval
Comment 5 John Sefler 2015-11-16 17:11:40 EST
[root@jsefler-7 ~]# rhsmcertd --help | grep "Application Options" -A20
Application Options:
  --cert-interval=MINUTES                deprecated, see --cert-check-interval
  -c, --cert-check-interval=MINUTES      interval to run cert check (in minutes)
  --heal-interval=MINUTES                deprecated, see --auto-attach-interval
  -i, --auto-attach-interval=MINUTES     interval to run auto-attach (in minutes)
  -n, --now                              run the initial checks immediately, with no delay
  -d, --debug                            show debug messages



Expected:
  -i, --heal-interval=MINUTES            interval to run auto-attach (in minutes)
  --auto-attach-interval=MINUTES         deprecated, see --heal-interval
Comment 6 John Sefler 2015-11-16 17:14:34 EST
[root@jsefler-7 ~]# cat /etc/rhsm/rhsm.conf | grep rhsmcertd -A20
[rhsmcertd]
# Interval to run cert check (in minutes):
certCheckInterval=240
# Interval to run auto-attach (in minutes):
autoAttachInterval=1440



Expected:
# Interval to run auto-attach (in minutes):
healInterval=1440
Comment 7 John Sefler 2015-11-16 17:19:39 EST
[root@jsefler-7 ~]# subscription-manager auto-attach --help
Usage: subscription-manager auto-attach [OPTIONS]

Set if subscriptions are attached on a schedule (default of daily)  <=======  Expected: Deprecated, see healing

Options:
  -h, --help            show this help message and exit
  --proxy=PROXY_URL     proxy URL in the form of proxy_hostname:proxy_port
  --proxyuser=PROXY_USER
                        user for HTTP proxy with basic authentication
  --proxypassword=PROXY_PASSWORD
                        password for HTTP proxy with basic authentication
  --enable              try to attach subscriptions for uncovered products
                        each check-in
  --disable             do not try to automatically attach subscriptions each
                        check-in
  --show                show the current auto-attach preference
Comment 8 John Sefler 2015-11-16 17:21 EST
Created attachment 1095127 [details]
System Preferences

Update the term "auto-attach" in the subscription-manager-gui preferences dialog to "healing"
Comment 9 John Sefler 2015-11-16 17:33:53 EST
[root@jsefler-7 ~]# subscription-manager auto-attach --show
Auto-attach preference: enabled


Expected:
[root@jsefler-7 ~]# subscription-manager healing --show
Healing preference: enabled
Comment 10 Jan Kurik 2017-12-06 05:52:32 EST
Red Hat Enterprise Linux 6 is in the Production 3 Phase. During the Production 3 Phase, Critical impact Security Advisories (RHSAs) and selected Urgent Priority Bug Fix Advisories (RHBAs) may be released as they become available.

The official life cycle policy can be reviewed here:

http://redhat.com/rhel/lifecycle

This issue does not meet the inclusion criteria for the Production 3 Phase and will be marked as CLOSED/WONTFIX. If this remains a critical requirement, please contact Red Hat Customer Support to request a re-evaluation of the issue, citing a clear business justification. Note that a strong business justification will be required for re-evaluation. Red Hat Customer Support can be contacted via the Red Hat Customer Portal at the following URL:

https://access.redhat.com/

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