From b471aa42d282d502617ed9e215d238e32013e85b Mon Sep 17 00:00:00 2001 From: Steven Dake Date: Fri, 7 Aug 2015 09:19:17 -0700 Subject: Remove config-internal from glance Change-Id: I611a5cc41f9d227312755fb674f9a59219c2860c Partially-Implements: blueprint remove-config-internal --- docker/common/glance/glance-api/config-internal.sh | 58 -------------------- docker/common/glance/glance-api/start.sh | 2 +- docker/common/glance/glance-base/config-glance.sh | 62 ---------------------- .../glance/glance-registry/config-internal.sh | 28 ---------- docker/common/glance/glance-registry/start.sh | 2 +- 5 files changed, 2 insertions(+), 150 deletions(-) delete mode 100755 docker/common/glance/glance-api/config-internal.sh delete mode 100644 docker/common/glance/glance-base/config-glance.sh delete mode 100755 docker/common/glance/glance-registry/config-internal.sh (limited to 'docker/common') diff --git a/docker/common/glance/glance-api/config-internal.sh b/docker/common/glance/glance-api/config-internal.sh deleted file mode 100755 index 45af8d7ec..000000000 --- a/docker/common/glance/glance-api/config-internal.sh +++ /dev/null @@ -1,58 +0,0 @@ -#!/bin/bash - -set -e - -. /opt/kolla/kolla-common.sh -. /opt/kolla/config-glance.sh - -check_required_vars ADMIN_TENANT_NAME \ - GLANCE_API_SERVICE_HOST \ - GLANCE_KEYSTONE_PASSWORD \ - GLANCE_KEYSTONE_USER \ - GLANCE_REGISTRY_SERVICE_HOST \ - KEYSTONE_ADMIN_SERVICE_HOST \ - KEYSTONE_ADMIN_SERVICE_PORT \ - KEYSTONE_ADMIN_TOKEN \ - KEYSTONE_AUTH_PROTOCOL \ - PUBLIC_IP \ - RABBITMQ_SERVICE_HOST - -fail_unless_os_service_running keystone - -export SERVICE_TOKEN="${KEYSTONE_ADMIN_TOKEN}" -export SERVICE_ENDPOINT="${KEYSTONE_AUTH_PROTOCOL}://${KEYSTONE_ADMIN_SERVICE_HOST}:${KEYSTONE_ADMIN_SERVICE_PORT}/v2.0" - -crux user-create --update \ - -n "${GLANCE_KEYSTONE_USER}" \ - -p "${GLANCE_KEYSTONE_PASSWORD}" \ - -t "${ADMIN_TENANT_NAME}" \ - -r admin - -crux endpoint-create --remove-all \ - -n glance -t image \ - -I "http://${GLANCE_API_SERVICE_HOST}:9292" \ - -P "http://${PUBLIC_IP}:9292" \ - -A "http://${GLANCE_API_SERVICE_HOST}:9292" - -# turn on notification sending by glance -crudini --set /etc/glance/glance-api.conf \ - DEFAULT \ - notification_driver \ - "messaging" - -crudini --set /etc/glance/glance-api.conf \ - DEFAULT \ - rabbit_host \ - "${RABBITMQ_SERVICE_HOST}" - -crudini --set /etc/glance/glance-api.conf \ - DEFAULT \ - registry_host \ - "${GLANCE_REGISTRY_SERVICE_HOST}" - -crudini --set /etc/glance/glance-api.conf \ - DEFAULT \ - debug \ - "True" - -exec /usr/bin/glance-api diff --git a/docker/common/glance/glance-api/start.sh b/docker/common/glance/glance-api/start.sh index 26db7fc1c..ce3cb6d8b 100755 --- a/docker/common/glance/glance-api/start.sh +++ b/docker/common/glance/glance-api/start.sh @@ -7,7 +7,7 @@ ARGS="" # Loading common functions. source /opt/kolla/kolla-common.sh -# Config-internal script exec out of this function, it does not return here. +# Execute config strategy set_configs # Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases diff --git a/docker/common/glance/glance-base/config-glance.sh b/docker/common/glance/glance-base/config-glance.sh deleted file mode 100644 index 2823af314..000000000 --- a/docker/common/glance/glance-base/config-glance.sh +++ /dev/null @@ -1,62 +0,0 @@ -#!/bin/bash - -set -e - -. /opt/kolla/kolla-common.sh - -check_required_vars ADMIN_TENANT_NAME \ - GLANCE_DB_NAME \ - GLANCE_DB_PASSWORD \ - GLANCE_DB_USER \ - GLANCE_KEYSTONE_PASSWORD \ - GLANCE_KEYSTONE_USER \ - KEYSTONE_PUBLIC_SERVICE_HOST \ - MARIADB_SERVICE_HOST -dump_vars - -cat > /openrc <