Bug 882459 - aftermath of bug 876753 - Change --heal-interval to --attach-interval in rhsmcertd
Summary: aftermath of bug 876753 - Change --heal-interval to --attach-interval in rhsm...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: subscription-manager
Version: 5.10
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: beta
: 5.10
Assignee: William Poteat
QA Contact: John Sefler
URL:
Whiteboard:
: 859557 (view as bug list)
Depends On:
Blocks: rhsm-rhel510 rhsm-2013
TreeView+ depends on / blocked
 
Reported: 2012-12-01 05:05 UTC by John Sefler
Modified: 2013-09-30 22:53 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
No description necessary
Clone Of:
Environment:
Last Closed: 2013-09-30 22:53:25 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:1332 0 normal SHIPPED_LIVE subscription-manager bug fix and enhancement update 2013-09-30 22:49:24 UTC

Description John Sefler 2012-12-01 05:05:51 UTC
Description of problem:
As a result of the --heal-interval change to --attach-interval from bug 876753, we should finish the job...


1. change --cert-interval to --cert-check-interval
> [root@jsefler-6 ~]# rhsmcertd --help | grep -- --cert
>   -c, --cert-interval=MINUTES            interval to run cert check (in minutes)
        ^^^^^^^^^^^^^^^
        --cert-check-interval 


2. change the message logging in /var/log/rhsm/rhsmcertd.log
> Fri Nov 30 23:15:03 2012 [INFO] Cert check interval: 240.0 minute(s) [14400 second(s)]
> Fri Nov 30 23:15:03 2012 [INFO] Healing interval: 1440.0 minute(s) [86400 second(s)]
                                  ^^^^^^^^^^^^^^^^
                                  Auto-attach interval


3. change the /etc/rhsm/rhsm.conf parameter for [rhsmcertd] *Frequency
[root@jsefler-6 ~]# grep Frequency /etc/rhsm/rhsm.conf
> # Frequency of certificate refresh (in minutes):
> certFrequency = 240
> # Frequency of autoheal check (1440 min = 1 day):
> healFrequency = 1440

# Interval to run cert check (in minutes):
certCheckInterval = 240
# Interval to run auto-attach (in minutes):
autoAttachInterval = 1440


4. change the corresponding options for subscription-manager config
> [root@rhsm-compat-rhel63 ~]# subscription-manager config --help | grep frequency
>   --server.certfrequency=SERVER.CERTFREQUENCY
>                         Section: server, Name: certfrequency
>   --server.healfrequency=SERVER.HEALFREQUENCY
>                         Section: server, Name: healfrequency
>   --rhsm.certfrequency=RHSM.CERTFREQUENCY
>                         Section: rhsm, Name: certfrequency
>   --rhsm.healfrequency=RHSM.HEALFREQUENCY
>                         Section: rhsm, Name: healfrequency
>   --rhsmcertd.certfrequency=RHSMCERTD.CERTFREQUENCY
>                         Section: rhsmcertd, Name: certfrequency
>   --rhsmcertd.healfrequency=RHSMCERTD.HEALFREQUENCY
>                         Section: rhsmcertd, Name: healfrequency

  --server.certcheckinterval=SERVER.CERTCHECKINTERVAL
                        Section: server, Name: certcheckinterval
  --server.autoattachinterval=SERVER.AUTOATTACHINTERVAL
                        Section: server, Name: autoattachinterval
  --rhsm.certcheckinterval=RHSM.CERTCHECKINTERVAL
                        Section: rhsm, Name: certcheckinterval
  --rhsm.autoattachinterval=RHSM.AUTOATTACHINTERVAL
                        Section: rhsm, Name: autoattachinterval
  --rhsmcertd.certcheckinterval=RHSMCERTD.CERTCHECKINTERVAL
                        Section: rhsmcertd, Name: certcheckinterval
  --rhsmcertd.autoattachinterval=RHSMCERTD.AUTOATTACHINTERVAL
                        Section: rhsmcertd, Name: autoattachinterval




