0ab13dc7db
The start-ovsdb-server script is only ever called with one argument by kolla ansible, so we can remove the multiple argument handling used by kolla-kubernetes (RIP). Change-Id: I9c3bc8ad24768052fc883c6fedd5f19336eb3fa4
12 lines
573 B
Django/Jinja
12 lines
573 B
Django/Jinja
#!/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
|
|
|
|
ovsdb_ip=$1
|
|
|
|
/usr/sbin/ovsdb-server /var/lib/openvswitch/conf.db -vconsole:emer -vsyslog:err -vfile:info --remote=punix:/run/openvswitch/db.sock --remote=ptcp:{{ ovsdb_port }}:$ovsdb_ip --remote=db:Open_vSwitch,Open_vSwitch,manager_options --log-file=/var/log/kolla/openvswitch/ovsdb-server.log --pidfile
|