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.
Bug 1282617 - [RFE] deprecate the "auto-attach" module in favor of "healing" to improve the customer's experience
Summary: [RFE] deprecate the "auto-attach" module in favor of "healing" to improve the...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: subscription-manager
Version: ---
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: rc
: 8.0
Assignee: candlepin-bugs
QA Contact: Red Hat subscription-manager QE Team
URL:
Whiteboard:
Depends On:
Blocks: 1282630
TreeView+ depends on / blocked
 
Reported: 2015-11-16 21:57 UTC by John Sefler
Modified: 2023-09-14 03:13 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-01 03:02:50 UTC
Type: Bug
Target Upstream Version:
Embargoed:


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


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1272148 0 unspecified CLOSED Attaching a subscription with a pool-id auto enabled auto-attach aka auto-healing 2021-02-22 00:41:40 UTC

Internal Links: 1272148

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


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