From 61e63ffb546a5786a5b2d20eb54b85758f3a0780 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 9161cf7..23f393b 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -143,7 +143,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