Add more checks to the glance containers
The glance containers need to check for more required variables than they were originally. Closes-bug: #1432336 Co-Authored-By: Paul Bourke <paul.bourke@oracle.com> Change-Id: I8fc730580f09ed3d4c54b8e94d011f0f924cae3e
This commit is contained in:
parent
f945d648bd
commit
29a9515365
@ -4,12 +4,13 @@ set -e
|
||||
|
||||
. /opt/kolla/kolla-common.sh
|
||||
. /opt/kolla/config-glance.sh
|
||||
: ${GLANCE_API_SERVICE_HOST:=$PUBLIC_IP}
|
||||
|
||||
check_required_vars KEYSTONE_ADMIN_TOKEN KEYSTONE_ADMIN_SERVICE_HOST \
|
||||
GLANCE_KEYSTONE_USER GLANCE_KEYSTONE_PASSWORD \
|
||||
ADMIN_TENANT_NAME GLANCE_API_SERVICE_HOST \
|
||||
PUBLIC_IP
|
||||
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
|
||||
|
||||
|
@ -11,7 +11,11 @@ set -e
|
||||
: ${KEYSTONE_AUTH_PROTOCOL:=http}
|
||||
: ${PUBLIC_IP:=$GLANCE_API_PORT_9292_TCP_ADDR}
|
||||
|
||||
check_required_vars GLANCE_DB_PASSWORD GLANCE_KEYSTONE_PASSWORD
|
||||
|
||||
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 <<EOF
|
||||
|
@ -5,8 +5,10 @@ set -e
|
||||
. /opt/kolla/kolla-common.sh
|
||||
. /opt/kolla/config-glance.sh
|
||||
|
||||
check_required_vars GLANCE_DB_NAME GLANCE_DB_USER GLANCE_DB_PASSWORD \
|
||||
INIT_GLANCE_DB
|
||||
|
||||
check_required_vars DB_ROOT_PASSWORD GLANCE_DB_NAME \
|
||||
GLANCE_DB_PASSWORD GLANCE_DB_USER \
|
||||
MARIADB_SERVICE_HOST
|
||||
# lets wait for the DB to be available
|
||||
wait_for 25 1 check_for_db
|
||||
|
||||
|
@ -208,25 +208,37 @@ In order for each service to function, there is a minimum set of required variab
|
||||
|
||||
# Glance-api
|
||||
|
||||
KEYSTONE_ADMIN_TOKEN
|
||||
KEYSTONE_ADMIN_SERVICE_HOST
|
||||
GLANCE_KEYSTONE_USER
|
||||
GLANCE_KEYSTONE_PASSWORD
|
||||
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
|
||||
|
||||
# Glance-base
|
||||
|
||||
ADMIN_TENANT_NAME
|
||||
GLANCE_DB_PASSWORD
|
||||
GLANCE_DB_NAME
|
||||
GLANCE_DB_PASSWORD
|
||||
GLANCE_DB_USER
|
||||
GLANCE_KEYSTONE_PASSWORD
|
||||
GLANCE_KEYSTONE_USER
|
||||
KEYSTONE_PUBLIC_SERVICE_HOST
|
||||
MARIADB_SERVICE_HOST
|
||||
|
||||
# Glance-registry
|
||||
|
||||
DB_ROOT_PASSWORD
|
||||
GLANCE_DB_NAME
|
||||
GLANCE_DB_USER
|
||||
GLANCE_DB_PASSWORD
|
||||
INIT_GLANCE_DB
|
||||
GLANCE_DB_USER
|
||||
MARIADB_SERVICE_HOST
|
||||
|
||||
# Hautoproxy
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user