chrony config is wrong

Bug #1856019 reported by Cédric Jeanneret
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Invalid
Medium
Cédric Jeanneret

Bug Description

Hello,

Currently, we have these defaults for deployment/timesync/chrony-baremetal-ansible.yaml:

  NtpServer:
    default: ['0.pool.ntp.org', '1.pool.ntp.org', '2.pool.ntp.org', '3.pool.ntp.org']
  NtpPool:
    default: []

From the manpage, we can understand that "server" is for a host with a single IP, and "pool" is for a host with multiple IPs.

Since *.pool.ntp.org have multiple IPs for each names, it should use the "pool" entry instead of "server" entry in the configuration.

It might make things easier and cleaner for the retries.

Revision history for this message
Alex Schultz (alex-schultz) wrote :

This is done for backwards compatibility. It's intentional.

Changed in tripleo:
status: Triaged → Invalid
Revision history for this message
Alex Schultz (alex-schultz) wrote :

The history:

ntp only ever supported ntp servers, so we have --ntp-server in the cli, etc. These are not compatible with pool. Because everyone will have already defined NtpServer (and not pool), we can't configure pool by default. We only configure pool if explicitly defined. Not ideal, but this is a legacy carry over from NTP. Anyone upgrading would likely end up with invalid ntp configurations because the pool takes precedence of servers.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.