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
This commit is contained in:
Takashi Kajinami 2021-12-01 23:43:32 +09:00
parent 81134bdfec
commit 6d8fc69f94
2 changed files with 7 additions and 0 deletions

View File

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

View File

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