[ovs-git] [openvswitch/ovs] 4bd053: ovs-lib: Fix standalone db migration to raft
Ben Pfaff
noreply at github.com
Wed Aug 21 17:39:14 UTC 2019
Branch: refs/heads/branch-2.12
Home: https://github.com/openvswitch/ovs
Commit: 4bd053d1c7c5fdc5eb96d5ef391f8b31a0b38f55
https://github.com/openvswitch/ovs/commit/4bd053d1c7c5fdc5eb96d5ef391f8b31a0b38f55
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