Do not use sudo with OVN_DATADIR when building from source
Jobs with OVN_BUILD_FROMS_SOURCE=True are broken since [1] as ovn nortd not starting due to permission issues. Fix it by not using sudo for creating OVN_DATADIR when building from source. [1] https://review.opendev.org/c/openstack/devstack/+/806858 Closes-Bug: #1952393 Change-Id: I00f0c8c8173b4d8270fbb3e6079d0d8b332e9de5
This commit is contained in:
@@ -568,7 +568,11 @@ function init_ovn {
|
||||
|
||||
_disable_libvirt_apparmor
|
||||
|
||||
sudo mkdir -p $OVN_DATADIR
|
||||
if [[ "$OVN_BUILD_FROM_SOURCE" == "True" ]]; then
|
||||
mkdir -p $OVN_DATADIR
|
||||
else
|
||||
sudo mkdir -p $OVN_DATADIR
|
||||
fi
|
||||
mkdir -p $OVS_DATADIR
|
||||
|
||||
rm -f $OVS_DATADIR/*.db
|
||||
|
||||
Reference in New Issue
Block a user