Fix dashboard creation during grafana.client state
During the execution of pipeline we'll get the following error:
"Failed to create dashboard nginx, response={u'status': u'not-found', u'message': u'Dashboard not found'}"
This commit refactoring the logic of execution of grafana.client state.
It is executing salt-call on each mon node one by one via salt batch.
Change-Id: Ie29ce6b01943d1f783b88a3c7ae64a106a0424a5
diff --git a/src/com/mirantis/mk/Orchestrate.groovy b/src/com/mirantis/mk/Orchestrate.groovy
index 4a62609..ac90582 100644
--- a/src/com/mirantis/mk/Orchestrate.groovy
+++ b/src/com/mirantis/mk/Orchestrate.groovy
@@ -389,7 +389,9 @@
// salt.enforceState(master, 'I@grafana:client and *01*', 'grafana.client', true)
// Finalize the configuration of Grafana (add the dashboards...)
- salt.enforceState(master, 'I@grafana:client', 'grafana.client', true)
+ salt.enforceState(master, 'I@grafana:client and *01*', 'grafana.client', true)
+ salt.enforceState(master, 'I@grafana:client and *02*', 'grafana.client', true)
+ salt.enforceState(master, 'I@grafana:client and *03*', 'grafana.client', true)
// nw salt -C 'I@grafana:client' --async service.restart salt-minion; sleep 10
// Get the StackLight monitoring VIP addres