Bug 1999704 - ovn-org/libovsdb should connect to the raft leader when appropriate
Summary: ovn-org/libovsdb should connect to the raft leader when appropriate
Keywords:
Status: CLOSED DUPLICATE of bug 1959352
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Networking
Version: 4.9
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.10.0
Assignee: Tim Rozet
QA Contact: Anurag saxena
URL:
Whiteboard:
Depends On:
Blocks: 2005985
TreeView+ depends on / blocked
 
Reported: 2021-08-31 15:34 UTC by Casey Callendrello
Modified: 2021-09-29 15:33 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2005985 (view as bug list)
Environment:
Last Closed: 2021-09-29 15:33:58 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Casey Callendrello 2021-08-31 15:34:28 UTC
When connecting to a clustered ovsdb, ovn-nbctl always connects to the leader. However, ebay/go-ovn doesn't do this.

We should duplicate that behavior.

In order to do it, you need to check the special _Server database that includes information as to whether or not the node is a leader.

You can see a similar implementation for ovn-org/libovsdb in https://github.com/ovn-org/libovsdb/pull/221

Comment 1 Dan Williams 2021-09-20 15:39:35 UTC
Fixed upstream in ovnkube in https://github.com/ovn-org/ovn-kubernetes/pull/2464

Will be pulled into 4.10 when Tim does the next merge to downstream.

Comment 2 Tim Rozet 2021-09-29 15:33:58 UTC

*** This bug has been marked as a duplicate of bug 1959352 ***


Note You need to log in before you can comment on or make changes to this bug.