Browse Source

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
changes/72/719972/4
elajkat 2 years ago
committed by Maciej Józefczyk
parent
commit
7718cc0a6f
  1. 2
      devstack/lib/ovn_agent

2
devstack/lib/ovn_agent

@ -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

Loading…
Cancel
Save