|
|
2141b4 |
# Copyright (C) 2009, 2010, 2013, 2014 Nicira Networks, Inc.
|
|
|
2141b4 |
#
|
|
|
2141b4 |
# Copying and distribution of this file, with or without modification,
|
|
|
2141b4 |
# are permitted in any medium without royalty provided the copyright
|
|
|
2141b4 |
# notice and this notice are preserved. This file is offered as-is,
|
|
|
2141b4 |
# without warranty of any kind.
|
|
|
2141b4 |
#
|
|
|
2141b4 |
# If tests have to be skipped while building, specify the '--without check'
|
|
|
2141b4 |
# option. For example:
|
|
|
2141b4 |
# rpmbuild -bb --without check rhel/openvswitch-fedora.spec
|
|
|
2141b4 |
|
|
|
2141b4 |
# This defines the base package name's version.
|
|
|
2141b4 |
|
|
|
2141b4 |
%define pkgver 2.13
|
|
|
232bcb |
%define pkgname ovn23.09
|
|
|
2141b4 |
|
|
|
2141b4 |
# If libcap-ng isn't available and there is no need for running OVS
|
|
|
2141b4 |
# as regular user, specify the '--without libcapng'
|
|
|
2141b4 |
%bcond_without libcapng
|
|
|
2141b4 |
|
|
|
2141b4 |
# Enable PIE, bz#955181
|
|
|
2141b4 |
%global _hardened_build 1
|
|
|
2141b4 |
|
|
|
2141b4 |
# RHEL-7 doesn't define _rundir macro yet
|
|
|
2141b4 |
# Fedora 15 onwards uses /run as _rundir
|
|
|
2141b4 |
%if 0%{!?_rundir:1}
|
|
|
2141b4 |
%define _rundir /run
|
|
|
2141b4 |
%endif
|
|
|
2141b4 |
|
|
|
2141b4 |
# Build python2 (that provides python) and python3 subpackages on Fedora
|
|
|
2141b4 |
# Build only python3 (that provides python) subpackage on RHEL8
|
|
|
2141b4 |
# Build only python subpackage on RHEL7
|
|
|
2141b4 |
%if 0%{?rhel} > 7 || 0%{?fedora}
|
|
|
2141b4 |
# On RHEL8 Sphinx is included in buildroot
|
|
|
2141b4 |
%global external_sphinx 1
|
|
|
2141b4 |
%else
|
|
|
2141b4 |
# Don't use external sphinx (RHV doesn't have optional repositories enabled)
|
|
|
2141b4 |
%global external_sphinx 0
|
|
|
2141b4 |
%endif
|
|
|
2141b4 |
|
|
|
2141b4 |
# We would see rpmlinit error - E: hardcoded-library-path in '% {_prefix}/lib'.
|
|
|
2141b4 |
# But there is no solution to fix this. Using {_lib} macro will solve the
|
|
|
2141b4 |
# rpmlink error, but will install the files in /usr/lib64/.
|
|
|
2141b4 |
# OVN pacemaker ocf script file is copied in /usr/lib/ocf/resource.d/ovn/
|
|
|
2141b4 |
# and we are not sure if pacemaker looks into this path to find the
|
|
|
2141b4 |
# OVN resource agent script.
|
|
|
2141b4 |
%global ovnlibdir %{_prefix}/lib
|
|
|
2141b4 |
|
|
|
2141b4 |
Name: %{pkgname}
|
|
|
2141b4 |
Summary: Open Virtual Network support
|
|
|
2141b4 |
Group: System Environment/Daemons
|
|
|
2141b4 |
URL: http://www.ovn.org/
|
|
|
b6c79e |
Version: 23.09.4
|
|
|
b6c79e |
Release: 28%{?commit0:.%{date}git%{shortcommit0}}%{?dist}
|
|
|
2141b4 |
Provides: openvswitch%{pkgver}-ovn-common = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
|
2141b4 |
Obsoletes: openvswitch%{pkgver}-ovn-common < 2.11.0-1
|
|
|
2141b4 |
|
|
|
2141b4 |
# Nearly all of openvswitch is ASL 2.0. The bugtool is LGPLv2+, and the
|
|
|
2141b4 |
# lib/sflow*.[ch] files are SISSL
|
|
|
2141b4 |
License: ASL 2.0 and LGPLv2+ and SISSL
|
|
|
2141b4 |
|
|
|
b6c79e |
%define ovncommit 6b204436d028d49765929671b20b7f4bc0248a52
|
|
|
31b994 |
|
|
|
2141b4 |
# Always pull an upstream release, since this is what we rebase to.
|
|
|
31b994 |
Source: https://github.com/ovn-org/ovn/archive/%{ovncommit}.tar.gz#/ovn-%{version}.tar.gz
|
|
|
2141b4 |
|
|
|
b6c79e |
%define ovscommit c88a35fc29f0c0eb6189853bfc738c2100d4860f
|
|
|
b6c79e |
%define ovsshortcommit c88a35f
|
|
|
2141b4 |
|
|
|
2141b4 |
Source10: https://github.com/openvswitch/ovs/archive/%{ovscommit}.tar.gz#/openvswitch-%{ovsshortcommit}.tar.gz
|
|
|
2141b4 |
%define ovsdir ovs-%{ovscommit}
|
|
|
2141b4 |
|
|
|
2141b4 |
%define docutilsver 0.12
|
|
|
2141b4 |
%define pygmentsver 1.4
|
|
|
2141b4 |
%define sphinxver 1.1.3
|
|
|
2141b4 |
Source100: https://pypi.io/packages/source/d/docutils/docutils-%{docutilsver}.tar.gz
|
|
|
2141b4 |
Source101: https://pypi.io/packages/source/P/Pygments/Pygments-%{pygmentsver}.tar.gz
|
|
|
2141b4 |
Source102: https://pypi.io/packages/source/S/Sphinx/Sphinx-%{sphinxver}.tar.gz
|
|
|
2141b4 |
|
|
|
2141b4 |
Source500: configlib.sh
|
|
|
2141b4 |
Source501: gen_config_group.sh
|
|
|
2141b4 |
Source502: set_config.sh
|
|
|
2141b4 |
|
|
|
2141b4 |
# Important: source503 is used as the actual copy file
|
|
|
2141b4 |
# @TODO: this causes a warning - fix it?
|
|
|
2141b4 |
Source504: arm64-armv8a-linuxapp-gcc-config
|
|
|
2141b4 |
Source505: ppc_64-power8-linuxapp-gcc-config
|
|
|
2141b4 |
Source506: x86_64-native-linuxapp-gcc-config
|
|
|
2141b4 |
|
|
|
2141b4 |
Patch: %{pkgname}.patch
|
|
|
2141b4 |
|
|
|
2141b4 |
# FIXME Sphinx is used to generate some manpages, unfortunately, on RHEL, it's
|
|
|
2141b4 |
# in the -optional repository and so we can't require it directly since RHV
|
|
|
2141b4 |
# doesn't have the -optional repository enabled and so TPS fails
|
|
|
2141b4 |
%if %{external_sphinx}
|
|
|
2141b4 |
BuildRequires: python3-sphinx
|
|
|
2141b4 |
%else
|
|
|
2141b4 |
# Sphinx dependencies
|
|
|
2141b4 |
BuildRequires: python-devel
|
|
|
2141b4 |
BuildRequires: python-setuptools
|
|
|
2141b4 |
#BuildRequires: python2-docutils
|
|
|
2141b4 |
BuildRequires: python-jinja2
|
|
|
2141b4 |
BuildRequires: python-nose
|
|
|
2141b4 |
#BuildRequires: python2-pygments
|
|
|
2141b4 |
# docutils dependencies
|
|
|
2141b4 |
BuildRequires: python-imaging
|
|
|
2141b4 |
# pygments dependencies
|
|
|
2141b4 |
BuildRequires: python-nose
|
|
|
2141b4 |
%endif
|
|
|
2141b4 |
|
|
|
2141b4 |
BuildRequires: gcc gcc-c++ make
|
|
|
2141b4 |
BuildRequires: autoconf automake libtool
|
|
|
2141b4 |
BuildRequires: systemd-units openssl openssl-devel
|
|
|
2141b4 |
BuildRequires: python3-devel python3-setuptools
|
|
|
2141b4 |
BuildRequires: desktop-file-utils
|
|
|
2141b4 |
BuildRequires: groff-base graphviz
|
|
|
2141b4 |
BuildRequires: unbound-devel
|
|
|
2141b4 |
|
|
|
2141b4 |
# make check dependencies
|
|
|
2141b4 |
BuildRequires: procps-ng
|
|
|
2141b4 |
%if 0%{?rhel} == 8 || 0%{?fedora}
|
|
|
2141b4 |
BuildRequires: python3-pyOpenSSL
|
|
|
2141b4 |
%endif
|
|
|
2141b4 |
BuildRequires: tcpdump
|
|
|
2141b4 |
|
|
|
2141b4 |
%if %{with libcapng}
|
|
|
2141b4 |
BuildRequires: libcap-ng libcap-ng-devel
|
|
|
2141b4 |
%endif
|
|
|
2141b4 |
|
|
|
141f98 |
%if 0%{?rhel} == 9
|
|
|
232bcb |
BuildRequires: python3-scapy
|
|
|
141f98 |
%endif
|
|
|
232bcb |
|
|
|
2141b4 |
Requires: hostname openssl iproute module-init-tools
|
|
|
2141b4 |
|
|
|
2141b4 |
Requires(post): systemd-units
|
|
|
2141b4 |
Requires(preun): systemd-units
|
|
|
2141b4 |
Requires(postun): systemd-units
|
|
|
2141b4 |
|
|
|
2141b4 |
# to skip running checks, pass --without check
|
|
|
2141b4 |
%bcond_without check
|
|
|
2141b4 |
|
|
|
2141b4 |
%description
|
|
|
2141b4 |
OVN, the Open Virtual Network, is a system to support virtual network
|
|
|
2141b4 |
abstraction. OVN complements the existing capabilities of OVS to add
|
|
|
2141b4 |
native support for virtual network abstractions, such as virtual L2 and L3
|
|
|
2141b4 |
overlays and security groups.
|
|
|
2141b4 |
|
|
|
2141b4 |
%package central
|
|
|
2141b4 |
Summary: Open Virtual Network support
|
|
|
2141b4 |
License: ASL 2.0
|
|
|
2141b4 |
Requires: %{pkgname}
|
|
|
2141b4 |
Requires: firewalld-filesystem
|
|
|
2141b4 |
Provides: openvswitch%{pkgver}-ovn-central = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
|
2141b4 |
Obsoletes: openvswitch%{pkgver}-ovn-central < 2.11.0-1
|
|
|
2141b4 |
|
|
|
2141b4 |
%description central
|
|
|
2141b4 |
OVN DB servers and ovn-northd running on a central node.
|
|
|
2141b4 |
|
|
|
2141b4 |
%package host
|
|
|
2141b4 |
Summary: Open Virtual Network support
|
|
|
2141b4 |
License: ASL 2.0
|
|
|
2141b4 |
Requires: %{pkgname}
|
|
|
2141b4 |
Requires: firewalld-filesystem
|
|
|
2141b4 |
Provides: openvswitch%{pkgver}-ovn-host = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
|
2141b4 |
Obsoletes: openvswitch%{pkgver}-ovn-host < 2.11.0-1
|
|
|
2141b4 |
|
|
|
2141b4 |
%description host
|
|
|
2141b4 |
OVN controller running on each host.
|
|
|
2141b4 |
|
|
|
2141b4 |
%package vtep
|
|
|
2141b4 |
Summary: Open Virtual Network support
|
|
|
2141b4 |
License: ASL 2.0
|
|
|
2141b4 |
Requires: %{pkgname}
|
|
|
2141b4 |
Provides: openvswitch%{pkgver}-ovn-vtep = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
|
2141b4 |
Obsoletes: openvswitch%{pkgver}-ovn-vtep < 2.11.0-1
|
|
|
2141b4 |
|
|
|
2141b4 |
%description vtep
|
|
|
2141b4 |
OVN vtep controller
|
|
|
2141b4 |
|
|
|
2141b4 |
%prep
|
|
|
31b994 |
%autosetup -n ovn-%{ovncommit} -a 10 -p 1
|
|
|
2141b4 |
|
|
|
2141b4 |
%build
|
|
|
2141b4 |
%if 0%{?commit0:1}
|
|
|
2141b4 |
# fix the snapshot unreleased version to be the released one.
|
|
|
2141b4 |
sed -i.old -e "s/^AC_INIT(openvswitch,.*,/AC_INIT(openvswitch, %{version},/" configure.ac
|
|
|
2141b4 |
%endif
|
|
|
2141b4 |
./boot.sh
|
|
|
2141b4 |
|
|
|
2141b4 |
# OVN source code is now separate.
|
|
|
2141b4 |
# Build openvswitch first.
|
|
|
2141b4 |
# XXX Current openvswitch2.13 doesn't
|
|
|
2141b4 |
# use "2.13.0" for version. It's a commit hash
|
|
|
2141b4 |
pushd %{ovsdir}
|
|
|
2141b4 |
./boot.sh
|
|
|
2141b4 |
%configure \
|
|
|
2141b4 |
%if %{with libcapng}
|
|
|
2141b4 |
--enable-libcapng \
|
|
|
2141b4 |
%else
|
|
|
2141b4 |
--disable-libcapng \
|
|
|
2141b4 |
%endif
|
|
|
2141b4 |
--enable-ssl \
|
|
|
2141b4 |
--with-pkidir=%{_sharedstatedir}/openvswitch/pki
|
|
|
2141b4 |
|
|
|
2141b4 |
make %{?_smp_mflags}
|
|
|
2141b4 |
popd
|
|
|
2141b4 |
|
|
|
2141b4 |
# Build OVN.
|
|
|
2141b4 |
# XXX OVS version needs to be updated when ovs2.13 is updated.
|
|
|
2141b4 |
%configure \
|
|
|
2141b4 |
--with-ovs-source=$PWD/%{ovsdir} \
|
|
|
2141b4 |
%if %{with libcapng}
|
|
|
2141b4 |
--enable-libcapng \
|
|
|
2141b4 |
%else
|
|
|
2141b4 |
--disable-libcapng \
|
|
|
2141b4 |
%endif
|
|
|
2141b4 |
--enable-ssl \
|
|
|
2141b4 |
--with-pkidir=%{_sharedstatedir}/openvswitch/pki
|
|
|
2141b4 |
|
|
|
2141b4 |
make %{?_smp_mflags}
|
|
|
2141b4 |
|
|
|
2141b4 |
%install
|
|
|
2141b4 |
%make_install
|
|
|
2141b4 |
install -p -D -m 0644 \
|
|
|
2141b4 |
rhel/usr_share_ovn_scripts_systemd_sysconfig.template \
|
|
|
2141b4 |
$RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/ovn
|
|
|
2141b4 |
|
|
|
2141b4 |
for service in ovn-controller ovn-controller-vtep ovn-northd; do
|
|
|
2141b4 |
install -p -D -m 0644 \
|
|
|
2141b4 |
rhel/usr_lib_systemd_system_${service}.service \
|
|
|
2141b4 |
$RPM_BUILD_ROOT%{_unitdir}/${service}.service
|
|
|
2141b4 |
done
|
|
|
2141b4 |
|
|
|
2141b4 |
install -d -m 0755 $RPM_BUILD_ROOT/%{_sharedstatedir}/ovn
|
|
|
2141b4 |
|
|
|
2141b4 |
install -d $RPM_BUILD_ROOT%{ovnlibdir}/firewalld/services/
|
|
|
2141b4 |
install -p -m 0644 rhel/usr_lib_firewalld_services_ovn-central-firewall-service.xml \
|
|
|
2141b4 |
$RPM_BUILD_ROOT%{ovnlibdir}/firewalld/services/ovn-central-firewall-service.xml
|
|
|
2141b4 |
install -p -m 0644 rhel/usr_lib_firewalld_services_ovn-host-firewall-service.xml \
|
|
|
2141b4 |
$RPM_BUILD_ROOT%{ovnlibdir}/firewalld/services/ovn-host-firewall-service.xml
|
|
|
2141b4 |
|
|
|
2141b4 |
install -d -m 0755 $RPM_BUILD_ROOT%{ovnlibdir}/ocf/resource.d/ovn
|
|
|
2141b4 |
ln -s %{_datadir}/ovn/scripts/ovndb-servers.ocf \
|
|
|
2141b4 |
$RPM_BUILD_ROOT%{ovnlibdir}/ocf/resource.d/ovn/ovndb-servers
|
|
|
2141b4 |
|
|
|
2141b4 |
install -p -D -m 0644 rhel/etc_logrotate.d_ovn \
|
|
|
2141b4 |
$RPM_BUILD_ROOT/%{_sysconfdir}/logrotate.d/ovn
|
|
|
2141b4 |
|
|
|
2141b4 |
# remove unneeded files.
|
|
|
2141b4 |
rm -f $RPM_BUILD_ROOT%{_bindir}/ovs*
|
|
|
2141b4 |
rm -f $RPM_BUILD_ROOT%{_bindir}/vtep-ctl
|
|
|
2141b4 |
rm -f $RPM_BUILD_ROOT%{_sbindir}/ovs*
|
|
|
2141b4 |
rm -f $RPM_BUILD_ROOT%{_mandir}/man1/ovs*
|
|
|
2141b4 |
rm -f $RPM_BUILD_ROOT%{_mandir}/man5/ovs*
|
|
|
2141b4 |
rm -f $RPM_BUILD_ROOT%{_mandir}/man5/vtep*
|
|
|
2141b4 |
rm -f $RPM_BUILD_ROOT%{_mandir}/man7/ovs*
|
|
|
2141b4 |
rm -f $RPM_BUILD_ROOT%{_mandir}/man8/ovs*
|
|
|
2141b4 |
rm -f $RPM_BUILD_ROOT%{_mandir}/man8/vtep*
|
|
|
2141b4 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/ovn/python
|
|
|
2141b4 |
rm -f $RPM_BUILD_ROOT%{_datadir}/ovn/scripts/ovs*
|
|
|
2141b4 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/ovn/bugtool-plugins
|
|
|
2141b4 |
rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
|
|
|
2141b4 |
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
|
|
2141b4 |
rm -f $RPM_BUILD_ROOT%{_libdir}/pkgconfig/*.pc
|
|
|
2141b4 |
rm -f $RPM_BUILD_ROOT%{_includedir}/ovn/*
|
|
|
2141b4 |
rm -f $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d/ovs-appctl-bashcomp.bash
|
|
|
2141b4 |
rm -f $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d/ovs-vsctl-bashcomp.bash
|
|
|
2141b4 |
rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/openvswitch
|
|
|
2141b4 |
rm -f $RPM_BUILD_ROOT%{_datadir}/ovn/scripts/ovn-bugtool*
|
|
|
2141b4 |
rm -f $RPM_BUILD_ROOT/%{_bindir}/ovn-docker-overlay-driver \
|
|
|
2141b4 |
$RPM_BUILD_ROOT/%{_bindir}/ovn-docker-underlay-driver
|
|
|
2141b4 |
|
|
|
2141b4 |
%check
|
|
|
2141b4 |
%if %{with check}
|
|
|
2141b4 |
touch resolv.conf
|
|
|
2141b4 |
export OVS_RESOLV_CONF=$(pwd)/resolv.conf
|
|
|
2141b4 |
if ! make check TESTSUITEFLAGS='%{_smp_mflags}'; then
|
|
|
2141b4 |
cat tests/testsuite.log
|
|
|
2141b4 |
if ! make check TESTSUITEFLAGS='--recheck'; then
|
|
|
2141b4 |
cat tests/testsuite.log
|
|
|
2141b4 |
# Presently a test case - "2796: ovn -- ovn-controller incremental processing"
|
|
|
2141b4 |
# is failing on aarch64 arch. Let's not exit for this arch
|
|
|
2141b4 |
# until we figure out why it is failing.
|
|
|
2141b4 |
# Test case 93: ovn.at:12105 ovn -- ACLs on Port Groups is failing
|
|
|
2141b4 |
# repeatedly on s390x. This needs to be investigated.
|
|
|
2141b4 |
%ifnarch aarch64
|
|
|
2141b4 |
%ifnarch ppc64le
|
|
|
2141b4 |
%ifnarch s390x
|
|
|
2141b4 |
exit 1
|
|
|
2141b4 |
%endif
|
|
|
2141b4 |
%endif
|
|
|
2141b4 |
%endif
|
|
|
2141b4 |
fi
|
|
|
2141b4 |
fi
|
|
|
2141b4 |
%endif
|
|
|
2141b4 |
|
|
|
2141b4 |
%clean
|
|
|
2141b4 |
rm -rf $RPM_BUILD_ROOT
|
|
|
2141b4 |
|
|
|
2141b4 |
%pre central
|
|
|
2141b4 |
if [ $1 -eq 1 ] ; then
|
|
|
2141b4 |
# Package install.
|
|
|
2141b4 |
/bin/systemctl status ovn-northd.service >/dev/null
|
|
|
2141b4 |
ovn_status=$?
|
|
|
2141b4 |
rpm -ql openvswitch-ovn-central > /dev/null
|
|
|
2141b4 |
if [[ "$?" = "0" && "$ovn_status" = "0" ]]; then
|
|
|
2141b4 |
# ovn-northd service is running which means old openvswitch-ovn-central
|
|
|
2141b4 |
# is already installed and it will be cleaned up. So start ovn-northd
|
|
|
2141b4 |
# service when posttrans central is called.
|
|
|
2141b4 |
touch %{_localstatedir}/lib/rpm-state/ovn-northd
|
|
|
2141b4 |
fi
|
|
|
2141b4 |
fi
|
|
|
2141b4 |
|
|
|
2141b4 |
%pre host
|
|
|
2141b4 |
if [ $1 -eq 1 ] ; then
|
|
|
2141b4 |
# Package install.
|
|
|
2141b4 |
/bin/systemctl status ovn-controller.service >/dev/null
|
|
|
2141b4 |
ovn_status=$?
|
|
|
2141b4 |
rpm -ql openvswitch-ovn-host > /dev/null
|
|
|
2141b4 |
if [[ "$?" = "0" && "$ovn_status" = "0" ]]; then
|
|
|
2141b4 |
# ovn-controller service is running which means old
|
|
|
2141b4 |
# openvswitch-ovn-host is installed and it will be cleaned up. So
|
|
|
2141b4 |
# start ovn-controller service when posttrans host is called.
|
|
|
2141b4 |
touch %{_localstatedir}/lib/rpm-state/ovn-controller
|
|
|
2141b4 |
fi
|
|
|
2141b4 |
fi
|
|
|
2141b4 |
|
|
|
2141b4 |
%pre vtep
|
|
|
2141b4 |
if [ $1 -eq 1 ] ; then
|
|
|
2141b4 |
# Package install.
|
|
|
2141b4 |
/bin/systemctl status ovn-controller-vtep.service >/dev/null
|
|
|
2141b4 |
ovn_status=$?
|
|
|
2141b4 |
rpm -ql openvswitch-ovn-vtep > /dev/null
|
|
|
2141b4 |
if [[ "$?" = "0" && "$ovn_status" = "0" ]]; then
|
|
|
2141b4 |
# ovn-controller-vtep service is running which means old
|
|
|
2141b4 |
# openvswitch-ovn-vtep is installed and it will be cleaned up. So
|
|
|
2141b4 |
# start ovn-controller-vtep service when posttrans host is called.
|
|
|
2141b4 |
touch %{_localstatedir}/lib/rpm-state/ovn-controller-vtep
|
|
|
2141b4 |
fi
|
|
|
2141b4 |
fi
|
|
|
2141b4 |
|
|
|
2141b4 |
%preun central
|
|
|
2141b4 |
%if 0%{?systemd_preun:1}
|
|
|
2141b4 |
%systemd_preun ovn-northd.service
|
|
|
2141b4 |
%else
|
|
|
2141b4 |
if [ $1 -eq 0 ] ; then
|
|
|
2141b4 |
# Package removal, not upgrade
|
|
|
2141b4 |
/bin/systemctl --no-reload disable ovn-northd.service >/dev/null 2>&1 || :
|
|
|
2141b4 |
/bin/systemctl stop ovn-northd.service >/dev/null 2>&1 || :
|
|
|
2141b4 |
fi
|
|
|
2141b4 |
%endif
|
|
|
2141b4 |
|
|
|
2141b4 |
%preun host
|
|
|
2141b4 |
%if 0%{?systemd_preun:1}
|
|
|
2141b4 |
%systemd_preun ovn-controller.service
|
|
|
2141b4 |
%else
|
|
|
2141b4 |
if [ $1 -eq 0 ] ; then
|
|
|
2141b4 |
# Package removal, not upgrade
|
|
|
2141b4 |
/bin/systemctl --no-reload disable ovn-controller.service >/dev/null 2>&1 || :
|
|
|
2141b4 |
/bin/systemctl stop ovn-controller.service >/dev/null 2>&1 || :
|
|
|
2141b4 |
fi
|
|
|
2141b4 |
%endif
|
|
|
2141b4 |
|
|
|
2141b4 |
%preun vtep
|
|
|
2141b4 |
%if 0%{?systemd_preun:1}
|
|
|
2141b4 |
%systemd_preun ovn-controller-vtep.service
|
|
|
2141b4 |
%else
|
|
|
2141b4 |
if [ $1 -eq 0 ] ; then
|
|
|
2141b4 |
# Package removal, not upgrade
|
|
|
2141b4 |
/bin/systemctl --no-reload disable ovn-controller-vtep.service >/dev/null 2>&1 || :
|
|
|
2141b4 |
/bin/systemctl stop ovn-controller-vtep.service >/dev/null 2>&1 || :
|
|
|
2141b4 |
fi
|
|
|
2141b4 |
%endif
|
|
|
2141b4 |
|
|
|
2141b4 |
%post
|
|
|
2141b4 |
%if %{with libcapng}
|
|
|
2141b4 |
if [ $1 -eq 1 ]; then
|
|
|
2141b4 |
sed -i 's:^#OVN_USER_ID=:OVN_USER_ID=:' %{_sysconfdir}/sysconfig/ovn
|
|
|
2141b4 |
sed -i 's:\(.*su\).*:\1 openvswitch openvswitch:' %{_sysconfdir}/logrotate.d/ovn
|
|
|
2141b4 |
fi
|
|
|
2141b4 |
%endif
|
|
|
2141b4 |
|
|
|
2141b4 |
%post central
|
|
|
2141b4 |
%if 0%{?systemd_post:1}
|
|
|
2141b4 |
%systemd_post ovn-northd.service
|
|
|
2141b4 |
%else
|
|
|
2141b4 |
# Package install, not upgrade
|
|
|
2141b4 |
if [ $1 -eq 1 ]; then
|
|
|
2141b4 |
/bin/systemctl daemon-reload >dev/null || :
|
|
|
2141b4 |
fi
|
|
|
2141b4 |
%endif
|
|
|
2141b4 |
|
|
|
2141b4 |
%post host
|
|
|
2141b4 |
%if 0%{?systemd_post:1}
|
|
|
2141b4 |
%systemd_post ovn-controller.service
|
|
|
2141b4 |
%else
|
|
|
2141b4 |
# Package install, not upgrade
|
|
|
2141b4 |
if [ $1 -eq 1 ]; then
|
|
|
2141b4 |
/bin/systemctl daemon-reload >dev/null || :
|
|
|
2141b4 |
fi
|
|
|
2141b4 |
%endif
|
|
|
2141b4 |
|
|
|
2141b4 |
%post vtep
|
|
|
2141b4 |
%if 0%{?systemd_post:1}
|
|
|
2141b4 |
%systemd_post ovn-controller-vtep.service
|
|
|
2141b4 |
%else
|
|
|
2141b4 |
# Package install, not upgrade
|
|
|
2141b4 |
if [ $1 -eq 1 ]; then
|
|
|
2141b4 |
/bin/systemctl daemon-reload >dev/null || :
|
|
|
2141b4 |
fi
|
|
|
2141b4 |
%endif
|
|
|
2141b4 |
|
|
|
2141b4 |
%postun
|
|
|
2141b4 |
|
|
|
2141b4 |
%postun central
|
|
|
2141b4 |
%if 0%{?systemd_postun_with_restart:1}
|
|
|
2141b4 |
%systemd_postun_with_restart ovn-northd.service
|
|
|
2141b4 |
%else
|
|
|
2141b4 |
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
|
|
2141b4 |
if [ "$1" -ge "1" ] ; then
|
|
|
2141b4 |
# Package upgrade, not uninstall
|
|
|
2141b4 |
/bin/systemctl try-restart ovn-northd.service >/dev/null 2>&1 || :
|
|
|
2141b4 |
fi
|
|
|
2141b4 |
%endif
|
|
|
2141b4 |
|
|
|
2141b4 |
%postun host
|
|
|
2141b4 |
%if 0%{?systemd_postun_with_restart:1}
|
|
|
2141b4 |
%systemd_postun_with_restart ovn-controller.service
|
|
|
2141b4 |
%else
|
|
|
2141b4 |
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
|
|
2141b4 |
if [ "$1" -ge "1" ] ; then
|
|
|
2141b4 |
# Package upgrade, not uninstall
|
|
|
2141b4 |
/bin/systemctl try-restart ovn-controller.service >/dev/null 2>&1 || :
|
|
|
2141b4 |
fi
|
|
|
2141b4 |
%endif
|
|
|
2141b4 |
|
|
|
2141b4 |
%postun vtep
|
|
|
2141b4 |
%if 0%{?systemd_postun_with_restart:1}
|
|
|
2141b4 |
%systemd_postun_with_restart ovn-controller-vtep.service
|
|
|
2141b4 |
%else
|
|
|
2141b4 |
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
|
|
2141b4 |
if [ "$1" -ge "1" ] ; then
|
|
|
2141b4 |
# Package upgrade, not uninstall
|
|
|
2141b4 |
/bin/systemctl try-restart ovn-controller-vtep.service >/dev/null 2>&1 || :
|
|
|
2141b4 |
fi
|
|
|
2141b4 |
%endif
|
|
|
2141b4 |
|
|
|
2141b4 |
%posttrans central
|
|
|
2141b4 |
if [ $1 -eq 1 ]; then
|
|
|
2141b4 |
# Package install, not upgrade
|
|
|
2141b4 |
if [ -e %{_localstatedir}/lib/rpm-state/ovn-northd ]; then
|
|
|
2141b4 |
rm %{_localstatedir}/lib/rpm-state/ovn-northd
|
|
|
2141b4 |
/bin/systemctl start ovn-northd.service >/dev/null 2>&1 || :
|
|
|
2141b4 |
fi
|
|
|
2141b4 |
fi
|
|
|
2141b4 |
|
|
|
2141b4 |
|
|
|
2141b4 |
%posttrans host
|
|
|
2141b4 |
if [ $1 -eq 1 ]; then
|
|
|
2141b4 |
# Package install, not upgrade
|
|
|
2141b4 |
if [ -e %{_localstatedir}/lib/rpm-state/ovn-controller ]; then
|
|
|
2141b4 |
rm %{_localstatedir}/lib/rpm-state/ovn-controller
|
|
|
2141b4 |
/bin/systemctl start ovn-controller.service >/dev/null 2>&1 || :
|
|
|
2141b4 |
fi
|
|
|
2141b4 |
fi
|
|
|
2141b4 |
|
|
|
2141b4 |
%posttrans vtep
|
|
|
2141b4 |
if [ $1 -eq 1 ]; then
|
|
|
2141b4 |
# Package install, not upgrade
|
|
|
2141b4 |
if [ -e %{_localstatedir}/lib/rpm-state/ovn-controller-vtep ]; then
|
|
|
2141b4 |
rm %{_localstatedir}/lib/rpm-state/ovn-controller-vtep
|
|
|
2141b4 |
/bin/systemctl start ovn-controller-vtep.service >/dev/null 2>&1 || :
|
|
|
2141b4 |
fi
|
|
|
2141b4 |
fi
|
|
|
2141b4 |
|
|
|
2141b4 |
%files
|
|
|
2141b4 |
%{_bindir}/ovn-nbctl
|
|
|
2141b4 |
%{_bindir}/ovn-sbctl
|
|
|
2141b4 |
%{_bindir}/ovn-trace
|
|
|
2141b4 |
%{_bindir}/ovn-detrace
|
|
|
2141b4 |
%{_bindir}/ovn_detrace.py
|
|
|
2141b4 |
%{_bindir}/ovn-appctl
|
|
|
2141b4 |
%{_bindir}/ovn-ic-nbctl
|
|
|
2141b4 |
%{_bindir}/ovn-ic-sbctl
|
|
|
b6c79e |
%{_bindir}/ovn-debug
|
|
|
2141b4 |
%dir %{_datadir}/ovn/
|
|
|
2141b4 |
%dir %{_datadir}/ovn/scripts/
|
|
|
2141b4 |
%{_datadir}/ovn/scripts/ovn-ctl
|
|
|
2141b4 |
%{_datadir}/ovn/scripts/ovn-lib
|
|
|
2141b4 |
%{_datadir}/ovn/scripts/ovndb-servers.ocf
|
|
|
2141b4 |
%{_mandir}/man8/ovn-ctl.8*
|
|
|
2141b4 |
%{_mandir}/man8/ovn-appctl.8*
|
|
|
2141b4 |
%{_mandir}/man8/ovn-nbctl.8*
|
|
|
2141b4 |
%{_mandir}/man8/ovn-ic-nbctl.8*
|
|
|
2141b4 |
%{_mandir}/man8/ovn-trace.8*
|
|
|
2141b4 |
%{_mandir}/man1/ovn-detrace.1*
|
|
|
2141b4 |
%{_mandir}/man7/ovn-architecture.7*
|
|
|
2141b4 |
%{_mandir}/man8/ovn-sbctl.8*
|
|
|
2141b4 |
%{_mandir}/man8/ovn-ic-sbctl.8*
|
|
|
b6c79e |
%{_mandir}/man8/ovn-debug.8*
|
|
|
2141b4 |
%{_mandir}/man5/ovn-nb.5*
|
|
|
2141b4 |
%{_mandir}/man5/ovn-ic-nb.5*
|
|
|
2141b4 |
%{_mandir}/man5/ovn-sb.5*
|
|
|
2141b4 |
%{_mandir}/man5/ovn-ic-sb.5*
|
|
|
2141b4 |
%dir %{ovnlibdir}/ocf/resource.d/ovn/
|
|
|
2141b4 |
%{ovnlibdir}/ocf/resource.d/ovn/ovndb-servers
|
|
|
2141b4 |
%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/logrotate.d/ovn
|
|
|
2141b4 |
%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/sysconfig/ovn
|
|
|
2141b4 |
|
|
|
2141b4 |
%files central
|
|
|
2141b4 |
%{_bindir}/ovn-northd
|
|
|
2141b4 |
%{_bindir}/ovn-ic
|
|
|
2141b4 |
%{_mandir}/man8/ovn-northd.8*
|
|
|
2141b4 |
%{_mandir}/man8/ovn-ic.8*
|
|
|
2141b4 |
%{_datadir}/ovn/ovn-nb.ovsschema
|
|
|
2141b4 |
%{_datadir}/ovn/ovn-ic-nb.ovsschema
|
|
|
2141b4 |
%{_datadir}/ovn/ovn-sb.ovsschema
|
|
|
2141b4 |
%{_datadir}/ovn/ovn-ic-sb.ovsschema
|
|
|
2141b4 |
%{_unitdir}/ovn-northd.service
|
|
|
2141b4 |
%{ovnlibdir}/firewalld/services/ovn-central-firewall-service.xml
|
|
|
2141b4 |
|
|
|
2141b4 |
%files host
|
|
|
2141b4 |
%{_bindir}/ovn-controller
|
|
|
2141b4 |
%{_mandir}/man8/ovn-controller.8*
|
|
|
2141b4 |
%{_unitdir}/ovn-controller.service
|
|
|
2141b4 |
%{ovnlibdir}/firewalld/services/ovn-host-firewall-service.xml
|
|
|
2141b4 |
|
|
|
2141b4 |
%files vtep
|
|
|
2141b4 |
%{_bindir}/ovn-controller-vtep
|
|
|
2141b4 |
%{_mandir}/man8/ovn-controller-vtep.8*
|
|
|
2141b4 |
%{_unitdir}/ovn-controller-vtep.service
|
|
|
2141b4 |
|
|
|
2141b4 |
%changelog
|
|
|
b6c79e |
* Fri Aug 16 2024 Numan Siddique <numans@ovn.org> - 23.09.4-28
|
|
|
b6c79e |
- Reply only for the multicast ND solicitations.
|
|
|
b6c79e |
[Upstream: 6b6bfd53dd10fff1925c7f5b3658b689794c8ab9]
|
|
|
141f98 |
|
|
|
b6c79e |
* Fri Aug 16 2024 Mark Michelson <mmichels@redhat.com> - 23.09.4-27
|
|
|
b6c79e |
- Prepare for 23.09.6.
|
|
|
b6c79e |
[Upstream: 3b523c8136099f46d8fe82ff2389d7ad733d77fc]
|
|
|
b6c79e |
|
|
|
b6c79e |
* Fri Aug 16 2024 Mark Michelson <mmichels@redhat.com> - 23.09.4-26
|
|
|
b6c79e |
- Set release date for 23.09.5.
|
|
|
b6c79e |
[Upstream: 6582276862c7c1b7bbf879f0af0ce350a9253a78]
|
|
|
b6c79e |
|
|
|
b6c79e |
* Wed Aug 14 2024 Xavier Simonart <xsimonar@redhat.com> - 23.09.4-25
|
|
|
b6c79e |
- ci: Add nftables to containers.
|
|
|
b6c79e |
[Upstream: 23b86e41ab8c91b10b9e187a1ebfef8f41ec0fe5]
|
|
|
b6c79e |
|
|
|
b6c79e |
* Wed Aug 14 2024 Xavier Simonart <xsimonar@redhat.com> - 23.09.4-24
|
|
|
b6c79e |
- tests: Skip some tests if nft not installed.
|
|
|
b6c79e |
[Upstream: e43b9140e5f8f02cf86e06d69ed9c0df5d01989a]
|
|
|
b6c79e |
|
|
|
b6c79e |
* Mon Aug 12 2024 Rosemarie O'Riorden <roriorden@redhat.com> - 23.09.4-23
|
|
|
b6c79e |
- northd: Clean up SB MAC bindings for deleted ports.
|
|
|
b6c79e |
[Upstream: 4a98b76fe4dec6029002b7c67c91a8120583006d]
|
|
|
b6c79e |
|
|
|
b6c79e |
* Mon Aug 12 2024 Ales Musil <amusil@redhat.com> - 23.09.4-22
|
|
|
b6c79e |
- controller: Make sure the meter and group tables are initialized.
|
|
|
b6c79e |
[Upstream: 563f0b7d2a70f903f43679b18b025e10572c3332]
|
|
|
b6c79e |
|
|
|
b6c79e |
* Fri Aug 09 2024 Dumitru Ceara <dceara@redhat.com> - 23.09.4-21
|
|
|
b6c79e |
- ci: ovn-kubernetes: Move to stable release-1.0 branch.
|
|
|
b6c79e |
[Upstream: 8e4f3ff204db3a577306f0455e2de99662d284b0]
|
|
|
b6c79e |
|
|
|
b6c79e |
* Fri Aug 09 2024 Ilya Maximets <i.maximets@ovn.org> - 23.09.4-20
|
|
|
b6c79e |
- logical-fields: Add missing multicast matches for MLD and IGMP.
|
|
|
b6c79e |
[Upstream: ea584fd60936997cd15f2d9d3340d62c1f3b5ace]
|
|
|
b6c79e |
|
|
|
b6c79e |
* Mon Jul 22 2024 zhangqiang45 <zhangqiang45@lenovo.com> - 23.09.4-19
|
|
|
b6c79e |
- northd: Fix issues for Forwarding_Group.
|
|
|
b6c79e |
[Upstream: 3cbd4d8e1f3c699bc378e0cab6ae980cef8725cf]
|
|
|
b6c79e |
|
|
|
b6c79e |
* Fri Jul 19 2024 Vladislav Odintsov <odivlad@gmail.com> - 23.09.4-18
|
|
|
b6c79e |
- tests: Fix ssl-ciphers RO sb test with old openssl.
|
|
|
b6c79e |
[Upstream: aa4cd0cdd0df5d4dd202bf089f7ff6db58732a9d]
|
|
|
b6c79e |
|
|
|
b6c79e |
* Tue Jun 25 2024 Ales Musil <amusil@redhat.com> - 23.09.4-17
|
|
|
b6c79e |
- ci: Move common build steps into script.
|
|
|
b6c79e |
[Upstream: dca6e187d6e63c6f37111aeddb05517886481751]
|
|
|
b6c79e |
|
|
|
b6c79e |
* Tue Jun 18 2024 Dumitru Ceara <dceara@redhat.com> - 23.09.4-16
|
|
|
b6c79e |
- northd: ic: Remove unused function and fix unit test.
|
|
|
b6c79e |
[Upstream: 83c2238cbf41f6600fe024ce1df58c9800299bd6]
|
|
|
b6c79e |
|
|
|
b6c79e |
* Tue Jun 18 2024 Dumitru Ceara <dceara@redhat.com> - 23.09.4-15
|
|
|
b6c79e |
- Revert "northd: Don't skip transit switch LSP when creating mcast groups."
|
|
|
b6c79e |
[Upstream: 5f0809be565713d3634a6c663e122c0bfb5dff92]
|
|
|
b6c79e |
|
|
|
b6c79e |
* Tue Jun 18 2024 Dumitru Ceara <dceara@redhat.com> - 23.09.4-14
|
|
|
b6c79e |
- Revert "ovn-ic: Avoid igmp/mld traffic flooding."
|
|
|
b6c79e |
[Upstream: 848b17e907a6d8d333c8d995994d524951ad0efd]
|
|
|
b6c79e |
|
|
|
b6c79e |
* Tue Jun 18 2024 Dumitru Ceara <dceara@redhat.com> - 23.09.4-13
|
|
|
b6c79e |
- Revert "IC: Tansit switch don't flood mcast traffic to router ports if matches igmp group."
|
|
|
b6c79e |
[Upstream: dc62643b9cb2eaa3e91bd8df4588d0b8e2aad16c]
|
|
|
b6c79e |
|
|
|
b6c79e |
* Mon Jun 17 2024 Shibir Basak <shibir.basak@nutanix.com> - 23.09.4-12
|
|
|
b6c79e |
- controller: Send RARP/GARP for VIF post link state is up.
|
|
|
b6c79e |
[Upstream: 0539de39078ee018fe5a6962d6f2950cec0860fb]
|
|
|
b6c79e |
|
|
|
b6c79e |
* Wed Jun 12 2024 Vladislav Odintsov <odivlad@gmail.com> - 23.09.4-11
|
|
|
b6c79e |
- controller: Store src_mac, src_ip in svc_monitor struct.
|
|
|
b6c79e |
[Upstream: d20498c4ef621934f0fb3a416c032313f29c6688]
|
|
|
b6c79e |
|
|
|
b6c79e |
* Tue Jun 11 2024 Naveen Yerramneni <naveen.yerramneni@nutanix.com> - 23.09.4-10
|
|
|
b6c79e |
- controller: Fix issue with ct_commit encode.
|
|
|
b6c79e |
[Upstream: 24e0e2dc3bcac752480c958afd0d23420be3b5d4]
|
|
|
b6c79e |
|
|
|
b6c79e |
* Fri Jun 07 2024 Lorenzo Bianconi <lorenzo.bianconi@redhat.com> - 23.09.4-9
|
|
|
b6c79e |
- northd: Skip arp-proxy flows if the lsp is a router port.
|
|
|
b6c79e |
[Upstream: cf6cd0f579495906ac189b4b054eb5d5276eda20]
|
|
|
b6c79e |
|
|
|
b6c79e |
* Wed Jun 05 2024 Ales Musil <amusil@redhat.com> - 23.09.4-8
|
|
|
b6c79e |
- ovn-controller: Initialize bitmap to zero.
|
|
|
b6c79e |
[Upstream: 76d7a30f6652c9da81c81178ca5eddbf24d81323]
|
|
|
b6c79e |
|
|
|
b6c79e |
* Wed May 29 2024 Xavier Simonart <xsimonar@redhat.com> - 23.09.4-7
|
|
|
b6c79e |
- lflow: Add missing sample flow.
|
|
|
b6c79e |
[Upstream: fb8b58913f5275563d8f80ea3658d8c5dfe55d03]
|
|
|
b6c79e |
|
|
|
b6c79e |
* Wed May 15 2024 Ales Musil <amusil@redhat.com> - 23.09.4-6
|
|
|
b6c79e |
- controller: Avoid use after free in LB I-P.
|
|
|
b6c79e |
[Upstream: a8b1a53244ef885f840be848ae99bf4e406a96ff]
|
|
|
b6c79e |
|
|
|
b6c79e |
* Tue May 14 2024 Xavier Simonart <xsimonar@redhat.com> - 23.09.4-5
|
|
|
b6c79e |
- northd, ic: Fix handling of ovn-appctl resume.
|
|
|
b6c79e |
[Upstream: d929ea791822c502989a688a1687fbbc6950d92f]
|
|
|
b6c79e |
|
|
|
b6c79e |
* Fri May 10 2024 Mark Michelson <mmichels@redhat.com> - 23.09.4-4
|
|
|
b6c79e |
- Prepare for 23.09.5.
|
|
|
b6c79e |
[Upstream: d70ff69318f4ef4553ee1da32345d5243525b698]
|
|
|
2141b4 |
|