aboutsummaryrefslogtreecommitdiff
path: root/docker/openvswitch/openvswitch-db-server/start_ovsdb_server.sh
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2020-02-25 13:10:43 +0000
committerGerrit Code Review <review@openstack.org>2020-02-25 13:10:43 +0000
commitd542aa3205c55797942dd0e0f0838aae893984db (patch)
tree66fa8848ba01ee06789841e08c9bd3fd7bcecae6 /docker/openvswitch/openvswitch-db-server/start_ovsdb_server.sh
parent43dd3e5c44d2d179291b9b507ed117a0415c8bd3 (diff)
parent42b4987cee1a4645a824435628f8c2aa08c387b2 (diff)
downloadkolla-d542aa3205c55797942dd0e0f0838aae893984db.tar.gz
kolla-d542aa3205c55797942dd0e0f0838aae893984db.zip
Merge "Remove start-ovsdb-server script from openvswitch-db-server"
Diffstat (limited to 'docker/openvswitch/openvswitch-db-server/start_ovsdb_server.sh')
-rwxr-xr-xdocker/openvswitch/openvswitch-db-server/start_ovsdb_server.sh30
1 files changed, 0 insertions, 30 deletions
diff --git a/docker/openvswitch/openvswitch-db-server/start_ovsdb_server.sh b/docker/openvswitch/openvswitch-db-server/start_ovsdb_server.sh
deleted file mode 100755
index bb8bba65e..000000000
--- a/docker/openvswitch/openvswitch-db-server/start_ovsdb_server.sh
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/bin/bash
-
-# 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
-# an external bridge and plug an external interface. With Kubernetes we want to
-# leverage its dynamic nature of automatic scaling up and down. It means all
-# activities related to creating initial bridge, plugging external interface
-# must be done by DaemonSet launched container.
-
-ovsdb_ip=$1
-ovs_bridge=$2
-ovs_ext_intf=$3
-
-# NOTE: (sbezverk) The reason for introducing this script is to be able
-# to launch ovsdb-server and to create the initial external bridge in one step.
-# It is required in order to be able to use DaemonSet.
-
-if [ ! -e $ovs_bridge ] && [ ! -e $ovs_ext_intf ]; then
-# NOTE: (sbezverk) This part is executed only by kubernetes deployment.
-# Creating external bridge
- /usr/sbin/ovsdb-server /var/lib/openvswitch/conf.db --remote=punix:/var/run/openvswitch/db.sock --run="ovs-vsctl --no-wait --db=unix:/var/run/openvswitch/db.sock add-br $ovs_bridge"
-# Plug the external interface into the external bridge.
- /usr/sbin/ovsdb-server /var/lib/openvswitch/conf.db --remote=punix:/var/run/openvswitch/db.sock --run="ovs-vsctl --no-wait --db=unix:/var/run/openvswitch/db.sock add-port $ovs_bridge $ovs_ext_intf"
-# Run ovsdb server process
- /usr/sbin/ovsdb-server /var/lib/openvswitch/conf.db -vconsole:emer -vsyslog:err -vfile:info --remote=punix:/var/run/openvswitch/db.sock --remote=ptcp:6640 --log-file=/var/log/kolla/openvswitch/ovsdb-server.log
-else
-# NOTE: (sbezverk) This part is executed only by kolla-ansible deployment.
- /usr/sbin/ovsdb-server /var/lib/openvswitch/conf.db -vconsole:emer -vsyslog:err -vfile:info --pidfile=/var/run/openvswitch/ovs-vswitchd.pid --remote=punix:/run/openvswitch/db.sock --remote=ptcp:6640:$ovsdb_ip --log-file=/var/log/kolla/openvswitch/ovsdb-server.log
-fi