Add support for ovsdb conversion
After upgrade we should check if OVSDB doesn't need conversion to new version - this patch adds that to ovsdb start script. Change-Id: Ifa8766d050b506708142a1970121ce5944c6bae1 Closes-Bug: #1792496
This commit is contained in:
parent
ed5588c934
commit
2a6070b963
@ -1,5 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
# NOTE(mnasiadka): ensure existing ovsdb doesn't need to be upgraded
|
||||
|
||||
if ([ -f /var/lib/openvswitch/conf.db ] && [ `ovsdb-tool needs-conversion /var/lib/openvswitch/conf.db` == "yes" ]); then
|
||||
/usr/bin/ovsdb-tool convert /var/lib/openvswitch/conf.db
|
||||
fi
|
||||
|
||||
# NOTE: (sbezverk) ovs_bridge and ovs_ext_intf variables get initialized only when
|
||||
# this script is executed for kubernetes deployment. With Ansible deployment, only
|
||||
# ovsdb-server gets launched and then the following workflow step will create
|
||||
|
Loading…
Reference in New Issue
Block a user