In an attempt to minimize the number of connections to the OVSDBs the
ML2/OVN driver stopped connecting to the OVN dbs if the Neutron worker
was a RpcWorker but, that introduced a regression for those using
ML2/OVN + Neutron DHCP agent (for baremetal provisioning).
Because the RpcWorker didn't have a connection to the OVN database the
Neutron DHCP agent wasn't able to create the DHCP port and failed with:
2021-07-13 13:36:18.116 17 ERROR neutron.plugins.ml2.managers if not
self._sb_ovn.chassis_exists(host):
2021-07-13 13:36:18.116 17 ERROR neutron.plugins.ml2.managers
AttributeError: 'NoneType' object has no attribute 'chassis_exists'
This patch adds the RpcWorker back to the list of workers that should
connect to the OVN databases.
Change-Id: I454f3b52376a02f6cc9ca9124083295631bd03d5
Closes-Bug: #1929633
Signed-off-by: Lucas Alvares Gomes <email address hidden>
(cherry picked from commit e5f19a29dcfb70ea08fa39267bc4aecd44bec2eb)
Reviewed: https:/ /review. opendev. org/c/openstack /neutron/ +/800892 /opendev. org/openstack/ neutron/ commit/ 335614be5fdc4d9 aa562cb66806a54 29357e338f
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/wallaby
commit 335614be5fdc4d9 aa562cb66806a54 29357e338f
Author: Lucas Alvares Gomes <email address hidden>
Date: Wed Jul 14 16:46:47 2021 +0100
[OVN] Fix ML2/OVN + Neutron DHCP agent use case
In an attempt to minimize the number of connections to the OVSDBs the
ML2/OVN driver stopped connecting to the OVN dbs if the Neutron worker
was a RpcWorker but, that introduced a regression for those using
ML2/OVN + Neutron DHCP agent (for baremetal provisioning).
Because the RpcWorker didn't have a connection to the OVN database the
Neutron DHCP agent wasn't able to create the DHCP port and failed with:
2021-07-13 13:36:18.116 17 ERROR neutron. plugins. ml2.managers if not _sb_ovn. chassis_ exists( host): plugins. ml2.managers
self.
2021-07-13 13:36:18.116 17 ERROR neutron.
AttributeError: 'NoneType' object has no attribute 'chassis_exists'
This patch adds the RpcWorker back to the list of workers that should
connect to the OVN databases.
Change-Id: I454f3b52376a02 f6cc9ca91240832 95631bd03d5 a08fa39267bc4ae cd44bec2eb)
Closes-Bug: #1929633
Signed-off-by: Lucas Alvares Gomes <email address hidden>
(cherry picked from commit e5f19a29dcfb70e