From 6d8fc69f94003d64e6b017218965e6867426a738 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Wed, 1 Dec 2021 23:43:32 +0900 Subject: [PATCH] Fix ignored [nova] service_name The [nova] service_name parameter is supposed to be used to find the nova endpoint from keystone catalog but in fact the parameter is not used and has had no effect. This change fixes the ignored parameter. Change-Id: I00c3083d7dbcf4473af3386d114c4af9e07751a0 --- octavia/compute/drivers/nova_driver.py | 1 + .../notes/fix-nova-service_name-6bde4970047817f4.yaml | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 releasenotes/notes/fix-nova-service_name-6bde4970047817f4.yaml diff --git a/octavia/compute/drivers/nova_driver.py b/octavia/compute/drivers/nova_driver.py index 974aa77835..128f21fbba 100644 --- a/octavia/compute/drivers/nova_driver.py +++ b/octavia/compute/drivers/nova_driver.py @@ -39,6 +39,7 @@ class VirtualMachineManager(compute_base.ComputeBase): super().__init__() # Must initialize nova api self._nova_client = clients.NovaAuth.get_nova_client( + service_name=CONF.nova.service_name, endpoint=CONF.nova.endpoint, region=CONF.nova.region_name, endpoint_type=CONF.nova.endpoint_type, diff --git a/releasenotes/notes/fix-nova-service_name-6bde4970047817f4.yaml b/releasenotes/notes/fix-nova-service_name-6bde4970047817f4.yaml new file mode 100644 index 0000000000..d25461c3a8 --- /dev/null +++ b/releasenotes/notes/fix-nova-service_name-6bde4970047817f4.yaml @@ -0,0 +1,6 @@ +--- +fixes: + - | + Now the ``[nova] service_name`` parameter is effectively used to find + the nova endpoint in keystone catalog. The parameter had no effect before + it was fixed.