Browse code

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

Newell Jensen authored on 2014/03/11 06:28:52
Showing 1 changed files
... ...
@@ -289,7 +289,7 @@ FIXED_NETWORK_SIZE=${FIXED_NETWORK_SIZE:-256}
289 289
 
290 290
 HOST_IP=$(get_default_host_ip $FIXED_RANGE $FLOATING_RANGE "$HOST_IP_IFACE" "$HOST_IP")
291 291
 if [ "$HOST_IP" == "" ]; then
292
-    die $LINENO "Could not determine host ip address. Either localrc specified dhcp on ${HOST_IP_IFACE} or defaulted"
292
+    die $LINENO "Could not determine host ip address.  See local.conf for suggestions on setting HOST_IP."
293 293
 fi
294 294
 
295 295
 # Allow the use of an alternate hostname (such as localhost/127.0.0.1) for service endpoints.