← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1935983] [NEW] [OVN] Regression when using ML2/OVN with Neutron DHCP agent

 

Public bug reported:

In an attempt to minimize the number of connections to the OVSDBs the
ML2/OVN driver no longer connects to the OVN dbs if the Neutron worker
is a RpcWorker [0].

This introduced a regression where when ML2/OVN is deployed along with
the Neutron DHCP server (e.g for baremetal provisioning) the DHCP agent
is no longer able to create the DHCP port and fails with the following
error message:

2021-07-13 13:36:18.116 17 ERROR neutron.plugins.ml2.managers Traceback (most recent call last):
2021-07-13 13:36:18.116 17 ERROR neutron.plugins.ml2.managers   File "/usr/lib/python3.6/site-packages/neutron/plugins/ml2/managers.py", line 477, in _call_on_drivers
2021-07-13 13:36:18.116 17 ERROR neutron.plugins.ml2.managers     getattr(driver.obj, method_name)(context)
2021-07-13 13:36:18.116 17 ERROR neutron.plugins.ml2.managers   File "/usr/lib/python3.6/site-packages/networking_ovn/ml2/mech_driver.py", line 551, in create_port_precommit
2021-07-13 13:36:18.116 17 ERROR neutron.plugins.ml2.managers     if self._is_port_provisioning_required(port, context.host):
2021-07-13 13:36:18.116 17 ERROR neutron.plugins.ml2.managers   File "/usr/lib/python3.6/site-packages/networking_ovn/ml2/mech_driver.py", line 589, in _is_port_provisioning_required
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'

See full traceback at: http://paste.openstack.org/show/807435/

[0]
https://opendev.org/openstack/neutron/commit/c4007b0833111a25d24f597161d39ee9ccd37189

** Affects: neutron
     Importance: Critical
     Assignee: Lucas Alvares Gomes (lucasagomes)
         Status: Triaged


** Tags: ovn

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1935983

Title:
  [OVN] Regression when using ML2/OVN with Neutron DHCP agent

Status in neutron:
  Triaged

Bug description:
  In an attempt to minimize the number of connections to the OVSDBs the
  ML2/OVN driver no longer connects to the OVN dbs if the Neutron worker
  is a RpcWorker [0].

  This introduced a regression where when ML2/OVN is deployed along with
  the Neutron DHCP server (e.g for baremetal provisioning) the DHCP
  agent is no longer able to create the DHCP port and fails with the
  following error message:

  2021-07-13 13:36:18.116 17 ERROR neutron.plugins.ml2.managers Traceback (most recent call last):
  2021-07-13 13:36:18.116 17 ERROR neutron.plugins.ml2.managers   File "/usr/lib/python3.6/site-packages/neutron/plugins/ml2/managers.py", line 477, in _call_on_drivers
  2021-07-13 13:36:18.116 17 ERROR neutron.plugins.ml2.managers     getattr(driver.obj, method_name)(context)
  2021-07-13 13:36:18.116 17 ERROR neutron.plugins.ml2.managers   File "/usr/lib/python3.6/site-packages/networking_ovn/ml2/mech_driver.py", line 551, in create_port_precommit
  2021-07-13 13:36:18.116 17 ERROR neutron.plugins.ml2.managers     if self._is_port_provisioning_required(port, context.host):
  2021-07-13 13:36:18.116 17 ERROR neutron.plugins.ml2.managers   File "/usr/lib/python3.6/site-packages/networking_ovn/ml2/mech_driver.py", line 589, in _is_port_provisioning_required
  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'

  See full traceback at: http://paste.openstack.org/show/807435/

  [0]
  https://opendev.org/openstack/neutron/commit/c4007b0833111a25d24f597161d39ee9ccd37189

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1935983/+subscriptions