Set up Nova for TLS
* Start n-api proxy if 'tls-proxy' is enabled
* Configure nova service catalog for TLS
Change-Id: If031eb315f76c5c441a25fe3582b626bbee73c6e
diff --git a/functions b/functions
index 1b7d130..9565e10 100644
--- a/functions
+++ b/functions
@@ -996,6 +996,14 @@
return 0
}
+# Wait for an HTTP server to start answering requests
+# wait_for_service timeout url
+function wait_for_service() {
+ local timeout=$1
+ local url=$2
+ timeout $timeout sh -c "while ! http_proxy= https_proxy= curl -s $url >/dev/null; do sleep 1; done"
+}
+
# Wrapper for ``yum`` to set proxy environment variables
# Uses globals ``OFFLINE``, ``*_proxy`
# yum_install package [package ...]