Fail when $VIRTHOST is localhost

There are known issues when using tripleo-quickstart
with localhost or 127.0.0.1 as the target host. See [1].

This patch adds a check to make sure that neither one of
those addresses are being used as $VIRTHOST and fails with
a message to use 127.0.0.2 instead.

[1] https://docs.openstack.org/tripleo-quickstart/2.1.0/readme.html#deploying-on-localhost

Change-Id: I5de0fc46c6b89592b42e230b73bc9a4048530b69
This commit is contained in:
Douglas Mendizábal 2019-07-22 10:38:07 -05:00
parent c0b5fdcdde
commit 7467149907

View File

@ -494,6 +494,11 @@ else
VIRTHOST=$1
fi
if [ $VIRTHOST == "127.0.0.1" ] || [ $VIRTHOST == "localhost" ]; then
echo "ERROR: Please use 127.0.0.2 to deploy to localhost" >&2
exit 2
fi
if [ "$#" -gt 2 ]; then
usage >&2
exit 2