Increase number of checks for neutron API
It might take some time to start neutron and to mark
neutron backend as up in haproxy. This patch increases
number of retries for neutron API once it is installed
to 10 retries with 5 sec delay.
Change-Id: I25c7d9d4aab7fdb0136336703690544444e11980
Related-Prod: PROD-25055
diff --git a/src/com/mirantis/mk/Orchestrate.groovy b/src/com/mirantis/mk/Orchestrate.groovy
index 7f49db9..806be8a 100644
--- a/src/com/mirantis/mk/Orchestrate.groovy
+++ b/src/com/mirantis/mk/Orchestrate.groovy
@@ -351,7 +351,7 @@
salt.enforceStateWithTest(master, "I@neutron:server:role:primary ${extra_tgt}", 'neutron.server', "I@neutron:server ${extra_tgt}")
salt.enforceStateWithTest(master, "I@neutron:server ${extra_tgt}", 'neutron.server')
if (salt.testTarget(master, "I@keystone:server and I@neutron:server ${extra_tgt}")) {
- common.retry(3,5){
+ common.retry(10,5){
salt.cmdRun(master, "I@keystone:server ${extra_tgt}",'. /root/keystonercv3; neutron agent-list')
}
}