Merge "Retry token retrival in keystone bootstrap script"

This commit is contained in:
Jenkins 2016-03-04 22:51:00 +00:00 committed by Gerrit Code Review
commit b91f84b968

View File

@ -73,10 +73,16 @@ if [[ ! $(openstack --os-identity-api-version 3 --os-token "${OS_TOKEN}" --os-ur
) )
fi fi
get_token count=0
while [[ ! "${OS_TOKEN}" && "${count}" -lt 5 ]]; do
get_token
((count++))
sleep 1
done
if [[ ! "${OS_TOKEN}" ]]; then if [[ ! "${OS_TOKEN}" ]]; then
fail_json "Unable to issue token" fail_json "Unable to retrieve token after 5 attempts"
fi fi
create_service create_service
create_endpoints create_endpoints
exit_json exit_json