From e26e278ee097968b4a5193146368b46b412083ca Mon Sep 17 00:00:00 2001 From: Ryan Hallisey Date: Sun, 5 Jun 2016 09:04:55 -0400 Subject: [PATCH] Add kolla-kubernetes bootstap logic endpoint script Kolla-kubernetes will setup the endpoints after the bootstrap is complete. Closes-bug: #1589282 Change-Id: Ife8d81930af8ef5ad8af166b2f87dae436dc7492 Partially-implements: blueprint kolla-kubernetes-extended-dockerfiles --- docker/keystone/keystone_bootstrap.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/docker/keystone/keystone_bootstrap.sh b/docker/keystone/keystone_bootstrap.sh index 0d870fd0e3..1c822d0d67 100644 --- a/docker/keystone/keystone_bootstrap.sh +++ b/docker/keystone/keystone_bootstrap.sh @@ -1,5 +1,7 @@ #!/bin/bash +set -x + # NOTE(SamYaple): Kolla needs to wraps `keystone-manage bootstrap` to ensure # any change is reported correctly for idempotency. This script will exit with # valid json that can be parsed with information about if the task has failed @@ -23,6 +25,24 @@ function exit_json { echo '{"failed": false, "changed": '"${changed}"'}' } +function kolla_kubernetes { + KUBE_TOKEN=$(&1) if [[ $? != 0 ]]; then