Bug 2042689

Summary: ntp sources may be offline after a reboot
Product: Red Hat OpenStack Reporter: Alex Schultz <aschultz>
Component: ansible-role-chronyAssignee: Kevin Carter <kecarter>
Status: CLOSED ERRATA QA Contact: David Rosenfeld <drosenfe>
Severity: high Docs Contact:
Priority: high    
Version: 16.2 (Train)CC: cmuresan, jjoyce, kecarter, marjones, mburns, pweeks, spower, tvignaud
Target Milestone: z2Keywords: Triaged
Target Release: 16.2 (Train on RHEL 8.4)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ansible-role-chrony-1.0.4-2.20210618224813.el8ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2046316 (view as bug list) Environment:
Last Closed: 2022-03-23 22:13:07 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: 2046316    

Description Alex Schultz 2022-01-19 22:40:51 UTC
Description of problem:

Rebooting of nodes may cause the chrony sources to be marked offline causing synchronization to not occur. Related Bug 2040915

Version-Release number of selected component (if applicable):
OSP16.2/OSP16.1

Comment 3 pweeks 2022-02-07 15:39:47 UTC
Kevin, giving you some visibility into this BZ given alex departure.

Comment 13 David Rosenfeld 2022-03-07 17:43:02 UTC
After an overcloud reboot the new chrony-online service started the chronyd service: 

[heat-admin@compute-1 ~]$ sudo systemctl status chrony-online
● chrony-online.service - chronyd online sources service
   Loaded: loaded (/etc/systemd/system/chrony-online.service; enabled; vendor preset: disabled)
   Active: inactive (dead) since Mon 2022-03-07 17:17:24 UTC; 14min ago
 Main PID: 2326 (code=exited, status=0/SUCCESS)

Mar 07 17:17:24 compute-1 systemd[1]: Starting chronyd online sources service...
Mar 07 17:17:24 compute-1 chronyc[2326]: 200 OK
Mar 07 17:17:24 compute-1 systemd[1]: chrony-online.service: Succeeded.
Mar 07 17:17:24 compute-1 systemd[1]: Started chronyd online sources service.


[heat-admin@compute-1 ~]$ sudo systemctl status chronyd
● chronyd.service - NTP client/server
   Loaded: loaded (/usr/lib/systemd/system/chronyd.service; enabled; vendor preset: enabled)
   Active: active (running) since Mon 2022-03-07 17:16:54 UTC; 19min ago
     Docs: man:chronyd(8)
           man:chrony.conf(5)
 Main PID: 904 (chronyd)
    Tasks: 1 (limit: 49140)
   Memory: 1.5M
   CGroup: /system.slice/chronyd.service
           └─904 /usr/sbin/chronyd

Mar 07 17:16:54 compute-1 systemd[1]: Starting NTP client/server...
Mar 07 17:16:54 compute-1 chronyd[904]: chronyd version 3.5 starting (+CMDMON +NTP +REFCLOCK +RTC +PRIVDROP +SCFILTER +SIGND +ASYNCDNS +SECHASH +IPV6 +DEBUG)
Mar 07 17:16:54 compute-1 chronyd[904]: Frequency -6.556 +/- 0.042 ppm read from /var/lib/chrony/drift
Mar 07 17:16:54 compute-1 systemd[1]: Started NTP client/server.
Mar 07 17:17:26 compute-1 chronyd[904]: Selected source 10.11.160.2

Comment 19 errata-xmlrpc 2022-03-23 22:13:07 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 (Release of components for Red Hat OpenStack Platform 16.2.2), and where to find the updated
files, follow the link below.

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

https://access.redhat.com/errata/RHBA-2022:1001