Support for chrony service

Registered by Emilien Macchi

Taken from https://bugzilla.redhat.com/show_bug.cgi?id=1535066

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 future RHEL versions.

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 [1].

Additional info:

[1] https://bugs.launchpad.net/tripleo/+bug/1736349

Blueprint information

Status:
Complete
Approver:
Alex Schultz
Priority:
Medium
Drafter:
Emilien Macchi
Direction:
Approved
Assignee:
Emilien Macchi
Definition:
Approved
Series goal:
Accepted for stein
Implementation:
Implemented
Milestone target:
milestone icon stein-2
Started by
Alex Schultz
Completed by
Alex Schultz

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/tripleo-chrony,n,z

Addressed by: https://review.openstack.org/586679
    Create a Timesync service declaration

Addressed by: https://review.openstack.org/588111
    WIP: Add chrony time service

Addressed by: https://review.openstack.org/599825
    Add chrony support to validations

Addressed by: https://review.openstack.org/611969
    Switch to Chrony by default

Addressed by: https://review.openstack.org/639162
    Replace ntp with chrony

Addressed by: https://review.openstack.org/639163
    Release note for chrony/ntp switch

Gerrit topic: https://review.opendev.org/#/q/topic:bp/tripleo-chrony

Addressed by: https://review.opendev.org/656999
    Remove NTP

Addressed by: https://review.opendev.org/657001
    Remove ntp

Addressed by: https://review.opendev.org/657035
    Use timesync service

Gerrit topic: https://review.opendev.org/#/q/topic:bug/1827676

Addressed by: https://review.opendev.org/657604
    Use timesync service

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.