From 09d669b9f2605635ef46b433d2d084f1b46a6628 Mon Sep 17 00:00:00 2001 From: Jonathan Herlin Date: Wed, 10 Nov 2021 17:18:16 +0100 Subject: [PATCH] Fix gnocchi multi-node when storage_driver is file When gnocchi_storage_driver is file, run the db sync on all nodes. But if gnocchi_storage_driver is other than file, run only on first node. Closes-Bug: #1915618 Change-Id: I18a0ca9e32515194fbcf939bed53cdbef4de26f6 --- tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index bfa8941..da52014 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -155,7 +155,7 @@ # Similarly, when using Ceph, must occur after Ceph setup. - import_tasks: gnocchi_db_sync.yml when: - - _gnocchi_is_first_play_host + - (gnocchi_storage_driver == 'file') | ternary(True, _gnocchi_is_first_play_host) - not gnocchi_identity_only | bool tags: - gnocchi-config