Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
The FDP team is no longer accepting new bugs in Bugzilla. Please report your issues under FDP project in Jira. Thanks.

Bug 1941646

Summary: [RFE] ovsdb-server: Support transaction forwarding in replication mode
Product: Red Hat Enterprise Linux Fast Datapath Reporter: Ilya Maximets <i.maximets>
Component: ovsdbAssignee: Ilya Maximets <i.maximets>
Status: CLOSED WONTFIX QA Contact: Jianlin Shi <jishi>
Severity: high Docs Contact:
Priority: high    
Version: FDP 21.CCC: atragler, ctrautma, jhsiao, qding, ralongi
Target Milestone: ---Keywords: FutureFeature
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: 2021-07-19 13:04:35 UTC 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:
Bug Depends On:    
Bug Blocks: 1941615    

Description Ilya Maximets 2021-03-22 14:28:15 UTC
For the 2-Tier ovsdb-server deployment in BZ 1941615, ovsdb-server in replication
mode needs to support transaction forwarding from the client to the active
database server.

Comment 1 Ilya Maximets 2021-04-19 13:29:53 UTC
A first implementation of transaction forwarding is ready and available here:

  * ovsdb: Add support for transaction forwarding to the replication mode.
    https://github.com/openvswitch/ovs/commit/005a7d73eb7400150e0e17ab016c992379b38d01

It passes ovsdb execution testsuite while sending transaction to backup server
that forwards transaction to the main server (test included in the patch).

I also managed to start backup Southbound DB server to replicate a cluster leader
in OVN sandbox.  ovn-controller connected to this replication server successfully
claimed a port:

2021-04-19T11:28:39.573Z|00015|reconnect|INFO|unix:sb-backup.ovsdb: connected
2021-04-19T11:42:46.985Z|00016|binding|INFO|Claiming lport port1 for this chassis.

Some documentation update is needed.  Will send upstream along with patches
form BZ 1941632.

BTW, some changes will be needed to OVN code in order to remove ephemeral columns
from Sb schema, because while creating a clustered database ovsdb-tool automatically
converts them to persistent columns and replication fails due to schema mismatch.
For now, I created a separate schema without ephemeral columns to make replication
work.

Comment 2 Ilya Maximets 2021-05-03 14:32:04 UTC
Patch sent upstream as part of 2-Tier deployment patch-set:
  https://patchwork.ozlabs.org/project/openvswitch/patch/20210501005548.3071269-2-i.maximets@ovn.org/

Comment 3 Ilya Maximets 2021-07-19 13:04:35 UTC
The main 2-Tier deployment solution went in a different direction, i.e.
to implement an OVSDB Relay instead of hacking into active-backup
replication.  See BZ 1941615 for details.  So, this BZ is not needed,
because transaction forwarding is implemented as part of OVSDB Relay.