]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm.py: add timemaster to timesync services list 56307/head
authorFlorent Carli <florent.carli@rte-france.com>
Tue, 12 Mar 2024 17:31:16 +0000 (18:31 +0100)
committerAdam King <adking@redhat.com>
Tue, 19 Mar 2024 17:53:56 +0000 (13:53 -0400)
On debian/ubuntu, if you need PTP, it's possible to use the linuxptp package for time-synchonization.
In that case the systemd service is called timemaster and is a wrapper for chrony/ntpd/phc2sys/ptp4l.

Signed-off-by: Florent Carli <florent.carli@rte-france.com>
(cherry picked from commit 4ee1c761e50e3c3feed89ccc5c450ac96681b778)

src/cephadm/cephadm.py

index 5a2e248c62f16dfb80dea370efdcf0555e99b944..654add944e8a1fee5c3c3c0e7f92442b266bc7a2 100755 (executable)
@@ -8276,6 +8276,7 @@ def check_time_sync(ctx, enabler=None):
         'ntp.service',  # 18.04 (at least)
         'ntpsec.service',  # 20.04 (at least) / buster
         'openntpd.service',  # ubuntu / debian
+        'timemaster.service',  # linuxptp on ubuntu/debian
     ]
     if not check_units(ctx, units, enabler):
         logger.warning('No time sync service is running; checked for %s' % units)