From 2174e5704fc6ca84e1a3f4b162bb172e6c66d12a Mon Sep 17 00:00:00 2001 From: Florent Carli Date: Tue, 12 Mar 2024 18:31:16 +0100 Subject: [PATCH] cephadm.py: add timemaster to timesync services list 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 (cherry picked from commit 4ee1c761e50e3c3feed89ccc5c450ac96681b778) --- src/cephadm/cephadm.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cephadm/cephadm.py b/src/cephadm/cephadm.py index 5a7ed9e7665..581f532acf0 100755 --- a/src/cephadm/cephadm.py +++ b/src/cephadm/cephadm.py @@ -4411,6 +4411,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) -- 2.39.5