[ovs-git] [openvswitch/ovs] 7ce27c: ovsdb-server: Allow replication from older schema ...

Ben Pfaff noreply at github.com
Thu Oct 24 22:10:25 UTC 2019


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 7ce27c9d562643f501285cac4fcd7a281e936599
      https://github.com/openvswitch/ovs/commit/7ce27c9d562643f501285cac4fcd7a281e936599
  Author: Numan Siddique <numans at ovn.org>
  Date:   2019-10-24 (Thu, 24 Oct 2019)

  Changed paths:
    M ovsdb/replication.c
    M tests/ovsdb-replication.at
    M tests/ovsdb-server.at

  Log Message:
  -----------
  ovsdb-server: Allow replication from older schema version servers.

Presently, replication is not allowed if there is a schema version mismatch between
the schema returned by the active ovsdb-server and the local db schema. This is
causing failures in OVN DB HA deployments during uprades.

In the case of OpenStack tripleo deployment with OVN, OVN DB ovsdb-servers are
deployed on a multi node controller cluster in active/standby mode. During
minor updates or major upgrades, the cluster is updated one at a time. If
a node A is running active OVN DB ovsdb-servers and when it is updated, another
node B becomes active. After the update when OVN DB ovsdb-servers in A are started,
these ovsdb-servers fail to replicate from the active if there is a schema
version mismatch.

This patch addresses this issue by allowing replication even if there is a
schema version mismatch only if all the active db schema tables and its colums are
present in the local db schema.

This should not result in any data loss.

Signed-off-by: Numan Siddique <numans at ovn.org>
Signed-off-by: Ben Pfaff <blp at ovn.org>




More information about the git mailing list