From 54203843dd944211ef0b99e8c69d09638701a086 Mon Sep 17 00:00:00 2001
From: Mark Goddard <mark@stackhpc.com>
Date: Thu, 21 Feb 2019 11:31:21 +0000
Subject: [PATCH] Configure region_name_for_services in heat.conf

backport: rocky

Not including this means that SoftwareDeployments do not have a
configured region (it's set to 'null'), and can therefore not
communicate back to the heat API. In particular, this breaks Magnum with
the following error in the journal on the deployed servers:

publicURL endpoint for orchestration service in null region not found

Change-Id: Ia2c18ef10727391812368c958262a92385374ace
Co-Authored-By: John Garbutt <john@stackhpc.com>
Closes-Bug: #1817051
---
 ansible/roles/heat/templates/heat.conf.j2 | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ansible/roles/heat/templates/heat.conf.j2 b/ansible/roles/heat/templates/heat.conf.j2
index ccd41e6df..468aed9db 100644
--- a/ansible/roles/heat/templates/heat.conf.j2
+++ b/ansible/roles/heat/templates/heat.conf.j2
@@ -21,6 +21,8 @@ num_engine_workers = {{ openstack_service_workers }}
 
 transport_url = {{ rpc_transport_url }}
 
+region_name_for_services = {{ openstack_region_name }}
+
 {% if service_name == 'heat-api' %}
 [heat_api]
 bind_host = {{ api_interface_address }}
-- 
GitLab