Start ovs if ovn-northd is enabled

There are usecases where ovn-northd is running standalone with ovs, the
suggested local.conf is among the sample files (see: [0]). The service
however doesn't start as it needs OVS to run. This patch makes OVS
installed and started by ovn devstack plugin if ovn-northd is enabled in
local.conf.

[0]: https://opendev.org/openstack/neutron/src/branch/master/devstack/ovn-db-local.conf.sample

Change-Id: Ib12a076e50f010464735c6779d0e67bb218b66be
Closes-Bug: #1871730
This commit is contained in:
elajkat 2020-04-14 15:38:21 +02:00 committed by Maciej Józefczyk
parent d840881359
commit 7718cc0a6f
1 changed files with 1 additions and 1 deletions

View File

@ -600,7 +600,7 @@ function init_ovn {
function _start_ovs {
echo "Starting OVS"
if is_service_enabled ovn-controller || is_service_enabled ovn-controller-vtep ; then
if is_service_enabled ovn-controller ovn-controller-vtep ovn-northd; then
# ovsdb-server and ovs-vswitchd are used privately in OVN as openvswitch service names.
enable_service ovsdb-server
enable_service ovs-vswitchd