From 033308c475b17170345b82e8663bdda995afef80 Mon Sep 17 00:00:00 2001 From: Mark Goddard Date: Thu, 4 May 2017 16:46:14 +0100 Subject: [PATCH] Advertise public heat endpoint for wait conditions Wait conditions are commonly used by instances to signal various events back to heat. These instances are unlikely to have access to the internal API endpoints. OpenStack-Ansible had a similar issue[1] back in juno and changed to use the public endpoint[2]. The code has now moved but the default is still in place[3]. This change configures heat to advertise the public API as the endpoint for wait conditions. [1] https://bugs.launchpad.net/openstack-ansible/+bug/1459414 [2] https://review.openstack.org/#/c/186221/ [3] https://github.com/openstack/openstack-ansible-os_heat/blob/b1721a7460ba816afabd9bded6e5c79c635bca3a/defaults/main.yml#L48 Change-Id: Id1d66aaa298efa8407db579a899a5aacebe1e6c7 Closes-Bug: #1688331 --- ansible/roles/heat/templates/heat.conf.j2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ansible/roles/heat/templates/heat.conf.j2 b/ansible/roles/heat/templates/heat.conf.j2 index a5b84c05d9..277e9d5122 100644 --- a/ansible/roles/heat/templates/heat.conf.j2 +++ b/ansible/roles/heat/templates/heat.conf.j2 @@ -99,6 +99,9 @@ driver = noop [clients] endpoint_type = internalURL +[clients_heat] +endpoint_type = publicURL + {% if public_protocol != internal_protocol and kolla_external_fqdn != kolla_internal_fqdn %} [oslo_middleware] enable_proxy_headers_parsing = True