Magnum -> Octavia, Neutron driver - Not using region or availability zone to search, rather picking a random neutron endpoint causing lookup failures on subnets
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
octavia |
Fix Released
|
High
|
Gregory Thiemonge |
Bug Description
t is lookup up on the wrong endpoint... I check endpoints, no errors there - seems there is no filter to tell it what to look at.... 2023.2 is my version. I never saw this issue prior to 2023.x & amphorav2
Trigger = Call Magnum COE create, it creates a LB, looks up the subnet and chooses the wrong endpoint when the LB is being made in the neutron driver for octavia....
2024-01-29 17:15:55.984 733 ERROR wsme.api [None req-026ef7fd-
Traceback (most recent call last):
File "/var/lib/
resource = getattr(
File "/var/lib/
return self._get(
File "/var/lib/
return method(self, expected, actual, *args, **kwargs)
File "/var/lib/
return res.fetch(
File "/var/lib/
self.
File "/var/lib/
exceptions.
File "/var/lib/
raise cls(
openstack.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/var/lib/
result = f(self, *args, **kwargs)
File "/var/lib/
self.
File "/var/lib/
self.
File "/var/lib/
used_
File "/var/lib/
return self._get_
File "/var/lib/
raise getattr(base, '%sNotFound' % ''.join(
def _get_resources_
If unique_item set to True, only the first resource is returned.
"""
try:
try:
# get first item to see if there is at least one resource
except StopIteration:
# pylint: disable=
if unique_item:
return res_list + [conversion_
except os_exceptions.
message = _('{resource_type} not found '
raise getattr(base, '%sNotFound' % ''.join(
except Exception as e:
message = _('Error retrieving {resource_type} '
raise base.NetworkExc
[docs]
def get_network(self, network_id, context=None):
return self._get_
[docs]
def get_subnet(self, subnet_id, context=None):
return self._get_
Somewhere, it is not using context to create the correct filter.... I am dead in the water on octavia usage without this, its also impacting magnum as i using octavia for this ;0 Thoughts ?
cross posting here: https:/
Seems to not be honoring region etc. at a high level...