[ovs-git] [openvswitch/ovs] 77dca8: ovs-lib: Fix standalone db migration to raft

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


  Branch: refs/heads/branch-2.10
  Home:   https://github.com/openvswitch/ovs
  Commit: 77dca82d1cba99a37d209cc9ae371d1862a1cd29
      https://github.com/openvswitch/ovs/commit/77dca82d1cba99a37d209cc9ae371d1862a1cd29
  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