Skip to content

Commit 520a9ca

Browse files
committed
Allow wget to handle Non-English output
The stack.sh has a loop to wait for keystone to start. But the output of wget tool has been globalized which means it won't return the English word 'refused' on Non-English environment even the keystone is not up. So the script will assume the keystone has been started and continue. The command of keystone tenant-create always failed immediately after skipping this loop since it require keystone to be started to authenticate. That's why you can see authentication error in the log because the tenant information was not correctly set up. Fix bug 978739 Change-Id: Ia4ebe6ad0f9b5a886de48a4bea7c2aebff420dad
1 parent 8d6638e commit 520a9ca

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Eddie Hebert <edhebert@gmail.com>
1111
Eoghan Glynn <eglynn@redhat.com>
1212
Gabriel Hurley <gabriel@strikeawe.com>
1313
Hengqing Hu <hudayou@hotmail.com>
14+
Hua ZHANG <zhuadl@cn.ibm.com>
1415
Jake Dahn <admin@jakedahn.com>
1516
James E. Blair <james.blair@rackspace.com>
1617
Jason Cannavale <jason.cannavale@rackspace.com>

stack.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1723,7 +1723,7 @@ if is_service_enabled key; then
17231723
# launch keystone and wait for it to answer before continuing
17241724
screen_it key "cd $KEYSTONE_DIR && $KEYSTONE_DIR/bin/keystone-all --config-file $KEYSTONE_CONF $KEYSTONE_LOG_CONFIG -d --debug"
17251725
echo "Waiting for keystone to start..."
1726-
if ! timeout $SERVICE_TIMEOUT sh -c "while http_proxy= wget -O- $KEYSTONE_AUTH_PROTOCOL://$SERVICE_HOST:$KEYSTONE_API_PORT/v2.0/ 2>&1 | grep -q 'refused'; do sleep 1; done"; then
1726+
if ! timeout $SERVICE_TIMEOUT sh -c "while ! http_proxy= wget -O- $KEYSTONE_AUTH_PROTOCOL://$SERVICE_HOST:$KEYSTONE_API_PORT/v2.0/ 2>&1 | grep -q '200 OK'; do sleep 1; done"; then
17271727
echo "keystone did not start"
17281728
exit 1
17291729
fi

0 commit comments

Comments
 (0)