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
9e409492ff
commit
09d669b9f2
|
@ -155,7 +155,7 @@
|
||||||
# Similarly, when using Ceph, must occur after Ceph setup.
|
# Similarly, when using Ceph, must occur after Ceph setup.
|
||||||
- import_tasks: gnocchi_db_sync.yml
|
- import_tasks: gnocchi_db_sync.yml
|
||||||
when:
|
when:
|
||||||
- _gnocchi_is_first_play_host
|
- (gnocchi_storage_driver == 'file') | ternary(True, _gnocchi_is_first_play_host)
|
||||||
- not gnocchi_identity_only | bool
|
- not gnocchi_identity_only | bool
|
||||||
tags:
|
tags:
|
||||||
- gnocchi-config
|
- gnocchi-config
|
||||||
|
|
Loading…
Reference in New Issue