Makes error message easier to understand.

If the host ip address is indeterminate while executing
stack.sh, an error message is displayed.  This error message
could be a source of confusion since it references localrc,
which is depreciated.

This patch makes the error message clearer and easier to
understand.  It does this by taking out the reference to
localrc.  It also points the user towards local.conf where there
are suggestions on how to set HOST_IP.

Change-Id: I41f14a2de85449d2a08ab7eb2849844a1087b147
Closes-Bug: #1290556
This commit is contained in:
Newell Jensen 2014-03-10 14:28:52 -07:00
parent a508d1a001
commit ccb3d10e04

@ -289,7 +289,7 @@ FIXED_NETWORK_SIZE=${FIXED_NETWORK_SIZE:-256}
HOST_IP=$(get_default_host_ip $FIXED_RANGE $FLOATING_RANGE "$HOST_IP_IFACE" "$HOST_IP")
if [ "$HOST_IP" == "" ]; then
die $LINENO "Could not determine host ip address. Either localrc specified dhcp on ${HOST_IP_IFACE} or defaulted"
die $LINENO "Could not determine host ip address. See local.conf for suggestions on setting HOST_IP."
fi
# Allow the use of an alternate hostname (such as localhost/127.0.0.1) for service endpoints.