From 6f38cf4ad846f394489334caae7a38b8e49b646c Mon Sep 17 00:00:00 2001 From: Prabhat Ranjan Date: Fri, 16 Mar 2018 16:33:46 +0530 Subject: [PATCH] Fix wait_for_compute to work for modified compute host name When we change the name of compute host then devstack is breaking because it is using default host name from host. How to change compute host name in local.conf [[post-config|$NOVA_CONF]] [DEFAULT] host = foo Change-Id: I4d4392f1f58f0431b10764610668565af88d392f Signed-off-by: Prabhat Ranjan --- functions | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/functions b/functions index 24994c0470..f63595d433 100644 --- a/functions +++ b/functions @@ -441,7 +441,12 @@ EOF function wait_for_compute { local timeout=$1 local rval=0 + local compute_hostname time_start "wait_for_service" + compute_hostname=$(iniget $NOVA_CONF DEFAULT host) + if [[ -z $compute_hostname ]]; then + compute_hostname=$(hostname) + fi timeout $timeout bash -x <