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
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.
*** This bug has been marked as a duplicate of bug 1959352 ***