From 4fd63199f17463c534c77658d38d8ba6ef721355 Mon Sep 17 00:00:00 2001 From: Lars Kellogg-Stedman Date: Wed, 8 Oct 2014 21:53:13 -0400 Subject: [PATCH] update existing keystone objects when booting the keystone container with an existing database, make sure to update credentials for admin user and replace existing keystone endpoint in the service catalog. Change-Id: I2c66d75210ef7ba5a96077eea15a8c564e99f662 --- docker/keystone/start.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docker/keystone/start.sh b/docker/keystone/start.sh index b006676911..412f1c9ce6 100755 --- a/docker/keystone/start.sh +++ b/docker/keystone/start.sh @@ -65,8 +65,11 @@ while ! curl -o /dev/null -s --fail ${SERVICE_ENDPOINT}; do sleep 1; done -crux user-create -n admin -p "${KEYSTONE_ADMIN_PASSWORD}" -t admin -r admin -crux endpoint-create -n keystone -t identity \ +crux user-create --update \ + -n admin -p "${KEYSTONE_ADMIN_PASSWORD}" \ + -t admin -r admin +crux endpoint-create --remove-all \ + -n keystone -t identity \ -I "${SERVICE_ENDPOINT_USER}" \ -A "${SERVICE_ENDPOINT_ADMIN}"