From 1c31951b85e915d7341655ef3377255575ba3158 Mon Sep 17 00:00:00 2001 From: Dave McCowan Date: Sat, 5 Mar 2016 12:22:55 -0500 Subject: Use internalURL for internal communication When using separate networks for external APIs and internal APIs, services need to be configured to use the internal APIs. The default is typically publicURL. TrivialFix Change-Id: I24da63220a65e210c37d9f24b6d76a0031d66f3d --- ansible/roles/glance/templates/glance-api.conf.j2 | 2 ++ ansible/roles/heat/templates/heat.conf.j2 | 3 +++ ansible/roles/neutron/templates/neutron.conf.j2 | 1 + 3 files changed, 6 insertions(+) diff --git a/ansible/roles/glance/templates/glance-api.conf.j2 b/ansible/roles/glance/templates/glance-api.conf.j2 index 2f40a44e6..2955137cb 100644 --- a/ansible/roles/glance/templates/glance-api.conf.j2 +++ b/ansible/roles/glance/templates/glance-api.conf.j2 @@ -14,6 +14,8 @@ registry_host = {{ kolla_internal_fqdn }} show_image_direct_url= True {% endif %} +cinder_catalog_info = volume:cinder:internalURL + [database] connection = mysql+pymysql://{{ glance_database_user }}:{{ glance_database_password }}@{{ glance_database_address }}/{{ glance_database_name }} diff --git a/ansible/roles/heat/templates/heat.conf.j2 b/ansible/roles/heat/templates/heat.conf.j2 index b69738589..3f2445dc2 100644 --- a/ansible/roles/heat/templates/heat.conf.j2 +++ b/ansible/roles/heat/templates/heat.conf.j2 @@ -65,3 +65,6 @@ auth_uri = {{ internal_protocol }}://{{ kolla_internal_fqdn }}:{{ keystone_publi [oslo_messaging_notifications] driver = noop + +[clients] +endpoint_type = internalURL diff --git a/ansible/roles/neutron/templates/neutron.conf.j2 b/ansible/roles/neutron/templates/neutron.conf.j2 index c1e07678e..ef426a32f 100644 --- a/ansible/roles/neutron/templates/neutron.conf.j2 +++ b/ansible/roles/neutron/templates/neutron.conf.j2 @@ -12,6 +12,7 @@ bind_host = {{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4'][ bind_port = {{ neutron_server_port }} api_paste_config = /usr/share/neutron/api-paste.ini +endpoint_type = internalURL # NOTE(SamYaple): We must specify this value here rather than the metadata conf # because it is used by the l3 and dhcp agents. The reason the path has 'kolla' -- cgit v1.2.3