Closes-Bug: 1379513

Previously the glance-base script did not configure the registry
host IP. This causes API to try connecting to registry on
localhost. Since registry is bound to MY_IP, api is unable to
connect to registry. This change adds support for the glance-base
script to configure the registry_host parameter in api.conf to
MY_IP.

Change-Id: I1c711ff8aa95abec5ca306f03bd7e0a3883ca578
This commit is contained in:
Daneyon Hansen 2014-10-09 20:46:21 +00:00
parent cb05bb513b
commit 7c0fd1c58d

@ -75,3 +75,9 @@ for cfg in /etc/glance/glance-api.conf /etc/glance/glance-registry.conf; do
"mysql://${GLANCE_DB_USER}:${GLANCE_DB_PASSWORD}@${MARIADB_PORT_3306_TCP_ADDR}/${GLANCE_DB_NAME}"
done
for cfg in /etc/glance/glance-api.conf; do
crudini --set $cfg \
DEFAULT \
registry_host \
$MY_IP
done