- bundled dateutil: fix tarfile CVE-2007-4559
Resolves: rhbz#2217902 - fence_ipmilan: fix typos in metadata Resolves: rhbz#2224267 - fence_kubevirt: use correct bundling path for rhel9 Resolves: rhbz#2224358
This commit is contained in:
parent
1310e31b7f
commit
882f5a659e
@ -11,7 +11,7 @@
|
|||||||
+from fencing import fail, fail_usage, run_delay, EC_STATUS, EC_FETCH_VM_UUID
|
+from fencing import fail, fail_usage, run_delay, EC_STATUS, EC_FETCH_VM_UUID
|
||||||
|
|
||||||
try:
|
try:
|
||||||
+ sys.path.insert(0, '/usr/lib/fence-agents/bundled/kubevirt')
|
+ sys.path.insert(0, '/usr/lib/fence-agents/support/kubevirt')
|
||||||
from kubernetes.client.exceptions import ApiException
|
from kubernetes.client.exceptions import ApiException
|
||||||
except ImportError:
|
except ImportError:
|
||||||
logging.error("Couldn\'t import kubernetes.client.exceptions.ApiException - not found or not accessible")
|
logging.error("Couldn\'t import kubernetes.client.exceptions.ApiException - not found or not accessible")
|
||||||
|
@ -7,7 +7,6 @@
|
|||||||
## global alphatag git0a6184070
|
## global alphatag git0a6184070
|
||||||
|
|
||||||
# bundles
|
# bundles
|
||||||
%global bundled_lib_dir bundled
|
|
||||||
# azure
|
# azure
|
||||||
%global oauthlib oauthlib
|
%global oauthlib oauthlib
|
||||||
%global oauthlib_version 3.2.2
|
%global oauthlib_version 3.2.2
|
||||||
@ -60,7 +59,7 @@
|
|||||||
Name: fence-agents
|
Name: fence-agents
|
||||||
Summary: Set of unified programs capable of host isolation ("fencing")
|
Summary: Set of unified programs capable of host isolation ("fencing")
|
||||||
Version: 4.10.0
|
Version: 4.10.0
|
||||||
Release: 52%{?alphatag:.%{alphatag}}%{?dist}
|
Release: 53%{?alphatag:.%{alphatag}}%{?dist}
|
||||||
License: GPLv2+ and LGPLv2+
|
License: GPLv2+ and LGPLv2+
|
||||||
URL: https://github.com/ClusterLabs/fence-agents
|
URL: https://github.com/ClusterLabs/fence-agents
|
||||||
Source0: https://fedorahosted.org/releases/f/e/fence-agents/%{name}-%{version}.tar.gz
|
Source0: https://fedorahosted.org/releases/f/e/fence-agents/%{name}-%{version}.tar.gz
|
||||||
@ -436,6 +435,11 @@ pushd support
|
|||||||
popd
|
popd
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
# kubevirt
|
||||||
|
%{__python3} -m pip install --user --no-index --find-links %{_sourcedir} setuptools-scm
|
||||||
|
%{__python3} -m pip install --target support/kubevirt --no-index --find-links %{_sourcedir} openshift
|
||||||
|
rm -rf kubevirt/rsa*
|
||||||
|
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
%{configure} --disable-libvirt-qmf-plugin PYTHONPATH="support/aliyun:support/aws:support/azure:support/google:support/common" \
|
%{configure} --disable-libvirt-qmf-plugin PYTHONPATH="support/aliyun:support/aws:support/azure:support/google:support/common" \
|
||||||
%if %{defined _tmpfilesdir}
|
%if %{defined _tmpfilesdir}
|
||||||
@ -465,11 +469,6 @@ install -m 0644 agents/virt/fence_virtd.service %{buildroot}/%{_unitdir}/
|
|||||||
%endif
|
%endif
|
||||||
# XXX unsure if /usr/sbin/fence_* should be compiled as well
|
# XXX unsure if /usr/sbin/fence_* should be compiled as well
|
||||||
|
|
||||||
# kubevirt
|
|
||||||
%{__python3} -m pip install --user --no-index --find-links %{_sourcedir} setuptools-scm
|
|
||||||
%{__python3} -m pip install --target %{buildroot}/usr/lib/fence-agents/%{bundled_lib_dir}/kubevirt --no-index --find-links %{_sourcedir} openshift
|
|
||||||
rm -rf %{buildroot}/usr/lib/fence-agents/%{bundled_lib_dir}/kubevirt/rsa*
|
|
||||||
|
|
||||||
## tree fix up
|
## tree fix up
|
||||||
# fix libfence permissions
|
# fix libfence permissions
|
||||||
chmod 0755 %{buildroot}%{_datadir}/fence/*.py
|
chmod 0755 %{buildroot}%{_datadir}/fence/*.py
|
||||||
@ -638,6 +637,7 @@ Support libraries for Fence Agents.
|
|||||||
%dir %{_usr}/lib/%{name}
|
%dir %{_usr}/lib/%{name}
|
||||||
%{_usr}/lib/%{name}/support
|
%{_usr}/lib/%{name}/support
|
||||||
%exclude %{_usr}/lib/%{name}/support/common
|
%exclude %{_usr}/lib/%{name}/support/common
|
||||||
|
%exclude %{_usr}/lib/%{name}/support/kubevirt
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%package all
|
%package all
|
||||||
@ -1173,7 +1173,7 @@ Fence agent for KubeVirt platform.
|
|||||||
%{_sbindir}/fence_kubevirt
|
%{_sbindir}/fence_kubevirt
|
||||||
%{_mandir}/man8/fence_kubevirt.8*
|
%{_mandir}/man8/fence_kubevirt.8*
|
||||||
# bundled libraries
|
# bundled libraries
|
||||||
/usr/lib/fence-agents/%{bundled_lib_dir}/kubevirt
|
%{_usr}/lib/%{name}/support/kubevirt
|
||||||
|
|
||||||
%package lpar
|
%package lpar
|
||||||
License: GPLv2+ and LGPLv2+
|
License: GPLv2+ and LGPLv2+
|
||||||
@ -1472,7 +1472,7 @@ are located on corosync cluster nodes.
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Thu Jul 20 2023 Oyvind Albrigtsen <oalbrigt@redhat.com> - 4.10.0-52
|
* Thu Jul 20 2023 Oyvind Albrigtsen <oalbrigt@redhat.com> - 4.10.0-53
|
||||||
- bundled dateutil: fix tarfile CVE-2007-4559
|
- bundled dateutil: fix tarfile CVE-2007-4559
|
||||||
Resolves: rhbz#2217902
|
Resolves: rhbz#2217902
|
||||||
- fence_ipmilan: fix typos in metadata
|
- fence_ipmilan: fix typos in metadata
|
||||||
|
@ -1,5 +1,20 @@
|
|||||||
---
|
---
|
||||||
|
xml:
|
||||||
|
# Do not try to XML-validate this DTD file
|
||||||
|
ignore:
|
||||||
|
- /usr/share/cluster/relaxng/fence2wiki.xsl
|
||||||
|
# bundled
|
||||||
|
- /usr/lib/fence-agents/support/awscli/docutils/writers/pep_html/template.txt
|
||||||
|
- /usr/lib/fence-agents/support/google/setuptools/command/launcher manifest.xml
|
||||||
|
- /usr/lib/fence-agents/support/kubevirt/setuptools/command/launcher manifest.xml
|
||||||
|
|
||||||
files:
|
files:
|
||||||
# These paths are explicitly used in this package
|
# These paths are explicitly used in this package
|
||||||
ignore:
|
ignore:
|
||||||
- /usr/lib/fence-agents
|
- /usr/lib/fence-agents
|
||||||
|
|
||||||
|
badfuncs:
|
||||||
|
# bundled libs
|
||||||
|
ignore:
|
||||||
|
- /usr/lib/fence-agents/support/awscli/cryptography/hazmat/bindings/_openssl.abi3.so
|
||||||
|
- /usr/lib/fence-agents/support/azure/cryptography/hazmat/bindings/_openssl.abi3.so
|
||||||
|
Loading…
Reference in New Issue
Block a user