diff options
| author | Jenkins <jenkins@review.openstack.org> | 2016-03-04 22:51:00 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2016-03-04 22:51:00 +0000 |
| commit | b91f84b9688b693071a180e165bce44616bd7085 (patch) | |
| tree | 1c533d12ee7ab2fecfa759f63991071fb2b00bee /docker | |
| parent | e45781cf250d70cd756bdcfc4095b8eac97d279a (diff) | |
| parent | d83cb3c47317766e2cdc05942e2b1c8c288c53a1 (diff) | |
| download | kolla-b91f84b9688b693071a180e165bce44616bd7085.tar.gz kolla-b91f84b9688b693071a180e165bce44616bd7085.zip | |
Merge "Retry token retrival in keystone bootstrap script"
Diffstat (limited to 'docker')
| -rw-r--r-- | docker/keystone/keystone_bootstrap.sh | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/docker/keystone/keystone_bootstrap.sh b/docker/keystone/keystone_bootstrap.sh index 15c1838db..0c0aa498d 100644 --- a/docker/keystone/keystone_bootstrap.sh +++ b/docker/keystone/keystone_bootstrap.sh @@ -73,10 +73,16 @@ if [[ ! $(openstack --os-identity-api-version 3 --os-token "${OS_TOKEN}" --os-ur ) fi -get_token +count=0 +while [[ ! "${OS_TOKEN}" && "${count}" -lt 5 ]]; do + get_token + ((count++)) + sleep 1 +done if [[ ! "${OS_TOKEN}" ]]; then - fail_json "Unable to issue token" + fail_json "Unable to retrieve token after 5 attempts" fi + create_service create_endpoints exit_json |
