From 567b078d6e6b3fb6e82368416316a818003ec212 Mon Sep 17 00:00:00 2001 From: Zhenguo Niu Date: Sat, 21 May 2016 15:34:06 +0800 Subject: [PATCH] Change HTTP_SERVER's default value to TFTPSERVER_IP Currently both HTTP_SERVER and TFTPSERVER_IP are default to HOST_IP, then when ipxe enabled and you want to change server address, you may need to change twice. This patch restructures IP address dependency among HOST_IP, TFTPSERVER_IP and HTTP_SERVER, so that it can be facilitated changing IP address for the typical setup in which ironic conductor and api are binding to HOST_IP, and TFTP and HTTP servers are binding to a different IP. Change-Id: Ie884e41d2a5a6121a0bab9f1e2537e3fc9963b07 --- devstack/lib/ironic | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devstack/lib/ironic b/devstack/lib/ironic index d17d384013..1360a62f4a 100644 --- a/devstack/lib/ironic +++ b/devstack/lib/ironic @@ -179,7 +179,7 @@ IRONIC_HOSTPORT=${IRONIC_HOSTPORT:-$SERVICE_HOST:$IRONIC_SERVICE_PORT} # Enable iPXE IRONIC_IPXE_ENABLED=$(trueorfalse True IRONIC_IPXE_ENABLED) IRONIC_HTTP_DIR=${IRONIC_HTTP_DIR:-$IRONIC_DATA_DIR/httpboot} -IRONIC_HTTP_SERVER=${IRONIC_HTTP_SERVER:-$HOST_IP} +IRONIC_HTTP_SERVER=${IRONIC_HTTP_SERVER:-$IRONIC_TFTPSERVER_IP} IRONIC_HTTP_PORT=${IRONIC_HTTP_PORT:-8088} # Whether DevStack will be setup for bare metal or VMs