Collect grains for new node in ceph-add-node
Change-Id: Ifa12b06c44d9dbac9598e8efe0c4bc3bcf68202e
Related-Bug: PROD-19186
Related-Bug: PROD-19319
diff --git a/ceph-add-node.groovy b/ceph-add-node.groovy
index e96ef81..33a5a67 100644
--- a/ceph-add-node.groovy
+++ b/ceph-add-node.groovy
@@ -74,7 +74,15 @@
}
}
- salt.enforceState(pepperEnv, HOST, 'prometheus')
- salt.enforceState(pepperEnv, 'I@prometheus:server', 'prometheus')
+ stage("Update/Install monitoring") {
+ //Collect Grains
+ salt.enforceState(pepperEnv, HOST, 'salt.minion.grains')
+ salt.runSaltProcessStep(pepperEnv, HOST, 'saltutil.refresh_modules')
+ salt.runSaltProcessStep(pepperEnv, HOST, 'mine.update')
+ sleep(5)
+
+ salt.enforceState(pepperEnv, HOST, 'prometheus')
+ salt.enforceState(pepperEnv, 'I@prometheus:server', 'prometheus')
+ }
}
}