MAAS NTP config on region/rack controllers seems to be including MAAS peers even when "Use external NTP servers only" is checked
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Invalid
|
High
|
Unassigned |
Bug Description
For a particular environment, we have NTP configured across the cloud via charm-ntp to point directly at 2 customer-controlled NTP servers. The intent is for this to be the case across the entire cloud, including the MAAS nodes. Obviously that's 2 sources of truth regarding NTP config: MAAS and charm-ntp. This is OK as long as the end result of either is effectively the same - unfortunately, it's not. MAAS is adding peer addresses which we don't want.
We have 3 MAAS nodes, and all of them are region and rack controllers. We've specified the customer's NTP servers and have checked the "Use external NTP servers only" checkbox.
What we see is: when MAAS rewrites the chrony config, in /etc/chrony/
Is there a way to have MAAS write config with only the upstream servers, and without the peers?
Yes, I think you're right. If you specify that there should be only external servers, there shouldn't be any peers configured.
The relevant code is in src/maasserver/ ntp.py. get_peers_for() needs to check _ntp_external_ only().
I don't think there's any workaround, but the fix should be fairly simple.