Make Heat bootstrapping idempotent
Change-Id: I155707ec6c1973d2a36606a0c73e57bda58ed037
Closes-Bug: #1569696
(cherry picked from commit 11e5b7dfa9
)
This commit is contained in:
parent
1fc872deca
commit
6a4c91be97
@ -6,7 +6,7 @@ if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
|
||||
heat-manage db_sync
|
||||
CURRENT_HEAT_DOMAIN_NAME=$(openstack domain list | grep heat | awk '{print $4}')
|
||||
|
||||
if [[ "heat" != "$CURRENT_HEAT_DOMAIN_NAME" ]]; then
|
||||
if [[ "heat_user_domain" != "$CURRENT_HEAT_DOMAIN_NAME" ]]; then
|
||||
openstack domain create heat_user_domain
|
||||
openstack user create --domain heat_user_domain heat_domain_admin --password ${HEAT_DOMAIN_ADMIN_PASSWORD}
|
||||
openstack role add --domain heat_user_domain --user heat_domain_admin admin
|
||||
|
Loading…
Reference in New Issue
Block a user