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
This commit is contained in:
Rodrigo Barbieri 2020-11-05 18:26:51 -03:00
parent 9e4cc43fdb
commit 25da3180b5
1 changed files with 3 additions and 0 deletions

View File

@ -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