Bug 2137412

Summary: Make IDL clients connect to the new leader when a transaction fails due to leadership change.
Product: Red Hat Enterprise Linux Fast Datapath Reporter: Mark Michelson <mmichels>
Component: openvswitchAssignee: Timothy Redaelli <tredaelli>
openvswitch sub component: daemons and tools QA Contact: qding
Status: NEW --- Docs Contact:
Severity: unspecified    
Priority: unspecified CC: ctrautma, jhsiao
Version: FDP 22.E   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Mark Michelson 2022-10-24 20:00:52 UTC
This issue is created as a follow-up of https://bugzilla.redhat.com/show_bug.cgi?id=1999650 .

Specifically, this issue is intended to ensure that the C and python IDL clients for OVSDB will connect to the new leader when a transaction fails due to a RAFT leadership change. Currently, the initial transaction failure is reported via the IDL to the client, and the client will likely re-attempt the transaction. However, behind the scenes, the initial transaction was actually successful on the new leader, so re-attempting the transaction will fail since it will appear that we are inserting the same record a second time.