|
|
e7dd46 |
# Copyright (C) 2009, 2010, 2013, 2014 Nicira Networks, Inc.
|
|
|
773311 |
#
|
|
|
773311 |
# Copying and distribution of this file, with or without modification,
|
|
|
773311 |
# are permitted in any medium without royalty provided the copyright
|
|
|
773311 |
# notice and this notice are preserved. This file is offered as-is,
|
|
|
773311 |
# without warranty of any kind.
|
|
|
773311 |
#
|
|
|
773311 |
# If tests have to be skipped while building, specify the '--without check'
|
|
|
773311 |
# option. For example:
|
|
|
e7dd46 |
# rpmbuild -bb --without check rhel/openvswitch-fedora.spec
|
|
|
773311 |
|
|
|
773311 |
# This defines the base package name's version.
|
|
|
9219d1 |
|
|
|
e7dd46 |
%define pkgver 2.13
|
|
|
b224d9 |
%define pkgname ovn-2021
|
|
|
773311 |
|
|
|
773311 |
# If libcap-ng isn't available and there is no need for running OVS
|
|
|
773311 |
# as regular user, specify the '--without libcapng'
|
|
|
773311 |
%bcond_without libcapng
|
|
|
773311 |
|
|
|
773311 |
# Enable PIE, bz#955181
|
|
|
773311 |
%global _hardened_build 1
|
|
|
773311 |
|
|
|
e7dd46 |
# RHEL-7 doesn't define _rundir macro yet
|
|
|
773311 |
# Fedora 15 onwards uses /run as _rundir
|
|
|
773311 |
%if 0%{!?_rundir:1}
|
|
|
773311 |
%define _rundir /run
|
|
|
773311 |
%endif
|
|
|
773311 |
|
|
|
e7dd46 |
# Build python2 (that provides python) and python3 subpackages on Fedora
|
|
|
e7dd46 |
# Build only python3 (that provides python) subpackage on RHEL8
|
|
|
e7dd46 |
# Build only python subpackage on RHEL7
|
|
|
773311 |
%if 0%{?rhel} > 7 || 0%{?fedora}
|
|
|
773311 |
# On RHEL8 Sphinx is included in buildroot
|
|
|
773311 |
%global external_sphinx 1
|
|
|
773311 |
%else
|
|
|
773311 |
# Don't use external sphinx (RHV doesn't have optional repositories enabled)
|
|
|
773311 |
%global external_sphinx 0
|
|
|
773311 |
%endif
|
|
|
773311 |
|
|
|
773311 |
# We would see rpmlinit error - E: hardcoded-library-path in '% {_prefix}/lib'.
|
|
|
773311 |
# But there is no solution to fix this. Using {_lib} macro will solve the
|
|
|
773311 |
# rpmlink error, but will install the files in /usr/lib64/.
|
|
|
773311 |
# OVN pacemaker ocf script file is copied in /usr/lib/ocf/resource.d/ovn/
|
|
|
773311 |
# and we are not sure if pacemaker looks into this path to find the
|
|
|
773311 |
# OVN resource agent script.
|
|
|
773311 |
%global ovnlibdir %{_prefix}/lib
|
|
|
773311 |
|
|
|
773311 |
Name: %{pkgname}
|
|
|
773311 |
Summary: Open Virtual Network support
|
|
|
773311 |
Group: System Environment/Daemons
|
|
|
e7dd46 |
URL: http://www.ovn.org/
|
|
|
53d584 |
Version: 21.06.0
|
|
|
53d584 |
Release: 17%{?commit0:.%{date}git%{shortcommit0}}%{?dist}
|
|
|
773311 |
Provides: openvswitch%{pkgver}-ovn-common = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
|
773311 |
Obsoletes: openvswitch%{pkgver}-ovn-common < 2.11.0-1
|
|
|
773311 |
|
|
|
773311 |
# Nearly all of openvswitch is ASL 2.0. The bugtool is LGPLv2+, and the
|
|
|
773311 |
# lib/sflow*.[ch] files are SISSL
|
|
|
773311 |
License: ASL 2.0 and LGPLv2+ and SISSL
|
|
|
773311 |
|
|
|
e7dd46 |
# Always pull an upstream release, since this is what we rebase to.
|
|
|
e7dd46 |
Source: https://github.com/ovn-org/ovn/archive/v%{version}.tar.gz#/ovn-%{version}.tar.gz
|
|
|
773311 |
|
|
|
53d584 |
%define ovscommit e6ad4d8d9c9273f226ec9a993b64fccfb50bdf4c
|
|
|
53d584 |
%define ovsshortcommit e6ad4d8
|
|
|
773311 |
|
|
|
e7dd46 |
Source10: https://github.com/openvswitch/ovs/archive/%{ovscommit}.tar.gz#/openvswitch-%{ovsshortcommit}.tar.gz
|
|
|
e7dd46 |
%define ovsdir ovs-%{ovscommit}
|
|
|
773311 |
|
|
|
773311 |
%define docutilsver 0.12
|
|
|
773311 |
%define pygmentsver 1.4
|
|
|
773311 |
%define sphinxver 1.1.3
|
|
|
773311 |
Source100: https://pypi.io/packages/source/d/docutils/docutils-%{docutilsver}.tar.gz
|
|
|
773311 |
Source101: https://pypi.io/packages/source/P/Pygments/Pygments-%{pygmentsver}.tar.gz
|
|
|
773311 |
Source102: https://pypi.io/packages/source/S/Sphinx/Sphinx-%{sphinxver}.tar.gz
|
|
|
773311 |
|
|
|
773311 |
Source500: configlib.sh
|
|
|
773311 |
Source501: gen_config_group.sh
|
|
|
773311 |
Source502: set_config.sh
|
|
|
773311 |
|
|
|
773311 |
# Important: source503 is used as the actual copy file
|
|
|
773311 |
# @TODO: this causes a warning - fix it?
|
|
|
773311 |
Source504: arm64-armv8a-linuxapp-gcc-config
|
|
|
773311 |
Source505: ppc_64-power8-linuxapp-gcc-config
|
|
|
773311 |
Source506: x86_64-native-linuxapp-gcc-config
|
|
|
773311 |
|
|
|
e7dd46 |
Patch: ovn-%{version}.patch
|
|
|
9219d1 |
|
|
|
773311 |
# FIXME Sphinx is used to generate some manpages, unfortunately, on RHEL, it's
|
|
|
773311 |
# in the -optional repository and so we can't require it directly since RHV
|
|
|
773311 |
# doesn't have the -optional repository enabled and so TPS fails
|
|
|
773311 |
%if %{external_sphinx}
|
|
|
773311 |
BuildRequires: python3-sphinx
|
|
|
773311 |
%else
|
|
|
773311 |
# Sphinx dependencies
|
|
|
773311 |
BuildRequires: python-devel
|
|
|
773311 |
BuildRequires: python-setuptools
|
|
|
773311 |
#BuildRequires: python2-docutils
|
|
|
773311 |
BuildRequires: python-jinja2
|
|
|
773311 |
BuildRequires: python-nose
|
|
|
773311 |
#BuildRequires: python2-pygments
|
|
|
773311 |
# docutils dependencies
|
|
|
773311 |
BuildRequires: python-imaging
|
|
|
773311 |
# pygments dependencies
|
|
|
773311 |
BuildRequires: python-nose
|
|
|
773311 |
%endif
|
|
|
773311 |
|
|
|
773311 |
BuildRequires: gcc gcc-c++ make
|
|
|
773311 |
BuildRequires: autoconf automake libtool
|
|
|
773311 |
BuildRequires: systemd-units openssl openssl-devel
|
|
|
773311 |
BuildRequires: python3-devel python3-setuptools
|
|
|
773311 |
BuildRequires: desktop-file-utils
|
|
|
773311 |
BuildRequires: groff-base graphviz
|
|
|
773311 |
BuildRequires: unbound-devel
|
|
|
773311 |
|
|
|
773311 |
# make check dependencies
|
|
|
773311 |
BuildRequires: procps-ng
|
|
|
773311 |
%if 0%{?rhel} > 7 || 0%{?fedora}
|
|
|
773311 |
BuildRequires: python3-pyOpenSSL
|
|
|
773311 |
%endif
|
|
|
53d584 |
BuildRequires: tcpdump
|
|
|
773311 |
|
|
|
773311 |
%if %{with libcapng}
|
|
|
773311 |
BuildRequires: libcap-ng libcap-ng-devel
|
|
|
773311 |
%endif
|
|
|
773311 |
|
|
|
773311 |
Requires: hostname openssl iproute module-init-tools
|
|
|
773311 |
|
|
|
773311 |
Requires(post): systemd-units
|
|
|
773311 |
Requires(preun): systemd-units
|
|
|
773311 |
Requires(postun): systemd-units
|
|
|
773311 |
|
|
|
773311 |
# to skip running checks, pass --without check
|
|
|
5f9769 |
%bcond_without check
|
|
|
773311 |
|
|
|
773311 |
%description
|
|
|
773311 |
OVN, the Open Virtual Network, is a system to support virtual network
|
|
|
773311 |
abstraction. OVN complements the existing capabilities of OVS to add
|
|
|
773311 |
native support for virtual network abstractions, such as virtual L2 and L3
|
|
|
773311 |
overlays and security groups.
|
|
|
773311 |
|
|
|
773311 |
%package central
|
|
|
773311 |
Summary: Open Virtual Network support
|
|
|
773311 |
License: ASL 2.0
|
|
|
773311 |
Requires: %{pkgname}
|
|
|
773311 |
Requires: firewalld-filesystem
|
|
|
773311 |
Provides: openvswitch%{pkgver}-ovn-central = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
|
773311 |
Obsoletes: openvswitch%{pkgver}-ovn-central < 2.11.0-1
|
|
|
773311 |
|
|
|
773311 |
%description central
|
|
|
773311 |
OVN DB servers and ovn-northd running on a central node.
|
|
|
773311 |
|
|
|
773311 |
%package host
|
|
|
773311 |
Summary: Open Virtual Network support
|
|
|
773311 |
License: ASL 2.0
|
|
|
773311 |
Requires: %{pkgname}
|
|
|
773311 |
Requires: firewalld-filesystem
|
|
|
773311 |
Provides: openvswitch%{pkgver}-ovn-host = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
|
773311 |
Obsoletes: openvswitch%{pkgver}-ovn-host < 2.11.0-1
|
|
|
773311 |
|
|
|
773311 |
%description host
|
|
|
773311 |
OVN controller running on each host.
|
|
|
773311 |
|
|
|
773311 |
%package vtep
|
|
|
773311 |
Summary: Open Virtual Network support
|
|
|
773311 |
License: ASL 2.0
|
|
|
773311 |
Requires: %{pkgname}
|
|
|
773311 |
Provides: openvswitch%{pkgver}-ovn-vtep = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
|
773311 |
Obsoletes: openvswitch%{pkgver}-ovn-vtep < 2.11.0-1
|
|
|
773311 |
|
|
|
773311 |
%description vtep
|
|
|
773311 |
OVN vtep controller
|
|
|
773311 |
|
|
|
773311 |
%prep
|
|
|
773311 |
%if 0%{?commit0:1}
|
|
|
773311 |
%autosetup -n ovn-%{commit0} -a 10 -p 1
|
|
|
773311 |
%else
|
|
|
773311 |
%autosetup -n ovn-%{version} -a 10 -p 1
|
|
|
773311 |
%endif
|
|
|
773311 |
|
|
|
773311 |
%build
|
|
|
773311 |
%if 0%{?commit0:1}
|
|
|
773311 |
# fix the snapshot unreleased version to be the released one.
|
|
|
773311 |
sed -i.old -e "s/^AC_INIT(openvswitch,.*,/AC_INIT(openvswitch, %{version},/" configure.ac
|
|
|
773311 |
%endif
|
|
|
773311 |
./boot.sh
|
|
|
773311 |
|
|
|
773311 |
# OVN source code is now separate.
|
|
|
773311 |
# Build openvswitch first.
|
|
|
773311 |
# XXX Current openvswitch2.13 doesn't
|
|
|
773311 |
# use "2.13.0" for version. It's a commit hash
|
|
|
773311 |
pushd %{ovsdir}
|
|
|
773311 |
./boot.sh
|
|
|
773311 |
%configure \
|
|
|
773311 |
%if %{with libcapng}
|
|
|
773311 |
--enable-libcapng \
|
|
|
773311 |
%else
|
|
|
773311 |
--disable-libcapng \
|
|
|
773311 |
%endif
|
|
|
773311 |
--enable-ssl \
|
|
|
773311 |
--with-pkidir=%{_sharedstatedir}/openvswitch/pki
|
|
|
773311 |
|
|
|
773311 |
make %{?_smp_mflags}
|
|
|
773311 |
popd
|
|
|
773311 |
|
|
|
773311 |
# Build OVN.
|
|
|
773311 |
# XXX OVS version needs to be updated when ovs2.13 is updated.
|
|
|
773311 |
%configure \
|
|
|
773311 |
--with-ovs-source=$PWD/%{ovsdir} \
|
|
|
773311 |
%if %{with libcapng}
|
|
|
773311 |
--enable-libcapng \
|
|
|
773311 |
%else
|
|
|
773311 |
--disable-libcapng \
|
|
|
773311 |
%endif
|
|
|
773311 |
--enable-ssl \
|
|
|
773311 |
--with-pkidir=%{_sharedstatedir}/openvswitch/pki
|
|
|
773311 |
|
|
|
773311 |
make %{?_smp_mflags}
|
|
|
773311 |
|
|
|
773311 |
%install
|
|
|
773311 |
%make_install
|
|
|
773311 |
install -p -D -m 0644 \
|
|
|
773311 |
rhel/usr_share_ovn_scripts_systemd_sysconfig.template \
|
|
|
773311 |
$RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/ovn
|
|
|
773311 |
|
|
|
773311 |
for service in ovn-controller ovn-controller-vtep ovn-northd; do
|
|
|
773311 |
install -p -D -m 0644 \
|
|
|
773311 |
rhel/usr_lib_systemd_system_${service}.service \
|
|
|
773311 |
$RPM_BUILD_ROOT%{_unitdir}/${service}.service
|
|
|
773311 |
done
|
|
|
773311 |
|
|
|
773311 |
install -d -m 0755 $RPM_BUILD_ROOT/%{_sharedstatedir}/ovn
|
|
|
773311 |
|
|
|
773311 |
install -d $RPM_BUILD_ROOT%{ovnlibdir}/firewalld/services/
|
|
|
773311 |
install -p -m 0644 rhel/usr_lib_firewalld_services_ovn-central-firewall-service.xml \
|
|
|
773311 |
$RPM_BUILD_ROOT%{ovnlibdir}/firewalld/services/ovn-central-firewall-service.xml
|
|
|
773311 |
install -p -m 0644 rhel/usr_lib_firewalld_services_ovn-host-firewall-service.xml \
|
|
|
773311 |
$RPM_BUILD_ROOT%{ovnlibdir}/firewalld/services/ovn-host-firewall-service.xml
|
|
|
773311 |
|
|
|
773311 |
install -d -m 0755 $RPM_BUILD_ROOT%{ovnlibdir}/ocf/resource.d/ovn
|
|
|
773311 |
ln -s %{_datadir}/ovn/scripts/ovndb-servers.ocf \
|
|
|
773311 |
$RPM_BUILD_ROOT%{ovnlibdir}/ocf/resource.d/ovn/ovndb-servers
|
|
|
773311 |
|
|
|
773311 |
install -p -D -m 0644 rhel/etc_logrotate.d_ovn \
|
|
|
773311 |
$RPM_BUILD_ROOT/%{_sysconfdir}/logrotate.d/ovn
|
|
|
773311 |
|
|
|
773311 |
# remove unneeded files.
|
|
|
773311 |
rm -f $RPM_BUILD_ROOT%{_bindir}/ovs*
|
|
|
773311 |
rm -f $RPM_BUILD_ROOT%{_bindir}/vtep-ctl
|
|
|
773311 |
rm -f $RPM_BUILD_ROOT%{_sbindir}/ovs*
|
|
|
773311 |
rm -f $RPM_BUILD_ROOT%{_mandir}/man1/ovs*
|
|
|
773311 |
rm -f $RPM_BUILD_ROOT%{_mandir}/man5/ovs*
|
|
|
773311 |
rm -f $RPM_BUILD_ROOT%{_mandir}/man5/vtep*
|
|
|
773311 |
rm -f $RPM_BUILD_ROOT%{_mandir}/man7/ovs*
|
|
|
773311 |
rm -f $RPM_BUILD_ROOT%{_mandir}/man8/ovs*
|
|
|
773311 |
rm -f $RPM_BUILD_ROOT%{_mandir}/man8/vtep*
|
|
|
773311 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/ovn/python
|
|
|
773311 |
rm -f $RPM_BUILD_ROOT%{_datadir}/ovn/scripts/ovs*
|
|
|
773311 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/ovn/bugtool-plugins
|
|
|
773311 |
rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
|
|
|
773311 |
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
|
|
773311 |
rm -f $RPM_BUILD_ROOT%{_libdir}/pkgconfig/*.pc
|
|
|
773311 |
rm -f $RPM_BUILD_ROOT%{_includedir}/ovn/*
|
|
|
773311 |
rm -f $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d/ovs-appctl-bashcomp.bash
|
|
|
773311 |
rm -f $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d/ovs-vsctl-bashcomp.bash
|
|
|
773311 |
rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/openvswitch
|
|
|
773311 |
rm -f $RPM_BUILD_ROOT%{_datadir}/ovn/scripts/ovn-bugtool*
|
|
|
773311 |
rm -f $RPM_BUILD_ROOT/%{_bindir}/ovn-docker-overlay-driver \
|
|
|
773311 |
$RPM_BUILD_ROOT/%{_bindir}/ovn-docker-underlay-driver
|
|
|
773311 |
|
|
|
773311 |
%check
|
|
|
773311 |
%if %{with check}
|
|
|
773311 |
touch resolv.conf
|
|
|
773311 |
export OVS_RESOLV_CONF=$(pwd)/resolv.conf
|
|
|
53d584 |
if ! make check TESTSUITEFLAGS='%{_smp_mflags}'; then
|
|
|
773311 |
cat tests/testsuite.log
|
|
|
773311 |
if ! make check TESTSUITEFLAGS='--recheck'; then
|
|
|
773311 |
cat tests/testsuite.log
|
|
|
773311 |
# Presently a test case - "2796: ovn -- ovn-controller incremental processing"
|
|
|
773311 |
# is failing on aarch64 arch. Let's not exit for this arch
|
|
|
773311 |
# until we figure out why it is failing.
|
|
|
773311 |
# Test case 93: ovn.at:12105 ovn -- ACLs on Port Groups is failing
|
|
|
773311 |
# repeatedly on s390x. This needs to be investigated.
|
|
|
773311 |
%ifnarch aarch64
|
|
|
773311 |
%ifnarch ppc64le
|
|
|
773311 |
%ifnarch s390x
|
|
|
773311 |
exit 1
|
|
|
773311 |
%endif
|
|
|
773311 |
%endif
|
|
|
773311 |
%endif
|
|
|
773311 |
fi
|
|
|
773311 |
fi
|
|
|
773311 |
%endif
|
|
|
773311 |
|
|
|
773311 |
%clean
|
|
|
773311 |
rm -rf $RPM_BUILD_ROOT
|
|
|
773311 |
|
|
|
773311 |
%pre central
|
|
|
773311 |
if [ $1 -eq 1 ] ; then
|
|
|
773311 |
# Package install.
|
|
|
773311 |
/bin/systemctl status ovn-northd.service >/dev/null
|
|
|
773311 |
ovn_status=$?
|
|
|
773311 |
rpm -ql openvswitch-ovn-central > /dev/null
|
|
|
773311 |
if [[ "$?" = "0" && "$ovn_status" = "0" ]]; then
|
|
|
773311 |
# ovn-northd service is running which means old openvswitch-ovn-central
|
|
|
773311 |
# is already installed and it will be cleaned up. So start ovn-northd
|
|
|
773311 |
# service when posttrans central is called.
|
|
|
773311 |
touch %{_localstatedir}/lib/rpm-state/ovn-northd
|
|
|
773311 |
fi
|
|
|
773311 |
fi
|
|
|
773311 |
|
|
|
773311 |
%pre host
|
|
|
773311 |
if [ $1 -eq 1 ] ; then
|
|
|
773311 |
# Package install.
|
|
|
773311 |
/bin/systemctl status ovn-controller.service >/dev/null
|
|
|
773311 |
ovn_status=$?
|
|
|
773311 |
rpm -ql openvswitch-ovn-host > /dev/null
|
|
|
773311 |
if [[ "$?" = "0" && "$ovn_status" = "0" ]]; then
|
|
|
773311 |
# ovn-controller service is running which means old
|
|
|
773311 |
# openvswitch-ovn-host is installed and it will be cleaned up. So
|
|
|
773311 |
# start ovn-controller service when posttrans host is called.
|
|
|
773311 |
touch %{_localstatedir}/lib/rpm-state/ovn-controller
|
|
|
773311 |
fi
|
|
|
773311 |
fi
|
|
|
773311 |
|
|
|
773311 |
%pre vtep
|
|
|
773311 |
if [ $1 -eq 1 ] ; then
|
|
|
773311 |
# Package install.
|
|
|
773311 |
/bin/systemctl status ovn-controller-vtep.service >/dev/null
|
|
|
773311 |
ovn_status=$?
|
|
|
773311 |
rpm -ql openvswitch-ovn-vtep > /dev/null
|
|
|
773311 |
if [[ "$?" = "0" && "$ovn_status" = "0" ]]; then
|
|
|
773311 |
# ovn-controller-vtep service is running which means old
|
|
|
773311 |
# openvswitch-ovn-vtep is installed and it will be cleaned up. So
|
|
|
773311 |
# start ovn-controller-vtep service when posttrans host is called.
|
|
|
773311 |
touch %{_localstatedir}/lib/rpm-state/ovn-controller-vtep
|
|
|
773311 |
fi
|
|
|
773311 |
fi
|
|
|
773311 |
|
|
|
773311 |
%preun central
|
|
|
773311 |
%if 0%{?systemd_preun:1}
|
|
|
773311 |
%systemd_preun ovn-northd.service
|
|
|
773311 |
%else
|
|
|
773311 |
if [ $1 -eq 0 ] ; then
|
|
|
773311 |
# Package removal, not upgrade
|
|
|
773311 |
/bin/systemctl --no-reload disable ovn-northd.service >/dev/null 2>&1 || :
|
|
|
773311 |
/bin/systemctl stop ovn-northd.service >/dev/null 2>&1 || :
|
|
|
773311 |
fi
|
|
|
773311 |
%endif
|
|
|
773311 |
|
|
|
773311 |
%preun host
|
|
|
773311 |
%if 0%{?systemd_preun:1}
|
|
|
773311 |
%systemd_preun ovn-controller.service
|
|
|
773311 |
%else
|
|
|
773311 |
if [ $1 -eq 0 ] ; then
|
|
|
773311 |
# Package removal, not upgrade
|
|
|
773311 |
/bin/systemctl --no-reload disable ovn-controller.service >/dev/null 2>&1 || :
|
|
|
773311 |
/bin/systemctl stop ovn-controller.service >/dev/null 2>&1 || :
|
|
|
773311 |
fi
|
|
|
773311 |
%endif
|
|
|
773311 |
|
|
|
773311 |
%preun vtep
|
|
|
773311 |
%if 0%{?systemd_preun:1}
|
|
|
773311 |
%systemd_preun ovn-controller-vtep.service
|
|
|
773311 |
%else
|
|
|
773311 |
if [ $1 -eq 0 ] ; then
|
|
|
773311 |
# Package removal, not upgrade
|
|
|
773311 |
/bin/systemctl --no-reload disable ovn-controller-vtep.service >/dev/null 2>&1 || :
|
|
|
773311 |
/bin/systemctl stop ovn-controller-vtep.service >/dev/null 2>&1 || :
|
|
|
773311 |
fi
|
|
|
773311 |
%endif
|
|
|
773311 |
|
|
|
773311 |
%post
|
|
|
773311 |
%if %{with libcapng}
|
|
|
773311 |
if [ $1 -eq 1 ]; then
|
|
|
773311 |
sed -i 's:^#OVN_USER_ID=:OVN_USER_ID=:' %{_sysconfdir}/sysconfig/ovn
|
|
|
773311 |
sed -i 's:\(.*su\).*:\1 openvswitch openvswitch:' %{_sysconfdir}/logrotate.d/ovn
|
|
|
773311 |
fi
|
|
|
773311 |
%endif
|
|
|
773311 |
|
|
|
773311 |
%post central
|
|
|
773311 |
%if 0%{?systemd_post:1}
|
|
|
773311 |
%systemd_post ovn-northd.service
|
|
|
773311 |
%else
|
|
|
773311 |
# Package install, not upgrade
|
|
|
773311 |
if [ $1 -eq 1 ]; then
|
|
|
773311 |
/bin/systemctl daemon-reload >dev/null || :
|
|
|
773311 |
fi
|
|
|
773311 |
%endif
|
|
|
773311 |
|
|
|
773311 |
%post host
|
|
|
773311 |
%if 0%{?systemd_post:1}
|
|
|
773311 |
%systemd_post ovn-controller.service
|
|
|
773311 |
%else
|
|
|
773311 |
# Package install, not upgrade
|
|
|
773311 |
if [ $1 -eq 1 ]; then
|
|
|
773311 |
/bin/systemctl daemon-reload >dev/null || :
|
|
|
773311 |
fi
|
|
|
773311 |
%endif
|
|
|
773311 |
|
|
|
773311 |
%post vtep
|
|
|
773311 |
%if 0%{?systemd_post:1}
|
|
|
773311 |
%systemd_post ovn-controller-vtep.service
|
|
|
773311 |
%else
|
|
|
773311 |
# Package install, not upgrade
|
|
|
773311 |
if [ $1 -eq 1 ]; then
|
|
|
773311 |
/bin/systemctl daemon-reload >dev/null || :
|
|
|
773311 |
fi
|
|
|
773311 |
%endif
|
|
|
773311 |
|
|
|
773311 |
%postun
|
|
|
773311 |
|
|
|
773311 |
%postun central
|
|
|
773311 |
%if 0%{?systemd_postun_with_restart:1}
|
|
|
773311 |
%systemd_postun_with_restart ovn-northd.service
|
|
|
773311 |
%else
|
|
|
773311 |
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
|
|
773311 |
if [ "$1" -ge "1" ] ; then
|
|
|
773311 |
# Package upgrade, not uninstall
|
|
|
773311 |
/bin/systemctl try-restart ovn-northd.service >/dev/null 2>&1 || :
|
|
|
773311 |
fi
|
|
|
773311 |
%endif
|
|
|
773311 |
|
|
|
773311 |
%postun host
|
|
|
773311 |
%if 0%{?systemd_postun_with_restart:1}
|
|
|
773311 |
%systemd_postun_with_restart ovn-controller.service
|
|
|
773311 |
%else
|
|
|
773311 |
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
|
|
773311 |
if [ "$1" -ge "1" ] ; then
|
|
|
773311 |
# Package upgrade, not uninstall
|
|
|
773311 |
/bin/systemctl try-restart ovn-controller.service >/dev/null 2>&1 || :
|
|
|
773311 |
fi
|
|
|
773311 |
%endif
|
|
|
773311 |
|
|
|
773311 |
%postun vtep
|
|
|
773311 |
%if 0%{?systemd_postun_with_restart:1}
|
|
|
773311 |
%systemd_postun_with_restart ovn-controller-vtep.service
|
|
|
773311 |
%else
|
|
|
773311 |
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
|
|
773311 |
if [ "$1" -ge "1" ] ; then
|
|
|
773311 |
# Package upgrade, not uninstall
|
|
|
773311 |
/bin/systemctl try-restart ovn-controller-vtep.service >/dev/null 2>&1 || :
|
|
|
773311 |
fi
|
|
|
773311 |
%endif
|
|
|
773311 |
|
|
|
773311 |
%posttrans central
|
|
|
773311 |
if [ $1 -eq 1 ]; then
|
|
|
773311 |
# Package install, not upgrade
|
|
|
773311 |
if [ -e %{_localstatedir}/lib/rpm-state/ovn-northd ]; then
|
|
|
773311 |
rm %{_localstatedir}/lib/rpm-state/ovn-northd
|
|
|
773311 |
/bin/systemctl start ovn-northd.service >/dev/null 2>&1 || :
|
|
|
773311 |
fi
|
|
|
773311 |
fi
|
|
|
773311 |
|
|
|
773311 |
|
|
|
773311 |
%posttrans host
|
|
|
773311 |
if [ $1 -eq 1 ]; then
|
|
|
773311 |
# Package install, not upgrade
|
|
|
773311 |
if [ -e %{_localstatedir}/lib/rpm-state/ovn-controller ]; then
|
|
|
773311 |
rm %{_localstatedir}/lib/rpm-state/ovn-controller
|
|
|
773311 |
/bin/systemctl start ovn-controller.service >/dev/null 2>&1 || :
|
|
|
773311 |
fi
|
|
|
773311 |
fi
|
|
|
773311 |
|
|
|
773311 |
%posttrans vtep
|
|
|
773311 |
if [ $1 -eq 1 ]; then
|
|
|
773311 |
# Package install, not upgrade
|
|
|
773311 |
if [ -e %{_localstatedir}/lib/rpm-state/ovn-controller-vtep ]; then
|
|
|
773311 |
rm %{_localstatedir}/lib/rpm-state/ovn-controller-vtep
|
|
|
773311 |
/bin/systemctl start ovn-controller-vtep.service >/dev/null 2>&1 || :
|
|
|
773311 |
fi
|
|
|
773311 |
fi
|
|
|
773311 |
|
|
|
773311 |
%files
|
|
|
773311 |
%{_bindir}/ovn-nbctl
|
|
|
773311 |
%{_bindir}/ovn-sbctl
|
|
|
773311 |
%{_bindir}/ovn-trace
|
|
|
773311 |
%{_bindir}/ovn-detrace
|
|
|
773311 |
%{_bindir}/ovn-appctl
|
|
|
773311 |
%{_bindir}/ovn-ic-nbctl
|
|
|
773311 |
%{_bindir}/ovn-ic-sbctl
|
|
|
773311 |
%dir %{_datadir}/ovn/
|
|
|
773311 |
%dir %{_datadir}/ovn/scripts/
|
|
|
773311 |
%{_datadir}/ovn/scripts/ovn-ctl
|
|
|
773311 |
%{_datadir}/ovn/scripts/ovn-lib
|
|
|
773311 |
%{_datadir}/ovn/scripts/ovndb-servers.ocf
|
|
|
773311 |
%{_mandir}/man8/ovn-ctl.8*
|
|
|
773311 |
%{_mandir}/man8/ovn-appctl.8*
|
|
|
773311 |
%{_mandir}/man8/ovn-nbctl.8*
|
|
|
773311 |
%{_mandir}/man8/ovn-ic-nbctl.8*
|
|
|
773311 |
%{_mandir}/man8/ovn-trace.8*
|
|
|
773311 |
%{_mandir}/man1/ovn-detrace.1*
|
|
|
773311 |
%{_mandir}/man7/ovn-architecture.7*
|
|
|
773311 |
%{_mandir}/man8/ovn-sbctl.8*
|
|
|
773311 |
%{_mandir}/man8/ovn-ic-sbctl.8*
|
|
|
773311 |
%{_mandir}/man5/ovn-nb.5*
|
|
|
773311 |
%{_mandir}/man5/ovn-ic-nb.5*
|
|
|
773311 |
%{_mandir}/man5/ovn-sb.5*
|
|
|
773311 |
%{_mandir}/man5/ovn-ic-sb.5*
|
|
|
773311 |
%dir %{ovnlibdir}/ocf/resource.d/ovn/
|
|
|
773311 |
%{ovnlibdir}/ocf/resource.d/ovn/ovndb-servers
|
|
|
773311 |
%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/logrotate.d/ovn
|
|
|
773311 |
%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/sysconfig/ovn
|
|
|
773311 |
|
|
|
773311 |
%files central
|
|
|
773311 |
%{_bindir}/ovn-northd
|
|
|
773311 |
%{_bindir}/ovn-ic
|
|
|
773311 |
%{_mandir}/man8/ovn-northd.8*
|
|
|
773311 |
%{_mandir}/man8/ovn-ic.8*
|
|
|
773311 |
%{_datadir}/ovn/ovn-nb.ovsschema
|
|
|
773311 |
%{_datadir}/ovn/ovn-ic-nb.ovsschema
|
|
|
773311 |
%{_datadir}/ovn/ovn-sb.ovsschema
|
|
|
773311 |
%{_datadir}/ovn/ovn-ic-sb.ovsschema
|
|
|
773311 |
%{_unitdir}/ovn-northd.service
|
|
|
773311 |
%{ovnlibdir}/firewalld/services/ovn-central-firewall-service.xml
|
|
|
773311 |
|
|
|
773311 |
%files host
|
|
|
773311 |
%{_bindir}/ovn-controller
|
|
|
773311 |
%{_mandir}/man8/ovn-controller.8*
|
|
|
773311 |
%{_unitdir}/ovn-controller.service
|
|
|
773311 |
%{ovnlibdir}/firewalld/services/ovn-host-firewall-service.xml
|
|
|
773311 |
|
|
|
773311 |
%files vtep
|
|
|
773311 |
%{_bindir}/ovn-controller-vtep
|
|
|
773311 |
%{_mandir}/man8/ovn-controller-vtep.8*
|
|
|
773311 |
%{_unitdir}/ovn-controller-vtep.service
|
|
|
773311 |
|
|
|
773311 |
%changelog
|
|
|
53d584 |
* Tue Jul 27 2021 Numan Siddique <numans@ovn.org> - 21.06.0-17
|
|
|
53d584 |
- ovn-controller: Split logical flow and physical flow processing. (#1986484)
|
|
|
53d584 |
[Gerrit: 6e1e90064ad1f5769fdc96e3b735ee236c30b7e2]
|
|
|
53d584 |
[Upstream: ceb12c9190a124c70bc938e8e1bea17612b498be]
|
|
|
53d584 |
|
|
|
53d584 |
* Tue Jul 27 2021 Dumitru Ceara <dceara@redhat.com> - 21.06.0-16
|
|
|
53d584 |
- ovn.at: Fix "Symmetric IPv6 ECMP reply flows" test.
|
|
|
53d584 |
[Gerrit: 801f6c69c3bb45f981135ac6c197fdbd3f18118d]
|
|
|
53d584 |
[Upstream: 4e6c498068dc4fa9546d3661f78f0a42e99c74bb]
|
|
|
53d584 |
|
|
|
53d584 |
* Tue Jul 27 2021 Dumitru Ceara <dceara@redhat.com> - 21.06.0-15
|
|
|
53d584 |
- ovn-controller: Handle DNAT/no-NAT conntrack tuple collisions. (#1939676)
|
|
|
53d584 |
[Gerrit: abfd62cb228b7d311ae7cae18adfe9cfcf68affc]
|
|
|
53d584 |
[Upstream: 58683a4271e6a885f2f2aea27f3df88e69a5c388]
|
|
|
53d584 |
|
|
|
53d584 |
* Tue Jul 27 2021 Dumitru Ceara <dceara@redhat.com> - 21.06.0-14
|
|
|
53d584 |
- ovn-controller: Detect OVS datapath capabilities.
|
|
|
53d584 |
[Gerrit: ca1df0396e6e6eb016c3cad82db7c49cc05ec99a]
|
|
|
53d584 |
[Upstream: 56e2cd3a2f06b79b7d57cc8637fc0d258652aff5]
|
|
|
53d584 |
|
|
|
53d584 |
* Mon Jul 26 2021 Lorenzo Bianconi <lorenzo.bianconi@redhat.com> - 21.06.0-13
|
|
|
53d584 |
- northd: do not centralize traffic for unclaimed virtual ports
|
|
|
53d584 |
[Gerrit: 5b6826906a76779b527d72d1c49d211ce492e62e]
|
|
|
9993d9 |
[Upstream: N/A]
|
|
|
9993d9 |
|
|
|
53d584 |
* Thu Jul 15 2021 Ihar Hrachyshka <ihrachys@redhat.com> - 21.06.0-12
|
|
|
53d584 |
- Don't suppress localport traffic directed to external port (#1974062)
|
|
|
53d584 |
[Gerrit: 330e6e7400e1d5e4e6ef4fc6446eeaa945ac6a13]
|
|
|
53d584 |
[Upstream: 1148580290d0ace803f20aeaa0241dd51c100630]
|
|
|
53d584 |
|
|
|
53d584 |
* Thu Jul 15 2021 Dumitru Ceara <dceara@redhat.com> - 21.06.0-11
|
|
|
53d584 |
- northd: Fix multicast table full comparison. (#1979870)
|
|
|
53d584 |
[Gerrit: 38f44df1b8a0ed1ebb86183de29d9e5c3423abdb]
|
|
|
53d584 |
[Upstream: 969c98d7297b526c704c6fd2a7138f584f9ad577]
|
|
|
53d584 |
|
|
|
53d584 |
* Thu Jul 15 2021 Dumitru Ceara <dceara@redhat.com> - 21.06.0-10
|
|
|
53d584 |
- northd-ddlog: Fix IP family match for DNAT flows.
|
|
|
53d584 |
[Gerrit: 518ea2e15df2c77fc19afe74b68d616983638743]
|
|
|
53d584 |
[Upstream: 38467229905bdf09a3afa325eaa7a98183f44c72]
|
|
|
53d584 |
|
|
|
53d584 |
* Thu Jul 15 2021 Ihar Hrachyshka <ihrachys@redhat.com> - 21.06.0-9
|
|
|
53d584 |
- Disable ARP/NA responders for vlan-passthru switches
|
|
|
53d584 |
[Gerrit: 56fbcfaf71d9a6df0b4cdee583c8d17ca7a82aab]
|
|
|
53d584 |
[Upstream: ea57f666f6eef1eb1d578f0e975baa14c5d23ec9]
|
|
|
53d584 |
|
|
|
53d584 |
* Thu Jul 15 2021 Ben Pfaff <blp@ovn.org> - 21.06.0-8
|
|
|
53d584 |
- tests: Fix "vlan traffic for external network with distributed..."
|
|
|
53d584 |
[Gerrit: ca26e77c4206a39ae6eab4a1d430ef04b726b640]
|
|
|
53d584 |
[Upstream: 5453cc8ca5535e3f33d1b191929e1a3c9ad30f20]
|
|
|
53d584 |
|
|
|
53d584 |
* Thu Jul 15 2021 Dumitru Ceara <dceara@redhat.com> - 21.06.0-7
|
|
|
53d584 |
- ovn-controller: Fix port group I-P when they contain non-vif ports.
|
|
|
53d584 |
[Gerrit: 3c7f29238c889b248155cbb2c866c0adbf8b46c1]
|
|
|
53d584 |
[Upstream: 1bb32e0f8146d7f4fff84af5e3d2836ebe939e04]
|
|
|
53d584 |
|
|
|
53d584 |
* Thu Jul 15 2021 Numan Siddique <numans@ovn.org> - 21.06.0-6
|
|
|
53d584 |
- system-tests: Fix the test file.
|
|
|
53d584 |
[Gerrit: 85337cec3f2e5967a14afc5a552ac17dff6c15f6]
|
|
|
53d584 |
[Upstream: 9c1978300fa12709e01df07ed8403d8ad43f61fb]
|
|
|
53d584 |
|
|
|
53d584 |
* Thu Jul 15 2021 Mark Michelson <mmichels@redhat.com> - 21.06.0-5
|
|
|
53d584 |
- northd: Swap src and dst eth addresses in router egress loop.
|
|
|
53d584 |
[Gerrit: 86207fcac41b639d14de05e1b0965ad9d8293218]
|
|
|
53d584 |
[Upstream: 9be470dc69daf16ac1fbbe13cc295f46862226ad]
|
|
|
53d584 |
|
|
|
53d584 |
* Tue Jun 29 2021 Han Zhou <hzhou@ovn.org> - 21.06.0-4
|
|
|
53d584 |
- ovn.at: Fix test "virtual ports -- ovn-northd-ddlog".
|
|
|
53d584 |
[Gerrit: d61cfca4cadca33e598ba1a23cfdbe81a72d3501]
|
|
|
53d584 |
[Upstream: 9e3404e03620f183adc4f05db13bf5a38618b757]
|
|
|
773311 |
|