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
This commit is contained in:
parent
93ea87da56
commit
61e63ffb54
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue