Merge "[OVN] Fix Fedora/CentOS OVN configuration"

This commit is contained in:
Zuul 2021-04-19 12:34:43 +00:00 committed by Gerrit Code Review
commit e59b945a7d
1 changed files with 8 additions and 0 deletions

View File

@ -545,6 +545,14 @@ function configure_ovn {
fi
fi
# Erase the pre-set configurations from packages. DevStack will
# configure OVS and OVN accordingly for its use.
if [[ "$OVN_BUILD_FROM_SOURCE" == "False" ]] && is_fedora; then
sudo truncate -s 0 /etc/openvswitch/default.conf
sudo truncate -s 0 /etc/sysconfig/openvswitch
sudo truncate -s 0 /etc/sysconfig/ovn
fi
# Metadata
if is_service_enabled q-ovn-metadata-agent && is_service_enabled ovn-controller; then
sudo install -d -o $STACK_USER $NEUTRON_CONF_DIR