From 281c9935da076eb7a744136e3738084468692278 Mon Sep 17 00:00:00 2001 From: Michal Arbet Date: Wed, 23 Jun 2021 15:28:04 +0200 Subject: [PATCH] Do not run timesync checks on deployment host Kolla-ansible install python docker library in role/baremetal to group/baremetal, because of this get container facts for timesync checks is failing on deployment host. This patch adding when conditional, so deployment host will be skipped as there is no need to run timesync checks. Closes-Bug: #1933347 Change-Id: Ifefb9c74ee6a80cdbc458992d0196850ddfe7ffa --- ansible/roles/prechecks/tasks/main.yml | 1 + releasenotes/notes/bug-1933347-4031d94ef7decb3c.yaml | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 releasenotes/notes/bug-1933347-4031d94ef7decb3c.yaml diff --git a/ansible/roles/prechecks/tasks/main.yml b/ansible/roles/prechecks/tasks/main.yml index 297074fe35..70da7f82a0 100644 --- a/ansible/roles/prechecks/tasks/main.yml +++ b/ansible/roles/prechecks/tasks/main.yml @@ -5,6 +5,7 @@ - include_tasks: timesync_checks.yml when: - not enable_chrony | bool + - inventory_hostname not in groups['deployment']|default([]) - import_tasks: datetime_checks.yml diff --git a/releasenotes/notes/bug-1933347-4031d94ef7decb3c.yaml b/releasenotes/notes/bug-1933347-4031d94ef7decb3c.yaml new file mode 100644 index 0000000000..0174ea7612 --- /dev/null +++ b/releasenotes/notes/bug-1933347-4031d94ef7decb3c.yaml @@ -0,0 +1,5 @@ +--- +fixes: + - | + Fixes an issue with timesync checks on deployment host. See `bug + 1933347 `__ for details.