← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1882202] [NEW] neutron-ovn-db-sync-util stops with Traceback due to L3 service plugin expecting ``ovn`` mech driver to be present while ``ovn-sync`` mech driver is loaded

 

Public bug reported:

The ``neutron-ovn-db-sync-util`` overrides the mechanism driver to be
``ovn-sync``[0]. Subsequently it calls into the OVN L3 service plugin
[1] which expects the ``ovn`` mechanism driver to be present [2].

Do we need both mechanism drivers there, does the OVN L3 service plugin
need to check for both or do we need a way to tell the service plugin
which mechanism driver to use?

2020-06-05 07:33:11.005 1486514 CRITICAL neutron_ovn_db_sync_util [req-3c6fb887-7610-466c-adfb-07b6404475c1 - - - - -] Unhandled error: KeyError: 'ovn'
2020-06-05 07:33:11.005 1486514 ERROR neutron_ovn_db_sync_util Traceback (most recent call last):
2020-06-05 07:33:11.005 1486514 ERROR neutron_ovn_db_sync_util   File "/usr/bin/neutron-ovn-db-sync-util", line 10, in <module>
2020-06-05 07:33:11.005 1486514 ERROR neutron_ovn_db_sync_util     sys.exit(main())
2020-06-05 07:33:11.005 1486514 ERROR neutron_ovn_db_sync_util   File "/usr/lib/python3/dist-packages/neutron/cmd/ovn/neutron_ovn_db_sync_util.py", line 221, in main
2020-06-05 07:33:11.005 1486514 ERROR neutron_ovn_db_sync_util     sb_synchronizer.do_sync()
2020-06-05 07:33:11.005 1486514 ERROR neutron_ovn_db_sync_util   File "/usr/lib/python3/dist-packages/neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/ovn_db_sync.py", line 1215, in do_sync
2020-06-05 07:33:11.005 1486514 ERROR neutron_ovn_db_sync_util     self.l3_plugin.schedule_unhosted_gateways()
2020-06-05 07:33:11.005 1486514 ERROR neutron_ovn_db_sync_util   File "/usr/lib/python3/dist-packages/neutron/services/ovn_l3/plugin.py", line 340, in schedule_unhosted_gateways
2020-06-05 07:33:11.005 1486514 ERROR neutron_ovn_db_sync_util     chassis_with_physnets = self._sb_ovn.get_chassis_and_physnets()
2020-06-05 07:33:11.005 1486514 ERROR neutron_ovn_db_sync_util   File "/usr/lib/python3/dist-packages/neutron/services/ovn_l3/plugin.py", line 97, in _sb_ovn
2020-06-05 07:33:11.005 1486514 ERROR neutron_ovn_db_sync_util     return self._plugin_driver.sb_ovn
2020-06-05 07:33:11.005 1486514 ERROR neutron_ovn_db_sync_util   File "/usr/lib/python3/dist-packages/neutron/services/ovn_l3/plugin.py", line 108, in _plugin_driver
2020-06-05 07:33:11.005 1486514 ERROR neutron_ovn_db_sync_util     self._mech = self._plugin.mechanism_manager.mech_drivers['ovn'].obj
2020-06-05 07:33:11.005 1486514 ERROR neutron_ovn_db_sync_util KeyError: 'ovn'
2020-06-05 07:33:11.005 1486514 ERROR neutron_ovn_db_sync_util 

0: https://github.com/openstack/neutron/blob/c6e5e119b84a7d55e539509050ce56236ebf57c6/neutron/cmd/ovn/neutron_ovn_db_sync_util.py#L188
1: https://github.com/openstack/neutron/blob/c6e5e119b84a7d55e539509050ce56236ebf57c6/neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/ovn_db_sync.py#L1213
2: https://github.com/openstack/neutron/blob/ef97c83e8753a668e0c0f405ef4beb027efa02cd/neutron/services/ovn_l3/plugin.py#L108

** 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/1882202

Title:
  neutron-ovn-db-sync-util stops with Traceback due to L3 service plugin
  expecting ``ovn`` mech driver to be present while ``ovn-sync`` mech
  driver is loaded

Status in neutron:
  New

Bug description:
  The ``neutron-ovn-db-sync-util`` overrides the mechanism driver to be
  ``ovn-sync``[0]. Subsequently it calls into the OVN L3 service plugin
  [1] which expects the ``ovn`` mechanism driver to be present [2].

  Do we need both mechanism drivers there, does the OVN L3 service
  plugin need to check for both or do we need a way to tell the service
  plugin which mechanism driver to use?

  2020-06-05 07:33:11.005 1486514 CRITICAL neutron_ovn_db_sync_util [req-3c6fb887-7610-466c-adfb-07b6404475c1 - - - - -] Unhandled error: KeyError: 'ovn'
  2020-06-05 07:33:11.005 1486514 ERROR neutron_ovn_db_sync_util Traceback (most recent call last):
  2020-06-05 07:33:11.005 1486514 ERROR neutron_ovn_db_sync_util   File "/usr/bin/neutron-ovn-db-sync-util", line 10, in <module>
  2020-06-05 07:33:11.005 1486514 ERROR neutron_ovn_db_sync_util     sys.exit(main())
  2020-06-05 07:33:11.005 1486514 ERROR neutron_ovn_db_sync_util   File "/usr/lib/python3/dist-packages/neutron/cmd/ovn/neutron_ovn_db_sync_util.py", line 221, in main
  2020-06-05 07:33:11.005 1486514 ERROR neutron_ovn_db_sync_util     sb_synchronizer.do_sync()
  2020-06-05 07:33:11.005 1486514 ERROR neutron_ovn_db_sync_util   File "/usr/lib/python3/dist-packages/neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/ovn_db_sync.py", line 1215, in do_sync
  2020-06-05 07:33:11.005 1486514 ERROR neutron_ovn_db_sync_util     self.l3_plugin.schedule_unhosted_gateways()
  2020-06-05 07:33:11.005 1486514 ERROR neutron_ovn_db_sync_util   File "/usr/lib/python3/dist-packages/neutron/services/ovn_l3/plugin.py", line 340, in schedule_unhosted_gateways
  2020-06-05 07:33:11.005 1486514 ERROR neutron_ovn_db_sync_util     chassis_with_physnets = self._sb_ovn.get_chassis_and_physnets()
  2020-06-05 07:33:11.005 1486514 ERROR neutron_ovn_db_sync_util   File "/usr/lib/python3/dist-packages/neutron/services/ovn_l3/plugin.py", line 97, in _sb_ovn
  2020-06-05 07:33:11.005 1486514 ERROR neutron_ovn_db_sync_util     return self._plugin_driver.sb_ovn
  2020-06-05 07:33:11.005 1486514 ERROR neutron_ovn_db_sync_util   File "/usr/lib/python3/dist-packages/neutron/services/ovn_l3/plugin.py", line 108, in _plugin_driver
  2020-06-05 07:33:11.005 1486514 ERROR neutron_ovn_db_sync_util     self._mech = self._plugin.mechanism_manager.mech_drivers['ovn'].obj
  2020-06-05 07:33:11.005 1486514 ERROR neutron_ovn_db_sync_util KeyError: 'ovn'
  2020-06-05 07:33:11.005 1486514 ERROR neutron_ovn_db_sync_util 

  0: https://github.com/openstack/neutron/blob/c6e5e119b84a7d55e539509050ce56236ebf57c6/neutron/cmd/ovn/neutron_ovn_db_sync_util.py#L188
  1: https://github.com/openstack/neutron/blob/c6e5e119b84a7d55e539509050ce56236ebf57c6/neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/ovn_db_sync.py#L1213
  2: https://github.com/openstack/neutron/blob/ef97c83e8753a668e0c0f405ef4beb027efa02cd/neutron/services/ovn_l3/plugin.py#L108

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


Follow ups