Reviewed: https://review.opendev.org/c/openstack/ovn-octavia-provider/+/925893 Committed: https://opendev.org/openstack/ovn-octavia-provider/commit/7a17cd1ae311a88a9db2ee75413b115100dbf012 Submitter: "Zuul (22348)" Branch: master
commit 7a17cd1ae311a88a9db2ee75413b115100dbf012 Author: Dmitriy Rabotyagov <[email protected]> Date: Wed Aug 7 17:33:41 2024 +0200 Respect passed arguments for Neutron client connection At the moment quite vital arguments, such as region_name and valid_interfaces, are ignored by the plugin, which results in inconsistent behaviour with Octavia when trying to interact with Neutron. For instance, while Octavia connects to Neutron through the internal endpoint, the plugin still tries to reach it through the public one, ignoring options defined in [service_auth] and [neutron] sections. This patch is basically a copy-paste from Octavia [1]. [1] https://review.opendev.org/c/openstack/octavia/+/905794 Closes-Bug: #2110488 Related-Bug: #2049551 Change-Id: I3a98825e40143dfa9017ca512a27197c48c31ee9 ** Changed in: neutron Status: In Progress => Fix Released -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron. https://bugs.launchpad.net/bugs/2110488 Title: Neutron endpoint options are not applied Status in neutron: Fix Released Bug description: When using the OVN Octavia provider, Neutron endpoint options such as [neutron]/valid_interfaces are ignored. This may result in failures to communicate with the Neutron API if the Octavia API process is not able to reach the public endpoint (used by default). Similar to Octavia bug https://bugs.launchpad.net/octavia/+bug/2049551 ERROR ovn_octavia_provider.helper During handling of the above exception, another exception occurred: ERROR ovn_octavia_provider.helper ERROR ovn_octavia_provider.helper Traceback (most recent call last): ERROR ovn_octavia_provider.helper File "/var/lib/kolla/venv/lib64/python3.9/site-packages/ovn_octavia_provider/helper.py", line 2191, in member_delete ERROR ovn_octavia_provider.helper self._remove_member(member, ovn_lb, pool_key) ERROR ovn_octavia_provider.helper File "/var/lib/kolla/venv/lib64/python3.9/site-packages/ovn_octavia_provider/helper.py", line 2147, in _remove_member ERROR ovn_octavia_provider.helper self._update_hm_member(ovn_lb, ERROR ovn_octavia_provider.helper File "/var/lib/kolla/venv/lib64/python3.9/site-packages/ovn_octavia_provider/helper.py", line 2787, in _update_hm_member ERROR ovn_octavia_provider.helper member_lsp = self._get_member_lsp(mb_ip, mb_subnet) ERROR ovn_octavia_provider.helper File "/var/lib/kolla/venv/lib64/python3.9/site-packages/ovn_octavia_provider/helper.py", line 2579, in _get_member_lsp ERROR ovn_octavia_provider.helper member_subnet = neutron_client.get_subnet(member_subnet_id) ERROR ovn_octavia_provider.helper File "/var/lib/kolla/venv/lib64/python3.9/site-packages/openstack/network/v2/_proxy.py", line 5261, in get_subnet ERROR ovn_octavia_provider.helper return self._get(_subnet.Subnet, subnet) ERROR ovn_octavia_provider.helper File "/var/lib/kolla/venv/lib64/python3.9/site-packages/openstack/proxy.py", line 61, in check ERROR ovn_octavia_provider.helper return method(self, expected, actual, *args, **kwargs) ERROR ovn_octavia_provider.helper File "/var/lib/kolla/venv/lib64/python3.9/site-packages/openstack/proxy.py", line 705, in _get ERROR ovn_octavia_provider.helper return res.fetch( ERROR ovn_octavia_provider.helper File "/var/lib/kolla/venv/lib64/python3.9/site-packages/openstack/resource.py", line 1696, in fetch ERROR ovn_octavia_provider.helper response = session.get( ERROR ovn_octavia_provider.helper File "/var/lib/kolla/venv/lib64/python3.9/site-packages/keystoneauth1/adapter.py", line 393, in get ERROR ovn_octavia_provider.helper return self.request(url, 'GET', **kwargs) ERROR ovn_octavia_provider.helper File "/var/lib/kolla/venv/lib64/python3.9/site-packages/openstack/proxy.py", line 190, in request ERROR ovn_octavia_provider.helper response = super().request( ERROR ovn_octavia_provider.helper File "/var/lib/kolla/venv/lib64/python3.9/site-packages/keystoneauth1/adapter.py", line 255, in request ERROR ovn_octavia_provider.helper return self.session.request(url, method, **kwargs) ERROR ovn_octavia_provider.helper File "/var/lib/kolla/venv/lib64/python3.9/site-packages/keystoneauth1/session.py", line 930, in request ERROR ovn_octavia_provider.helper resp = send(**kwargs) ERROR ovn_octavia_provider.helper File "/var/lib/kolla/venv/lib64/python3.9/site-packages/keystoneauth1/session.py", line 1054, in _send_request ERROR ovn_octavia_provider.helper return self._send_request( ERROR ovn_octavia_provider.helper File "/var/lib/kolla/venv/lib64/python3.9/site-packages/keystoneauth1/session.py", line 1037, in _send_request ERROR ovn_octavia_provider.helper raise exceptions.ConnectFailure(msg) ERROR ovn_octavia_provider.helper keystoneauth1.exceptions.connection.ConnectFailure: Unable to establish connection to https://NEUTRON_URL/v2.0/subnets/449e1bfa-3388-4cb4-abf8-e30e4df42308: HTTPSConnectionPool(host='NEUTRON_HOST', port=443): Max retries exceeded with url: /v2.0/subnets/449e1bfa-3388-4cb4-abf8-e30e4df42308 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fc3d7cfb310>: Failed to establish a new connection: [Errno -2] Name or service not known')) This was discovered after upgrading from 2023.1 to 2024.1, but it is believed to affect master too. To manage notifications about this bug go to: https://bugs.launchpad.net/neutron/+bug/2110488/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : [email protected] Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp

