Skip to content

Commit 3de92db

Browse files
committed
Fix installation of OVS/OVN from sources
This patch changes user who runs ovsdb-server and ovn-nortd services to root. It also adds installation of the libssl dev package before compilation of the openvswitch if TLS service is enabled. Co-Authored-By: Fernando Royo <froyo@redhat.com> Closes-Bug: #1987832 Change-Id: I83fc9250ae5b7c1686938a0dd25d66b40fc6c6aa
1 parent 995c906 commit 3de92db

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

lib/neutron_plugins/ovn_agent

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ function _start_ovs {
616616
dbcmd+=" --remote=db:hardware_vtep,Global,managers $OVS_DATADIR/vtep.db"
617617
fi
618618
dbcmd+=" $OVS_DATADIR/conf.db"
619-
_run_process ovsdb-server "$dbcmd"
619+
_run_process ovsdb-server "$dbcmd" "" "$STACK_GROUP" "root"
620620

621621
# Note: ovn-controller will create and configure br-int once it is started.
622622
# So, no need to create it now because nothing depends on that bridge here.
@@ -704,7 +704,7 @@ function start_ovn {
704704
local cmd="/bin/bash $SCRIPTDIR/ovn-ctl --no-monitor start_northd"
705705
local stop_cmd="/bin/bash $SCRIPTDIR/ovn-ctl stop_northd"
706706

707-
_run_process ovn-northd "$cmd" "$stop_cmd"
707+
_run_process ovn-northd "$cmd" "$stop_cmd" "$STACK_GROUP" "root"
708708
else
709709
_start_process "$OVN_NORTHD_SERVICE"
710710
fi

lib/neutron_plugins/ovs_source

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,15 @@ function prepare_for_ovs_compilation {
8787

8888
install_package kernel-devel-$KERNEL_VERSION
8989
install_package kernel-headers-$KERNEL_VERSION
90+
if is_service_enabled tls-proxy; then
91+
install_package openssl-devel
92+
fi
9093

9194
elif is_ubuntu ; then
9295
install_package linux-headers-$KERNEL_VERSION
96+
if is_service_enabled tls-proxy; then
97+
install_package libssl-dev
98+
fi
9399
fi
94100
}
95101

0 commit comments

Comments
 (0)