labs: fix neutron locale
The neutron client fails with an "unsupported locale setting" message if a locale is sent via ssh from the host computer to the node VM. This changeset works around the problem by setting LC_ALL=C if the problem is detected. Change-Id: I9caa38c8fbe7d0d0e4025e4ba0c7fb537e1686de Implements: blueprint openstack-training-labs
This commit is contained in:
parent
da220b6ec2
commit
c8f5ebb0e4
@ -12,6 +12,12 @@ indicate_current_auto
|
||||
# Create the external network and a subnet on it.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
# Work around neutron client failing with unsupported locale settings
|
||||
if [[ "$(neutron --help)" == "unsupported locale setting" ]]; then
|
||||
echo "Locale not supported on node, setting LC_ALL=C."
|
||||
export LC_ALL=C
|
||||
fi
|
||||
|
||||
echo "Waiting for neutron to start."
|
||||
until neutron net-list >/dev/null 2>&1; do
|
||||
sleep 1
|
||||
|
@ -12,6 +12,12 @@ indicate_current_auto
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
# Work around neutron client failing with unsupported locale settings
|
||||
if [[ "$(neutron --help)" == "unsupported locale setting" ]]; then
|
||||
echo "Locale not supported on node, setting LC_ALL=C."
|
||||
export LC_ALL=C
|
||||
fi
|
||||
|
||||
echo "Waiting for neutron to start."
|
||||
until neutron net-list >/dev/null 2>&1; do
|
||||
sleep 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user