Version-Release number of selected component (if applicable):
[root@jsefler-6 ~]# rpm -q subscription-manager
subscription-manager-1.1.10-1.el6.x86_64

Comment 2 William Poteat 2013-02-11 19:48:02 UTC
subscription manager commit 6bccd83f0066073433b983a7937a0c5ed7108de2
python-rhsm commit 8e73f4a848b0cf8d925c88e3caadb76d6b4d3669

Comment 3 John Sefler 2013-02-12 18:09:50 UTC
Testing version...
[root@jsefler-7 ~]# rpm -q subscription-manager
subscription-manager-1.8.2-1.git.13.3fdfb73.el7.x86_64


Following the lead of https://bugzilla.redhat.com/show_bug.cgi?id=876753#c3 we should also deprecate --cert-interval as follows...

[root@jsefler-7 ~]# rhsmcertd --help
Usage:
  rhsmcertd [OPTION...] 

Help Options:
  -h, --help                             Show help options

Application Options:
  -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

[root@jsefler-7 ~]# 

Expected another option like this...
  --cert-interval=MINUTES                deprecated, see --cert-check-interval

Comment 4 William Poteat 2013-02-19 20:07:49 UTC
*** Bug 859557 has been marked as a duplicate of this bug. ***

Comment 5 William Poteat 2013-03-05 13:10:36 UTC
main commit f7ec84c902e61319a384a18f0a8d75686c3716c1

Comment 6 Sharath Dwaral 2013-03-12 16:00:24 UTC
# rpm -qa | egrep "subscription-manager|python-rhsm"
subscription-manager-firstboot-1.8.4-1.el7.x86_64
python-rhsm-1.8.7-1.el7.x86_64
subscription-manager-gui-1.8.4-1.el7.x86_64
subscription-manager-migration-1.8.4-1.el7.x86_64
subscription-manager-1.8.4-1.el7.x86_64
subscription-manager-debuginfo-1.8.4-1.el7.x86_64

# rhsmcertd --help | grep -- --cert
   --cert-interval=MINUTES                deprecated, see --cert-check-interval     <=== Option added
   -c, --cert-check-interval=MINUTES      interval to run cert check (in minutes)

# grep -i frequency /etc/rhsm/rhsm.conf
                                                                       <==  No matches
# grep -i interval /etc/rhsm/rhsm.conf
   # Interval to run cert check (in minutes):
   certCheckInterval = 100
   # Interval to run auto-attach (in minutes):
   autoAttachInterval = 1440

# subscription-manager config --help | grep -i frequency
                                                                       <== No matches
# subscription-manager config --help | grep -i interval
  --server.certcheckinterval=SERVER.CERTCHECKINTERVAL
                        Section: server, Name: certcheckinterval
  --server.autoattachinterval=SERVER.AUTOATTACHINTERVAL
                        Section: server, Name: autoattachinterval
  --rhsm.certcheckinterval=RHSM.CERTCHECKINTERVAL
                        Section: rhsm, Name: certcheckinterval
  --rhsm.autoattachinterval=RHSM.AUTOATTACHINTERVAL
                        Section: rhsm, Name: autoattachinterval
  --rhsmcertd.certcheckinterval=RHSMCERTD.CERTCHECKINTERVAL
                        Section: rhsmcertd, Name: certcheckinterval
  --rhsmcertd.autoattachinterval=RHSMCERTD.AUTOATTACHINTERVAL
                        Section: rhsmcertd, Name: autoattachinterval

# rhsmcertd --helpUsage:
  rhsmcertd [OPTION...] 

Help Options:
  -h, --help                             Show help options

Application Options:
  --cert-interval=MINUTES                deprecated, see --cert-check-interval         <====  Option added
  -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


Verified

Comment 7 RHEL Program Management 2013-04-09 19:59:27 UTC
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux release.  Product Management has
requested further review of this request by Red Hat Engineering, for
potential inclusion in a Red Hat Enterprise Linux release for currently
deployed products.  This request is not yet committed for inclusion in
a release.

Comment 9 errata-xmlrpc 2013-09-30 22:53:25 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2013-1332.html


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