disable ASK_ON_ERROR for rabbitmq and galera
Change-Id: If2e9091120f132c94e2ffc22086b0ca1dc48fdf5
diff --git a/lab-pipeline.groovy b/lab-pipeline.groovy
index 0008f81..9653b63 100644
--- a/lab-pipeline.groovy
+++ b/lab-pipeline.groovy
@@ -261,14 +261,19 @@
salt.runSaltProcessStep(saltMaster, 'I@glusterfs:server', 'cmd.run', ['gluster volume status'], null, true)
// Install rabbitmq
- salt.enforceState(saltMaster, 'I@rabbitmq:server', 'rabbitmq', true, false)
-
+ withEnv(['ASK_ON_ERROR=false']){
+ retry(2) {
+ salt.enforceState(saltMaster, 'I@rabbitmq:server', 'rabbitmq', true)
+ }
+ }
// Check the rabbitmq status
salt.runSaltProcessStep(saltMaster, 'I@rabbitmq:server', 'cmd.run', ['rabbitmqctl cluster_status'])
// Install galera
- retry(2) {
- salt.enforceState(saltMaster, 'I@galera:master', 'galera', true)
+ withEnv(['ASK_ON_ERROR=false']){
+ retry(2) {
+ salt.enforceState(saltMaster, 'I@galera:master', 'galera', true)
+ }
}
salt.enforceState(saltMaster, 'I@galera:slave', 'galera', true)