Ensure that region and service are passed to keystone when reconfigured

post clustering with configured VIP.

This deals with changes in 'leadership' in the cluster when the initial
keystone configuration can from a different unit to that which now owns
the clustered services.
This commit is contained in:
James Page 2013-02-07 11:25:22 +00:00
parent 48cc15239d
commit fbe7dfa738
1 changed files with 2 additions and 1 deletions

View File

@ -329,7 +329,8 @@ function ha_relation_changed() {
local host=$(config-get vip)
local url="http://$host:$port/v1"
for r_id in `relation-ids identity-service`; do
relation-set -r $r_id \
relation-set -r $r_id service="glance" \
region="$(config-get region)" \
public_url="$url" admin_url="$url" internal_url="$url"
done
for r_id in `relation-ids image-service`; do