aboutsummaryrefslogtreecommitdiff
path: root/docker/glance
diff options
context:
space:
mode:
authorDaneyon Hansen <danehans@cisco.com>2014-10-09 20:46:21 +0000
committerDaneyon Hansen <danehans@cisco.com>2014-10-09 20:46:21 +0000
commit7c0fd1c58d2ef8d0156ef1e926066b857ec69316 (patch)
tree946c4b640b238399c3c501f481559c51bfd32750 /docker/glance
parentcb05bb513bc5dbb2aa0a10a569ee5032515ea382 (diff)
downloadkolla-7c0fd1c58d2ef8d0156ef1e926066b857ec69316.tar.gz
kolla-7c0fd1c58d2ef8d0156ef1e926066b857ec69316.zip
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
Diffstat (limited to 'docker/glance')
-rw-r--r--docker/glance/glance-base/config-glance.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/docker/glance/glance-base/config-glance.sh b/docker/glance/glance-base/config-glance.sh
index 2f78464bd..f32602cfb 100644
--- a/docker/glance/glance-base/config-glance.sh
+++ b/docker/glance/glance-base/config-glance.sh
@@ -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