Add retry to openstack network list
Sometimes the network services takes too long to start,
use retry to check openstack network list.
- 10x 15s delays should be probably enough to wait
for opencontrail deployments.
Change-Id: I30dc2f4814930afefec01066457e194df5fb233a
diff --git a/cloud-deploy-pipeline.groovy b/cloud-deploy-pipeline.groovy
index 66e4bc7..e4847ee 100644
--- a/cloud-deploy-pipeline.groovy
+++ b/cloud-deploy-pipeline.groovy
@@ -409,7 +409,10 @@
orchestrate.installOpenstackNetwork(venvPepper)
}
- salt.cmdRun(venvPepper, 'I@keystone:server', '. /root/keystonercv3; openstack network list')
+ // Wait for network to come up, 150s should be enough
+ common.retry(10, 15) {
+ salt.cmdRun(venvPepper, 'I@keystone:server', '. /root/keystonercv3; openstack network list')
+ }
}
if (salt.testTarget(venvPepper, 'I@ironic:conductor')){