Skip to content
Snippets Groups Projects
Commit d83cb3c4 authored by SamYaple's avatar SamYaple
Browse files

Retry token retrival in keystone bootstrap script

TrivialFix

Change-Id: I83da0298067d5f37603c52fb312828ea1fbbb00c
parent e72c8f11
No related branches found
No related tags found
No related merge requests found
...@@ -73,10 +73,16 @@ if [[ ! $(openstack --os-identity-api-version 3 --os-token "${OS_TOKEN}" --os-ur ...@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment