Browse Source

Fix ovn-db-sync-util after removing l3 ovsdb connection

As a result of d92e71c2 the sync util can fail because it tries to
look up the ovsdb connection from the mechanism_manager under 'ovn'
but the sync util registers under 'ovn-sync'.

Change-Id: I6998b08672761a501e427aab5d581064d9425dde
Closes-Bug: #1876752
(cherry picked from Neutron commit 18dd0d4e)
changes/37/728937/1
Terry Wilson 1 year ago
parent
commit
e20d34baab
  1. 6
      networking_ovn/cmd/neutron_ovn_db_sync_util.py

6
networking_ovn/cmd/neutron_ovn_db_sync_util.py

@ -191,7 +191,11 @@ def main():
manager.init()
core_plugin = directory.get_plugin()
ovn_driver = core_plugin.mechanism_manager.mech_drivers['ovn-sync'].obj
driver = core_plugin.mechanism_manager.mech_drivers['ovn-sync']
# The L3 code looks for the OVSDB connection on the 'ovn' driver
# and will fail with a KeyError if it isn't there
core_plugin.mechanism_manager.mech_drivers['ovn'] = driver
ovn_driver = driver.obj
ovn_driver._nb_ovn = ovn_api
ovn_driver._sb_ovn = ovn_sb_api

Loading…
Cancel
Save