summaryrefslogtreecommitdiff
path: root/docker/glance
diff options
context:
space:
mode:
authorDaneyon Hansen <danehans@cisco.com>2014-10-09 17:36:17 +0000
committerDaneyon Hansen <danehans@cisco.com>2014-10-10 21:30:35 +0000
commit250bb5f453c41eab1d1b83d5681577893eaff7c8 (patch)
treec625ab26938c9c97a1f365939189b659d7b6ca78 /docker/glance
parent03f616f87cb47ca802a7d123b3041779efeed37c (diff)
downloadkolla-250bb5f453c41eab1d1b83d5681577893eaff7c8.tar.gz
kolla-250bb5f453c41eab1d1b83d5681577893eaff7c8.zip
Closes-Bug: 1379442
Previously, the glance-api start script would use the container IP instead of the proxy IP for the public url when creating the keystone endpoint. This causes keystone to provide an unreachable IP within the public url and other OS services are unable to connect to the public url. Change-Id: I44befc84a90f59d535a951ee81aaff0fa1ba952d
Diffstat (limited to 'docker/glance')
-rw-r--r--docker/glance/glance-base/config-glance.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/docker/glance/glance-base/config-glance.sh b/docker/glance/glance-base/config-glance.sh
index 2f78464bd..6c6a0ef23 100644
--- a/docker/glance/glance-base/config-glance.sh
+++ b/docker/glance/glance-base/config-glance.sh
@@ -12,7 +12,7 @@ MY_IP=$(ip route get $(ip route | awk '$1 == "default" {print $3}') |
: ${GLANCE_DB_USER:=glance}
: ${GLANCE_KEYSTONE_USER:=glance}
: ${KEYSTONE_AUTH_PROTOCOL:=http}
-: ${PUBLIC_IP:=$MY_IP}
+: ${PUBLIC_IP:=$GLANCE_API_PORT_9292_TCP_ADDR}
if ! [ "$GLANCE_DB_PASSWORD" ]; then
GLANCE_DB_PASSWORD=$(openssl rand -hex 15)