Bug 916666
| Summary: | Displayed 'Next System Check-In' is inaccurate | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | J.C. Molet <jmolet> | ||||
| Component: | subscription-manager | Assignee: | William Poteat <wpoteat> | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | IDM QE LIST <seceng-idm-qe-list> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 7.0 | CC: | alikins, bkearney, ckozak, dgoodwin, fsharath, jmolet, jsefler, wpoteat | ||||
| Target Milestone: | beta | ||||||
| Target Release: | 7.0 | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2014-06-13 11:49:17 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: | 863175 | ||||||
| Attachments: |
|
||||||
|
Description
J.C. Molet
2013-02-28 16:02:15 UTC
For part A:
- The time in the facts dialog is the timestamp of the facts cache, that should
only get updated if the local facts have changed from what was last sent
to the server. So it can drift from the time of the last checkin (and/or not
equals last_checkin+cert_interval
- the value or the next checkin time from /var/run/rhsm/update incorrectly only
gets set once. (To the time the first scheduled checkin after the inital_delay check in). So currently it's basically always wrong.
commit 0c7c9179a45440de3bcb4722210756229225b49d
Author: William Poteat <wpoteat>
Date: Tue Nov 5 08:26:18 2013 -0500
916666: Displayed 'Next System Check-In' is inaccuarate
GUI now does not show next checkin time when rhsmcertd is not running
update file is now updated each time the frequency is reached so that the checkin
time in the about pane is correct.
The initial next time is set at startup. that time will reflect when the timed, repeating, cert-refresh will occur. The initial cert refresh is a one off. It runs 2 minutes after the service starts because it waits for the service to fully initialize. It is not reflected in the about screens reporting. master commmit 0c7c9179a45440de3bcb4722210756229225b49d Version: # subscription-manager version server type: Red Hat Subscription Management subscription management server: 0.8.31-1 subscription-manager: 1.10.6-1.el7 python-rhsm: 1.10.6-1.el7 Scenario 1: Restart rhsmcertd server, wait for 3 mins, verify rhsmcertd.log to have performed [cert-check], in GUI->Help->About verify "Next-System-Check" is four hours (certCheckInterval= 240 from conf file) from when [cert-check] was last performed. VERIFIED Scenario 2: Change the "certCheckInterval" in conf file to a low value for example 4mins and restart rhsmcertd. Verify rhsmcertd.log file to have performed [cert-check], in GUI->Help->About verify Next-System-Check is 4mins from when [cert-check] was last performed. Wait for 4mins and verify whether [cert-check] was performed again and also whether "Next-System-Check" was updated appropriately. VERIFIED Scenario 3: stop rhsmcertd server. in GUI->Help->About verify Next-System-Check is Unknown/Blank. FAILED In this scenario after executing 'service rhsmcertd stop' rhsmcertd.log is updated accordingly to 'shutting down rhsmcertd server'. 'service rhsmcertd status' displays inactive/dead. But on the GUI the "Next-System-Check" does not get updated. Moving back to ASSIGNED master commit 5cfb3a01f848071f1dcda87634517613fe6e35f7 correctly updates about panel based on rhsmcertd status Created attachment 856660 [details]
rhsmcertd and next system check
Version
# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 0.9.2-1
subscription-manager: 1.10.11-1.el7
python-rhsm: 1.10.11-1.el7
Verification:
See attachment for GUI Verification
Scenario 1:
Tue Jan 28 09:38:22 2014 [INFO] Waiting 120 second(s) [2.0 minute(s)] before running updates.
Tue Jan 28 09:40:29 2014 [INFO] (Auto-attach) Certificates updated.
Tue Jan 28 09:40:31 2014 [INFO] (Cert Check) Certificates updated.
>>>> VERIFIED <<<<
Scenario 2:
# cat /etc/rhsm/rhsm.conf | grep "certCheckInterval" -B1
# Interval to run cert check (in minutes):
certCheckInterval = 4
Tue Jan 28 09:47:08 2014 [INFO] Waiting 120 second(s) [2.0 minute(s)] before running updates.
Tue Jan 28 09:49:10 2014 [INFO] (Auto-attach) Certificates updated.
Tue Jan 28 09:49:12 2014 [INFO] (Cert Check) Certificates updated.
Tue Jan 28 09:51:10 2014 [INFO] (Cert Check) Certificates updated.
Tue Jan 28 09:55:09 2014 [INFO] (Cert Check) Certificates updated.
>>>> VERIFIED <<<<
Scenario 3:
Tue Jan 28 10:00:26 2014 [INFO] rhsmcertd is shutting down...
>>>> VERIFIED <<<<
This request was resolved in Red Hat Enterprise Linux 7.0. Contact your manager or support representative in case you have further questions about the request. |