Undercloud ntp service was not upgraded
Steps to reproduce
On Rocky undercloud run:
[stack@undercloud-0 ~]$ pgrep -a ntpd
25903 /usr/sbin/ntpd -u ntp:ntp -g
There is a ntp service, configured and running
Upgrade undercloud to Stein by:
openstack undercloud upgrade -y
Either ntp or chrony should be configured and running.
There are no ntp services running on undercloud.
1. Environment - Rocky and Stein undercloud.
Like I commented in https://bugs.launchpad.net/tripleo/+bug/1835368/comments/1 - I don't understand what your issue is.
Also please share your logs (journal at least).
Small notes: the upgrade is from osp-14 -> osp-15 on RHEL, meaning there's an OS upgrade from rhel-7 to rhel-8. This involves a host reboot.
The issue is, "chronyd" is explicitly disabled when we deploy osp-14, since we were using ntpd back then. The current ansible "chrony" module doesn't re-enable it, meaning the service doesn't survive a reboot.
The patch linked to this BZ ensures the service is enabled, correcting this issue.
We still have to make it merge, then backport it upstream, and take it downstream for osp-15.
upstream merged, need to see for downstream backports.
Looks good in latest undercloud upgrade:
[root@undercloud-0 ~]# rpm -q ansible-role-chrony openstack-tripleo-heat-templates python3-tripleoclient
[root@undercloud-0 ~]# cat /etc/chrony.conf
# Do not manually edit this file.
# Managed by ansible-role-chrony
server clock.redhat.com iburst minpoll 6 maxpoll 10
server clock2.redhat.com iburst minpoll 6 maxpoll 10
makestep 1.0 3
[root@undercloud-0 ~]# systemctl status chronyd
● chronyd.service - NTP client/server
Loaded: loaded (/usr/lib/systemd/system/chronyd.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2019-08-22 12:11:35 UTC; 24h ago
Process: 844 ExecStartPost=/usr/libexec/chrony-helper update-daemon (code=exited, status=0/SUCCESS)
Process: 758 ExecStart=/usr/sbin/chronyd $OPTIONS (code=exited, status=0/SUCCESS)
Main PID: 792 (chronyd)
Tasks: 1 (limit: 26213)
srp 22 12:11:35 undercloud-0.redhat.local systemd: Starting NTP client/server...
srp 22 12:11:35 undercloud-0.redhat.local chronyd: chronyd version 3.3 starting (+CMDMON +NTP +REFCLOCK +RTC +PRIVDROP +SCFILTER +SIGND +ASYNCDNS +SECHASH +IPV6 +DEBUG)
srp 22 12:11:35 undercloud-0.redhat.local chronyd: Frequency -8.092 +/- 0.014 ppm read from /var/lib/chrony/drift
srp 22 12:11:35 undercloud-0.redhat.local systemd: Started NTP client/server.
srp 22 12:11:41 undercloud-0.redhat.local chronyd: Selected source 10.16.255.1
srp 22 12:11:41 undercloud-0.redhat.local chronyd: System clock wrong by 1.376586 seconds, adjustment started
srp 22 12:11:42 undercloud-0.redhat.local chronyd: System clock was stepped by 1.376586 seconds
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.