Bug 759199

Summary: rhsmcertd is logging the wrong value for certFrequency
Product: Red Hat Enterprise Linux 5 Reporter: John Sefler <jsefler>
Component: subscription-managerAssignee: Chris Duryee <cduryee>
Status: CLOSED ERRATA QA Contact: IDM QE LIST <seceng-idm-qe-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 5.8CC: cduryee, skallesh, spandey, wpoteat
Target Milestone: rc   
Target Release: 5.8   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 0.98.5-1.el5 Doc Type: Bug Fix
Doc Text:
No description necessary
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-21 06:43:35 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 715031, 769266    

Description John Sefler 2011-12-01 16:30:15 UTC
Version-Release number of selected component (if applicable):
[root@jsefler-onprem-5server ~]# rpm -q subscription-manager
subscription-manager-0.98.3-1.git.22.3de6379.el5_7


How reproducible:


Steps to Reproduce:
[root@jsefler-onprem-5server ~]# subscription-manager config --rhsmcertd.certfrequency=100 --rhsmcertd.healfrequency=200
[root@jsefler-onprem-5server ~]# subscription-manager config --list | grep frequency
   certfrequency = 100
   healfrequency = 200
[root@jsefler-onprem-5server ~]# service rhsmcertd restart
Stopping rhsmcertd                                         [  OK  ]
Starting rhsmcertd 100 200                                 [  OK  ]
[root@jsefler-onprem-5server ~]# tail -4 /var/log/rhsm/rhsmcertd.log
Thu Dec  1 11:23:21 2011: healing check started: interval = 1440
Thu Dec  1 11:23:21 2011: cert check started: interval = 240
Thu Dec  1 11:23:22 2011: certificates updated
Thu Dec  1 11:23:23 2011: certificates updated

 
Actual results:
shown above


Expected results:
Thu Dec  1 11:23:21 2011: healing check started: interval = 200
Thu Dec  1 11:23:21 2011: cert check started: interval = 100

NOTICE THE LOGGING OF THE RHSMCERTD FREQUENCIES ARE WRONG.  IT APPEARS TO BE USING THE DEFAULTS INSTEAD OF WHAT WAS SET.  NOT SURE WHAT FREQUENCIES ARE REALLY BEING USED.

I suspect something when wrong in commit https://bugzilla.redhat.com/show_bug.cgi?id=752572#c3

Comment 1 Chris Duryee 2011-12-01 17:48:07 UTC
65494c7 0.98.4+

Comment 2 John Sefler 2011-12-01 23:24:28 UTC
Verifying Version...
[root@jsefler-onprem-5server ~]# rpm -q subscription-manager
subscription-manager-0.98.3-1.git.24.65494c7.el5_7



[root@jsefler-onprem-5server ~]# subscription-manager config --rhsmcertd.certfrequency=100 --rhsmcertd.healfrequency=200
[root@jsefler-onprem-5server ~]# subscription-manager config --list | grep frequency
   certfrequency = 100
   healfrequency = 200
[root@jsefler-onprem-5server ~]# service rhsmcertd restart
Stopping rhsmcertd                                         [  OK  ]
Starting rhsmcertd 100 200                                 [  OK  ]
[root@jsefler-onprem-5server ~]# tail -4 /var/log/rhsm/rhsmcertd.log
Thu Dec  1 18:23:50 2011: healing check started: interval = 200
Thu Dec  1 18:23:50 2011: cert check started: interval = 100
Thu Dec  1 18:23:50 2011: certificates updated
Thu Dec  1 18:23:50 2011: certificates updated
[root@jsefler-onprem-5server ~]# 


moving to VERIFIED

Comment 3 William Poteat 2012-01-23 15:34:14 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
No description necessary

Comment 4 errata-xmlrpc 2012-02-21 06:43:35 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-2012-0154.html