From 420da9c6e791368364ae750b801d08973a34460e Mon Sep 17 00:00:00 2001 From: Rodrigo Barbieri Date: Thu, 5 Nov 2020 18:26:51 -0300 Subject: [PATCH] Add region config to [neutron] in nova.conf On multi-region deployments, Nova may talk to the wrong neutron endpoint (from the wrong region) if the region is unspecified. The issue that requires this fix is most apparent when doing live migrations, as the Conductor tries to call Neutron to perform port bindings. Closes-bug: #1903210 Change-Id: Id118f6a5794de298c31debf6e31ffe92271982d1 (cherry picked from commit 25da3180b53abc9843cba37b12e08258de8644bf) --- templates/parts/section-neutron | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/parts/section-neutron b/templates/parts/section-neutron index a23d8a5d..521fc707 100644 --- a/templates/parts/section-neutron +++ b/templates/parts/section-neutron @@ -1,5 +1,8 @@ [neutron] url = {{ neutron_url }} +{% if region -%} +region_name = {{ region }} +{% endif -%} {% if auth_host -%} auth_url = {{ auth_protocol }}://{{ auth_host }}:{{ auth_port }} auth_type = password