[ovs-dev] [PATCH v1] ovs-lib: Fix standalone db migration to raft
blp at ovn.org
Wed Aug 21 17:39:54 UTC 2019
On Mon, Aug 19, 2019 at 06:36:13PM -0700, Aliasgar Ginwala wrote:
> 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>
Thanks, applied to master and backported.
More information about the dev