Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1535066

Summary: [RFE] Support for chrony NTP service
Product: Red Hat OpenStack Reporter: Miroslav Lichvar <mlichvar>
Component: openstack-tripleo-heat-templatesAssignee: Alex Schultz <aschultz>
Status: CLOSED ERRATA QA Contact: Victor Voronkov <vvoronko>
Severity: medium Docs Contact:
Priority: high    
Version: 15.0 (Stein)CC: afazekas, aschultz, brault, cjeanner, dprince, emacchi, gregraka, jcoufal, mburns, pbarta, sclewis, thozza, vvoronko
Target Milestone: Upstream M2Keywords: FutureFeature, Reopened, Triaged
Target Release: 15.0 (Stein)   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: openstack-tripleo-heat-templates-10.5.1-0.20190606110437.b9992d9.el8ost Doc Type: Enhancement
Doc Text:
In Red Hat OpenStack Platform 15, which depends on Red Hat Enterprise Linux 8, there is a new default Time service, chrony. With this switch, Red Hat highly recommends that you use multiple Network Time Protocol (NTP) servers for both the undercloud and overcloud deployments.
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-09-21 11:15:27 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: 1647119    
Bug Blocks: 1335596, 1396161, 1476902    

Description Miroslav Lichvar 2018-01-16 15:24:33 UTC
Description of problem:
In RHEL7 we have switched to chrony as the default NTP implementation and there is now a possibility that ntp will be removed in RHEL8 completely [1].

Please consider adding support for configuring chrony instead of ntp. Currently, TripleO seems to be using the puppetlabs' ntp module (setting ntp::servers, ntp::iburst_enable, ntp::maxpoll, ntp::minpoll)

The syntax of the server directive using these options in chrony.conf is identical to ntp.conf. There are some chrony modules available on Puppet Forge. However, they have a different interface and their features are minimal when compared to the ntp module. I can help with writing a new module if needed.

Also, it seems the tripleo-heat-templates/validation-scripts/all-nodes.sh script uses ntpdate to check if the servers are available. The "ntpdate -qud" command can be replaced with "chronyd -Q -d 'server $SERVER iburst'".

An upstream RFE is at [2].

Additional info:

[1] https://docs.engineering.redhat.com/pages/viewpage.action?pageId=48831600
[2] https://bugs.launchpad.net/tripleo/+bug/1736349

Comment 2 Emilien Macchi 2018-01-16 16:38:00 UTC
Blueprint proposed: https://blueprints.launchpad.net/tripleo/+spec/tripleo-chrony

Comment 5 Dan Prince 2018-03-07 21:11:26 UTC
In making this switch it might also be worth switching the service over to be a container. We currently still run NTP on baremetal.

Comment 6 Miroslav Lichvar 2018-03-08 08:30:56 UTC
Please note that moving chronyd to a container may have an impact on accuracy of the clock as the network interfaces don't support SW/HW timestamping. I'm not sure if it really matters for openstack.

Comment 15 Jaromir Coufal 2018-06-14 12:56:15 UTC
Thanks Tomas, in that case I am closing this BZ as won't fix, please inform us if/when this changes.

Comment 17 Tomáš Hozza 2018-06-14 13:14:11 UTC
(In reply to Jaromir Coufal from comment #15)
> Thanks Tomas, in that case I am closing this BZ as won't fix, please inform
> us if/when this changes.

I think you misunderstood me. This means you actually MUST do the work for all the release which will be supported on top of RHEL-8... ;)

Our understanding is that OSP currently relies on ntp as the NTP implementation. This bug is about moving OSP to chrony as the NTP implementation, since chrony is the default NTP implementation in RHEL-7 and it will be the ONLY NTP implementation in RHEL-8.

Just to make sure we understand what is what:
NTP - name of the protocol
ntp - implementation of NTP
chrony - preferred implementation of NTP

Comment 20 Jaromir Coufal 2018-06-15 09:47:30 UTC
This will be a blocker RFE for OSP 15 given the change in underlying RHEL.

Comment 21 Emilien Macchi 2018-08-01 23:29:33 UTC
*** Bug 1511830 has been marked as a duplicate of this bug. ***

Comment 22 Emilien Macchi 2018-08-01 23:29:35 UTC
*** Bug 1415974 has been marked as a duplicate of this bug. ***

Comment 24 Alex Schultz 2018-10-25 23:16:18 UTC
All patches are posted but we're waiting on an upstream promotion before we can land them all.

Comment 27 Victor Voronkov 2019-08-29 16:31:35 UTC
Manual tests massed

Comment 31 errata-xmlrpc 2019-09-21 11:15:27 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.

https://access.redhat.com/errata/RHEA-2019:2811