From d0a4d33caa56c239a8cf2fab06144aa4de07e004 Mon Sep 17 00:00:00 2001 From: Dmitry Bilunov Date: Tue, 29 Dec 2015 12:08:13 +0300 Subject: [PATCH] Fix network connectivity issues Master node needs an outbound internet connection to download repository metadata during admin node bootstrap process. We need to wait until it starts building docker containers, then enable the connection and wait until the bootstrap process completes. This change depends on another patch, which makes 'dockerctl build all' much more verbose (https://review.openstack.org/#/c/261062/36). Change-Id: Ibcc50bb47bd95dc1675aaf1abddbac375a434e2a Depends-On: I77a1d3a32633390c1fe37bbeb81da5d0996972df Closes-Bug: 1525967 --- functions/product.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/product.sh b/functions/product.sh index 05a0aa1..fe0ec99 100755 --- a/functions/product.sh +++ b/functions/product.sh @@ -65,7 +65,7 @@ wait_for_product_vm_to_download() { # Loop until master node gets successfully installed maxdelay=3000 - while ! wait_for_line_in_puppet_bootstrap $ip $username $password "$prompt" "dockerctl build all|^Fuel.*complete" "^Fuel.*FAILED"; do + while ! wait_for_line_in_puppet_bootstrap $ip $username $password "$prompt" "build docker containers finished.|^Fuel.*complete" "^Fuel.*FAILED"; do sleep 5 ((waited += 5)) if (( waited >= maxdelay )); then