From 04315751a468d921acf529400f1af528770cd2da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Piliszek?= Date: Tue, 6 Apr 2021 12:19:47 +0000 Subject: [PATCH] Drop the NTP service precheck We can't check this with timedatectl as it is not aware of any "non-native" NTP daemon. This could be a warning-level message but we don't have such messages from the prechecks. Closes-Bug: #1922721 Change-Id: I6db37576118cf5cff4ba7a63e179f0ab37467d22 --- ansible/roles/prechecks/tasks/timesync_checks.yml | 10 ---------- releasenotes/notes/bug-1922721-19163cfb491d0035.yaml | 7 +++++++ 2 files changed, 7 insertions(+), 10 deletions(-) create mode 100644 releasenotes/notes/bug-1922721-19163cfb491d0035.yaml diff --git a/ansible/roles/prechecks/tasks/timesync_checks.yml b/ansible/roles/prechecks/tasks/timesync_checks.yml index ba45d4d37d..fdbda89c71 100644 --- a/ansible/roles/prechecks/tasks/timesync_checks.yml +++ b/ansible/roles/prechecks/tasks/timesync_checks.yml @@ -5,16 +5,6 @@ register: timedatectl_status changed_when: false -- name: Fail if no (S)NTP service is running - fail: - msg: >- - timedatectl does not see any (S)NTP service running. - Please ensure you have (S)NTP client working. - when: - - "'service: active' not in timedatectl_status.stdout" - # Ubuntu Bionic (18.04) - - "'service active: yes' not in timedatectl_status.stdout" - - name: Fail if the clock is not synchronized fail: msg: >- diff --git a/releasenotes/notes/bug-1922721-19163cfb491d0035.yaml b/releasenotes/notes/bug-1922721-19163cfb491d0035.yaml new file mode 100644 index 0000000000..b8cdc1e6d1 --- /dev/null +++ b/releasenotes/notes/bug-1922721-19163cfb491d0035.yaml @@ -0,0 +1,7 @@ +--- +fixes: + - | + Fixes an issue preventing prechecks from succeeding when "non-native" + NTP daemon was used, such as ``ntpd` as opposed to ``systemd-timesyncd`` + on a Debian/Ubuntu system or to ``chronyd`` on a CentOS/RHEL system. + `LP#1922721 `__