Skip to content

Commit f0abced

Browse files
maximkorezkijTobias Fischer
authored andcommitted
[neutron-api] remove leader_only for sb connection
The maintenance worker from the neutron-api uses a southbound connection. Since the southbound does not use any locking and all the ovsdb locking is used for the northbound this changes should not have a big impact. This commit removes the leader_only flag for the maintenance worker. This should also enable the neutron api to connect to relays instead of only the sb directly. Closes-Bug: #2022914 Change-Id: Ia7937390867e45af34ebcd65bd76fc89b6adafe9 Signed-off-by: maximkorezkij <[email protected]> (cherry picked from commit a9c8bf5)
1 parent c6438e2 commit f0abced

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/ovsdb_monitor.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -661,9 +661,8 @@ def from_server(cls, connection_string, helper):
661661
helper.register_table('Encap')
662662
helper.register_table('Port_Binding')
663663
helper.register_table('Datapath_Binding')
664-
# Used by MaintenanceWorker which can use ovsdb locking
665664
try:
666-
return cls(connection_string, helper, leader_only=True)
665+
return cls(connection_string, helper, leader_only=False)
667666
except TypeError:
668667
# TODO(twilson) We can remove this when we require ovs>=2.12.0
669668
return cls(connection_string, helper)
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
fixes:
3+
- |
4+
[`bug 2022914 <https://bugs.launchpad.net/neutron/+bug/2022914>`_]
5+
Neutron-API supports using relays as the southbound connection in a
6+
ML2/OVN setup. Before the maintenance worker of the API required a
7+
leader_only connection, which was removed.

0 commit comments

Comments
 (0)