Bug 1282617

Summary: [RFE] deprecate the "auto-attach" module in favor of "healing" to improve the customer's experience
Product: Red Hat Enterprise Linux 8 Reporter: John Sefler <jsefler>
Component: subscription-managerAssignee: candlepin-bugs
Status: CLOSED WONTFIX QA Contact: Red Hat subscription-manager QE Team <rhsm-qe>
Severity: unspecified Docs Contact:
Priority: medium    
Version: ---CC: candlepin-bugs, jgalipea, redakkan, vrjain
Target Milestone: rcKeywords: FutureFeature, Reopened, Triaged
Target Release: 8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-01 03:02:50 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1282630    
Attachments:
Description Flags
System Preferences none

Description John Sefler 2015-11-16 21:57:06 UTC
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 22:01:34 UTC
[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 22:03:57 UTC
update the man page for subscription-manager including the section on deprecated commands

Comment 4 John Sefler 2015-11-16 22:08:21 UTC
[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 22:11:40 UTC
[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 22:14:34 UTC
[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 22:19:39 UTC
[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 22:21:36 UTC
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 22:33:53 UTC
[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 10:52:32 UTC
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/

Comment 14 RHEL Program Management 2020-11-01 03:02:50 UTC
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release.  Therefore, it is being closed.  If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.

Comment 15 Red Hat Bugzilla 2023-09-14 03:13:09 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days