← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1914857] [NEW] AttributeError: 'NoneType' object has no attribute 'db_find_rows'

 

Public bug reported:

(neutron-server)[root@localhost /]# rpm -qa|egrep 'ovs|neutron'
python3-ovsdbapp-1.6.0-1.el8.noarch
openstack-neutron-common-17.0.0-1.el8.noarch
openstack-neutron-vpnaas-17.0.0-2.el8.noarch
python3-neutronclient-7.2.1-2.el8.noarch
python3-neutron-17.0.0-1.el8.noarch
python3-neutron-vpnaas-17.0.0-2.el8.noarch
openstack-neutron-17.0.0-1.el8.noarch
openstack-neutron-ml2-17.0.0-1.el8.noarch
python3-neutron-lib-2.6.1-2.el8.noarch
python3-neutron-dynamic-routing-17.0.0-2.el8.noarch


I found some error log in neutron-server.log:
2021-02-06 16:27:27.557 24 ERROR ovsdbapp.event [-] Unexpected exception in notify_loop: AttributeError: 'NoneType' object has no attribute 'db_find_rows'
2021-02-06 16:27:27.557 24 ERROR ovsdbapp.event Traceback (most recent call last):
2021-02-06 16:27:27.557 24 ERROR ovsdbapp.event   File "/usr/lib/python3.6/site-packages/ovsdbapp/event.py", line 159, in notify_loop
2021-02-06 16:27:27.557 24 ERROR ovsdbapp.event     match.run(event, row, updates)
2021-02-06 16:27:27.557 24 ERROR ovsdbapp.event   File "/usr/lib/python3.6/site-packages/neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/ovsdb_monitor.py", line 347, in run
2021-02-06 16:27:27.557 24 ERROR ovsdbapp.event     self.driver.delete_mac_binding_entries(row.external_ip)
2021-02-06 16:27:27.557 24 ERROR ovsdbapp.event   File "/usr/lib/python3.6/site-packages/neutron/plugins/ml2/drivers/ovn/mech_driver/mech_driver.py", line 1010, in delete_mac_binding_entries
2021-02-06 16:27:27.557 24 ERROR ovsdbapp.event     mac_binds = self._sb_ovn.db_find_rows(
2021-02-06 16:27:27.557 24 ERROR ovsdbapp.event AttributeError: 'NoneType' object has no attribute 'db_find_rows'
2021-02-06 16:27:27.557 24 ERROR ovsdbapp.event 
2021-02-06 16:27:27.558 24 ERROR ovsdbapp.event [-] Unexpected exception in notify_loop: AttributeError: 'NoneType' object has no attribute 'db_find_rows'
2021-02-06 16:27:27.558 24 ERROR ovsdbapp.event Traceback (most recent call last):
2021-02-06 16:27:27.558 24 ERROR ovsdbapp.event   File "/usr/lib/python3.6/site-packages/ovsdbapp/event.py", line 159, in notify_loop
2021-02-06 16:27:27.558 24 ERROR ovsdbapp.event     match.run(event, row, updates)
2021-02-06 16:27:27.558 24 ERROR ovsdbapp.event   File "/usr/lib/python3.6/site-packages/neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/ovsdb_monitor.py", line 347, in run
2021-02-06 16:27:27.558 24 ERROR ovsdbapp.event     self.driver.delete_mac_binding_entries(row.external_ip)
2021-02-06 16:27:27.558 24 ERROR ovsdbapp.event   File "/usr/lib/python3.6/site-packages/neutron/plugins/ml2/drivers/ovn/mech_driver/mech_driver.py", line 1010, in delete_mac_binding_entries
2021-02-06 16:27:27.558 24 ERROR ovsdbapp.event     mac_binds = self._sb_ovn.db_find_rows(
2021-02-06 16:27:27.558 24 ERROR ovsdbapp.event AttributeError: 'NoneType' object has no attribute 'db_find_rows'
2021-02-06 16:27:27.558 24 ERROR ovsdbapp.event 

how to fix this?

** Affects: networking-ovn
     Importance: Undecided
         Status: New

** Affects: neutron
     Importance: Undecided
         Status: New


** Tags: neutron-server ovn

** Also affects: neutron
   Importance: Undecided
       Status: New

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

Title:
  AttributeError: 'NoneType' object has no attribute 'db_find_rows'

Status in networking-ovn:
  New
Status in neutron:
  New

Bug description:
  (neutron-server)[root@localhost /]# rpm -qa|egrep 'ovs|neutron'
  python3-ovsdbapp-1.6.0-1.el8.noarch
  openstack-neutron-common-17.0.0-1.el8.noarch
  openstack-neutron-vpnaas-17.0.0-2.el8.noarch
  python3-neutronclient-7.2.1-2.el8.noarch
  python3-neutron-17.0.0-1.el8.noarch
  python3-neutron-vpnaas-17.0.0-2.el8.noarch
  openstack-neutron-17.0.0-1.el8.noarch
  openstack-neutron-ml2-17.0.0-1.el8.noarch
  python3-neutron-lib-2.6.1-2.el8.noarch
  python3-neutron-dynamic-routing-17.0.0-2.el8.noarch

  
  I found some error log in neutron-server.log:
  2021-02-06 16:27:27.557 24 ERROR ovsdbapp.event [-] Unexpected exception in notify_loop: AttributeError: 'NoneType' object has no attribute 'db_find_rows'
  2021-02-06 16:27:27.557 24 ERROR ovsdbapp.event Traceback (most recent call last):
  2021-02-06 16:27:27.557 24 ERROR ovsdbapp.event   File "/usr/lib/python3.6/site-packages/ovsdbapp/event.py", line 159, in notify_loop
  2021-02-06 16:27:27.557 24 ERROR ovsdbapp.event     match.run(event, row, updates)
  2021-02-06 16:27:27.557 24 ERROR ovsdbapp.event   File "/usr/lib/python3.6/site-packages/neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/ovsdb_monitor.py", line 347, in run
  2021-02-06 16:27:27.557 24 ERROR ovsdbapp.event     self.driver.delete_mac_binding_entries(row.external_ip)
  2021-02-06 16:27:27.557 24 ERROR ovsdbapp.event   File "/usr/lib/python3.6/site-packages/neutron/plugins/ml2/drivers/ovn/mech_driver/mech_driver.py", line 1010, in delete_mac_binding_entries
  2021-02-06 16:27:27.557 24 ERROR ovsdbapp.event     mac_binds = self._sb_ovn.db_find_rows(
  2021-02-06 16:27:27.557 24 ERROR ovsdbapp.event AttributeError: 'NoneType' object has no attribute 'db_find_rows'
  2021-02-06 16:27:27.557 24 ERROR ovsdbapp.event 
  2021-02-06 16:27:27.558 24 ERROR ovsdbapp.event [-] Unexpected exception in notify_loop: AttributeError: 'NoneType' object has no attribute 'db_find_rows'
  2021-02-06 16:27:27.558 24 ERROR ovsdbapp.event Traceback (most recent call last):
  2021-02-06 16:27:27.558 24 ERROR ovsdbapp.event   File "/usr/lib/python3.6/site-packages/ovsdbapp/event.py", line 159, in notify_loop
  2021-02-06 16:27:27.558 24 ERROR ovsdbapp.event     match.run(event, row, updates)
  2021-02-06 16:27:27.558 24 ERROR ovsdbapp.event   File "/usr/lib/python3.6/site-packages/neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/ovsdb_monitor.py", line 347, in run
  2021-02-06 16:27:27.558 24 ERROR ovsdbapp.event     self.driver.delete_mac_binding_entries(row.external_ip)
  2021-02-06 16:27:27.558 24 ERROR ovsdbapp.event   File "/usr/lib/python3.6/site-packages/neutron/plugins/ml2/drivers/ovn/mech_driver/mech_driver.py", line 1010, in delete_mac_binding_entries
  2021-02-06 16:27:27.558 24 ERROR ovsdbapp.event     mac_binds = self._sb_ovn.db_find_rows(
  2021-02-06 16:27:27.558 24 ERROR ovsdbapp.event AttributeError: 'NoneType' object has no attribute 'db_find_rows'
  2021-02-06 16:27:27.558 24 ERROR ovsdbapp.event 

  how to fix this?

To manage notifications about this bug go to:
https://bugs.launchpad.net/networking-ovn/+bug/1914857/+subscriptions