From 92e85601f47163fe18c55f63d46cd362654440a2 Mon Sep 17 00:00:00 2001 From: John Garbutt Date: Fri, 2 Mar 2012 16:08:37 +0000 Subject: [PATCH] Allow people to specifiy the XENAPI_CONNECTION_URL This is useful when testing host aggregates and not wanting to use the host local management network Change-Id: I0d5d13632c74be8d8b8e7de918e7ff28478af9a6 --- stack.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stack.sh b/stack.sh index 35a7b3dd78..3e59b614bf 100755 --- a/stack.sh +++ b/stack.sh @@ -1266,7 +1266,8 @@ if [ "$VIRT_DRIVER" = 'xenserver' ]; then FLAT_NETWORK_BRIDGE=$(grep -o 'flat_network_bridge=[^.]*' /proc/cmdline | cut -d= -f 2) read_password XENAPI_PASSWORD "ENTER A PASSWORD TO USE FOR XEN." add_nova_flag "--connection_type=xenapi" - add_nova_flag "--xenapi_connection_url=http://169.254.0.1" + XENAPI_CONNECTION_URL=${XENAPI_CONNECTION_URL:-"http://169.254.0.1"} + add_nova_flag "--xenapi_connection_url=$XENAPI_CONNECTION_URL" add_nova_flag "--xenapi_connection_username=root" add_nova_flag "--xenapi_connection_password=$XENAPI_PASSWORD" add_nova_flag "--noflat_injected"