Allow to choose ntpq rather than chrony on Bionic
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
NTP Charm |
Fix Released
|
Wishlist
|
Pedro Guimarães |
Bug Description
According to lib/ntp_
def get_implementat
"""Select the appropriate NTP implementation for this platform."""
if implementation_name is not None and implementation_
return Chronyd()
if implementation_name is not None and implementation_
return NTPd()
# anything else: auto mode
platform = charmhelpers.
version = float(charmhelp
if platform == 'ubuntu':
if version > 18:
# Ubuntu 18.04 or later: use chronyd
return Chronyd()
else:
# Ubuntu 17.10 or earlier: use ntpd
return NTPd()
I can only choose NTPd service rather than Chronyd if I am running Xenial or older. However, for integration reasons (e.g. Contrail 5: https:/
Therefore, we need to have a config option that allows to manually override this selection.
Related branches
- Joel Sing (community): Approve (+1)
-
Diff: 58 lines (+20/-2)2 files modifiedconfig.yaml (+9/-0)
lib/ntp_implementation.py (+11/-2)
- Joel Sing: Pending requested
-
Diff: 58 lines (+20/-2)2 files modifiedconfig.yaml (+9/-0)
lib/ntp_implementation.py (+11/-2)
- Pedro Guimarães: Approve
-
Diff: 82 lines (+24/-2) (has conflicts)2 files modifiedconfig.yaml (+12/-0)
lib/ntp_implementation.py (+12/-2)
- Joel Sing (community): Needs Fixing
-
Diff: 63 lines (+23/-2)2 files modifiedconfig.yaml (+9/-0)
lib/ntp_implementation.py (+14/-2)
Changed in ntp-charm: | |
assignee: | nobody → Pedro Guimarães (pguimaraes) |
tags: | added: cpe-onsite |
Changed in ntp-charm: | |
status: | Opinion → Fix Committed |
Changed in ntp-charm: | |
status: | Fix Committed → Fix Released |
@pguimaraes - Could you please provide some further information about how contrail uses ntpq? I couldn't find any reference to it in the issue you linked to or the documentation it referenced.
The decision to only support chronyd on bionic in the ntp charm was made because ntpd is no longer receiving security support, and thus it's not recommended to use it on bionic and later releases.