[ovs-git] [openvswitch/ovs] 1a3f3c: ovs-lib: Fix standalone db migration to raft

Ben Pfaff noreply at github.com
Wed Aug 21 17:21:45 UTC 2019


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 1a3f3cf8acc26266ff78fb36bd0bb5d094783088
      https://github.com/openvswitch/ovs/commit/1a3f3cf8acc26266ff78fb36bd0bb5d094783088
  Author: Aliasgar Ginwala <amginwal at gmail.com>
  Date:   2019-08-21 (Wed, 21 Aug 2019)

  Changed paths:
    M utilities/ovs-lib.in

  Log Message:
  -----------
  ovs-lib: Fix standalone db migration to raft

Current code of create-cluster from standalone db takes backup of existing
standalone db and then generates a new clustered dbs from backup dbs. Hence,
during migration if nb and sb  dbs are still present, create-cluster will fail
saying file exists and will not really convert  dbs to clustered dbs. This
patch fixes the same.

e.g message that pops up while migration from standalone to raft cluster:
 * Backing up database to /etc/openvswitch/ovnnb_db.db.backup5.13.0-1278623084
ovsdb-tool: I/O error: /etc/openvswitch/ovnnb_db.db: create failed (File exists)
 * Creating cluster database /etc/openvswitch/ovnnb_db.db from existing one

Signed-off-by: aginwala <aginwala at ebay.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>




More information about the git mailing list