Compare commits
204 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
87d92a0ec4 | ||
|
|
3850bfc863 | ||
|
|
3d7a891f95 | ||
|
|
dc89cebb47 | ||
|
|
b69e768862 |
||
|
|
4c0b4c35e5 | ||
|
|
789f35272e | ||
|
|
0074295812 | ||
|
|
183a7b1633 | ||
|
|
ac7db51ac5 | ||
|
|
af9724800c | ||
|
|
715113b32b | ||
|
|
60b4a41ab7 | ||
|
|
998ffdad23 | ||
|
|
d0f8519e4d | ||
|
|
5caa0f2b16 | ||
|
|
7d8c30ed38 | ||
|
|
f0be83ef28 | ||
|
|
f25860a1c2 |
||
|
|
52078f228e |
||
|
|
ed1ce84574 | ||
|
|
0c0f019cc7 | ||
|
|
db43736e7d | ||
|
|
d6ff87ba32 | ||
|
|
f64e745fb5 | ||
|
|
5b10e3c19e | ||
|
|
617e508896 | ||
|
|
45210bdab1 | ||
|
|
788e8d6eb4 | ||
|
|
c84fc17596 | ||
|
|
59980bddfa |
||
|
|
c41fd8553d | ||
|
|
0dfc3b9f8d | ||
|
|
1048413046 | ||
|
|
6c2d8b6f0a | ||
|
|
d16ba5b200 | ||
| 6b5d63550a | |||
| 8a8c1bc6b2 | |||
|
|
5ec366ab35 | ||
|
|
486f8184bb | ||
|
|
97dc2869ab | ||
|
|
ec96171544 | ||
|
|
e1584e4b3b | ||
|
|
8b0d3fa88c | ||
|
|
5cb4173b93 | ||
|
|
cba0cc05cb | ||
|
|
900a60eb1b | ||
|
|
47eb2b6ece | ||
|
|
47d26c75af | ||
|
|
83e38e93da | ||
|
|
3aaeb32c89 | ||
|
|
c0926fc41b | ||
|
|
f5e63146f3 | ||
|
|
572f8aba64 | ||
|
|
26947381ca | ||
|
|
f23576258f | ||
|
|
f1f3ddf1cb | ||
|
|
3e8b25c53c | ||
|
|
b73f6bb538 | ||
|
|
7f05121b49 | ||
|
|
eaac9a809b | ||
|
|
2bce29896a | ||
|
|
5dadf85731 | ||
|
|
103b8a534c | ||
|
|
c35aab89f3 | ||
|
|
f3fb16e77a | ||
|
|
117b09b0fa | ||
|
|
f3149243f8 | ||
|
|
31a1e985a8 | ||
|
|
18e7bfff9b | ||
|
|
b6aa647987 | ||
|
|
78a5fd64a1 | ||
|
|
19f12dc95a | ||
|
|
aa1dd0d9aa | ||
|
|
e2091267e5 | ||
|
|
ba809568f3 | ||
|
|
8f9bc4d608 | ||
|
|
3f3d52ce94 | ||
|
|
e5c4b8113f | ||
|
|
419f6991cc | ||
|
|
92e65ab06f | ||
|
|
ce0b9dc836 | ||
|
|
f1747f4629 | ||
|
|
f98ea4f8a9 | ||
|
|
556df46c52 | ||
|
|
6ea94fbd06 | ||
|
|
f1e302b505 | ||
|
|
48d2d2ceb4 | ||
|
|
b9727dcda1 | ||
|
|
dd9d8004b6 | ||
|
|
eae6e6b239 | ||
|
|
a5b1dc96e9 | ||
|
|
d0a92bc75b | ||
|
|
e9b212833d | ||
|
|
77ac05b147 | ||
|
|
af3a7a4c43 | ||
|
|
dbb8718b8d | ||
|
|
22ea5bf565 | ||
|
|
e68fd5a215 | ||
|
|
3c83c90479 | ||
|
|
d69408eb7c | ||
|
|
d86bcfb575 | ||
|
|
acae6ac2a6 | ||
|
|
436037e932 | ||
|
|
aff2694ff6 | ||
|
|
88f5cb6f26 | ||
|
|
28d5e5bcbf | ||
|
|
9d1a46824e | ||
|
|
e637f8f07c | ||
|
|
211b481b05 | ||
|
|
55513cddf1 | ||
|
|
4f574ab340 | ||
|
|
fd7641c79a | ||
|
|
d30ce58377 | ||
|
|
185ff113ff | ||
|
|
b28851091c | ||
|
|
a591ee5e21 | ||
|
|
60b220dcad | ||
|
|
7ca8a21f39 | ||
|
|
5fd5344faa | ||
|
|
99ceb8cd5d | ||
|
|
e27d07f549 | ||
|
|
d3b9fee086 | ||
|
|
0ccf3151f3 | ||
|
|
ea87f6d49a | ||
|
|
b9179ce4fc |
||
|
|
0dc11f5a01 | ||
|
|
f5f37d5659 | ||
|
|
935740fbcc | ||
|
|
dede183e2f | ||
|
|
90a577a46e |
||
|
|
78dc2d287b |
||
|
|
17125f41ff | ||
|
|
4cf2482ca7 | ||
|
|
2e75949866 | ||
|
|
c0089e7060 | ||
|
|
feddf9c9de | ||
|
|
a9c59d3379 | ||
|
|
d9b59ef240 | ||
|
|
e621f5c14a | ||
|
|
125ca70870 | ||
|
|
0dfb7f1b69 | ||
|
|
7fdbe1e1ab | ||
|
|
b9c2486177 |
||
|
|
21021c20e9 | ||
|
|
5569063a9f | ||
|
|
2d46326ab8 | ||
|
|
6f630a2a7f | ||
|
|
4ef23ddae0 | ||
|
|
30a728de65 | ||
|
|
8f7f0ebaf6 |
||
|
|
17fdd2e06c |
||
|
|
1d6de9230b |
||
|
|
b28a6bcad5 | ||
|
|
aeb29ac23b | ||
|
|
603a13cf48 | ||
|
|
05c212a0ae | ||
|
|
a637d26633 | ||
|
|
e313e47177 |
||
|
|
a872723927 |
||
|
|
ef0e5ec550 | ||
|
|
04fff41156 |
||
|
|
11da5ede25 |
||
|
|
ecb7c348ee | ||
|
|
952333569c | ||
|
|
beb2a43159 | ||
|
|
5adf4fe3ac | ||
|
|
f627cbca1c | ||
|
|
5d56f219c7 | ||
|
|
f4809bf48f | ||
|
|
2c3f97a106 |
||
|
|
bc230224cb | ||
|
|
395affe08c | ||
|
|
af78346778 |
||
|
|
4ca57c0944 |
||
|
|
7a2cea75b9 | ||
|
|
57d274effb |
||
|
|
9df9c7b581 | ||
|
|
2bcc4e0975 | ||
|
|
31fd47bc52 | ||
|
|
9a8cdeb6ef | ||
|
|
d9c5ef635d | ||
|
|
8c6e7d747c | ||
|
|
113878be45 | ||
|
|
db3fbf2a3f | ||
|
|
3ed3a4c7f1 | ||
|
|
6015b56ab6 | ||
|
|
465b8baa32 | ||
|
|
a587369966 | ||
|
|
fd0f676547 | ||
|
|
6648c38490 | ||
|
|
34b5885cf0 | ||
|
|
aaa8f31ca5 | ||
|
|
cf9d4c2080 | ||
|
|
2a998dabfb | ||
|
|
ac7d86baa8 | ||
|
|
b74df5c475 | ||
|
|
347b56a909 |
||
|
|
7d25a267ab |
||
|
|
33548db9f9 |
||
|
|
0fd7781d58 |
||
|
|
4f7c19cbbc |
||
|
|
331cb946e7 |
||
|
|
74c8d12b07 |
6 changed files with 246 additions and 35 deletions
49
.gitignore
vendored
49
.gitignore
vendored
|
|
@ -0,0 +1,49 @@
|
|||
/cri-o-441bd3d.tar.gz
|
||||
/cri-o-3eac3b2.tar.gz
|
||||
/cri-o-4fbb022.tar.gz
|
||||
/cri-o-e0c89d8.tar.gz
|
||||
/cri-o-71cc465.tar.gz
|
||||
/cri-o-774a29e.tar.gz
|
||||
/cri-o-18bc811.tar.gz
|
||||
/cri-o-e8a2525.tar.gz
|
||||
/cri-o-d70609a.tar.gz
|
||||
/cri-o-b7644f6.tar.gz
|
||||
/cri-o-485227d.tar.gz
|
||||
/cri-o-f0827bb.tar.gz
|
||||
/cri-o-b731670.tar.gz
|
||||
/cri-o-6a4b481.tar.gz
|
||||
/cri-o-a783f23.tar.gz
|
||||
/cri-o-bf8fcf3.tar.gz
|
||||
/cri-o-cd4b6ae.tar.gz
|
||||
/cri-o-b89a5fc.tar.gz
|
||||
/cri-o-6d0ffae.tar.gz
|
||||
/cri-o-ee2de87.tar.gz
|
||||
/v1.17.1.tar.gz
|
||||
/v1.17.2.tar.gz
|
||||
/v1.18.0-rc1.tar.gz
|
||||
/v1.18.0.tar.gz
|
||||
/v1.18.1.tar.gz
|
||||
/v1.18.2.tar.gz
|
||||
/v1.18.3.tar.gz
|
||||
/v1.19.0.tar.gz
|
||||
/v1.20.0.tar.gz
|
||||
/v1.20.1.tar.gz
|
||||
/v1.20.2.tar.gz
|
||||
/cri-o-1.21.1.tar.gz
|
||||
/cri-o-1.21.2.tar.gz
|
||||
/cri-o-1.22.0.tar.gz
|
||||
/cri-o-1.22.1.tar.gz
|
||||
/cri-o-1.23.0.tar.gz
|
||||
/cri-o-1.23.1.tar.gz
|
||||
/cri-o-1.23.2.tar.gz
|
||||
/cri-o-1.24.1.tar.gz
|
||||
/cri-o-1.26.1.tar.gz
|
||||
/cri-o-1.27.0.tar.gz
|
||||
/cri-o-1.27.1.tar.gz
|
||||
/cri-o-1.28.0.tar.gz
|
||||
/cri-o-1.28.2.tar.gz
|
||||
/cri-o-1.29.2.tar.gz
|
||||
/cri-o-1.29.3.tar.gz
|
||||
/cri-o-1.29.4.tar.gz
|
||||
/cri-o-1.31.1.tar.gz
|
||||
/cri-o-1.32.0.tar.gz
|
||||
140
cri-o.spec
140
cri-o.spec
|
|
@ -1,8 +1,15 @@
|
|||
# https://github.com/cri-o/cri-o
|
||||
%global goipath github.com/cri-o/cri-o
|
||||
Version: 1.25.1
|
||||
%global service_name crio
|
||||
|
||||
%if 0%{?rhel} && 0%{?rhel} <= 8
|
||||
# Related: github.com/cri-o/cri-o/issues/3684
|
||||
%global build_timestamp %(date -u +'%Y-%m-%dT%H:%M:%SZ')
|
||||
%global git_tree_state clean
|
||||
%global criocli_path ""
|
||||
|
||||
Version: 1.32.0
|
||||
|
||||
%if 0%{?rhel} && 0%{?rhel} <= 9
|
||||
%define gobuild(o:) %{expand:
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=995136#c12
|
||||
%global _dwz_low_mem_die_limit 0
|
||||
|
|
@ -18,36 +25,22 @@ Version: 1.25.1
|
|||
%bcond_without check
|
||||
%endif
|
||||
|
||||
# Related: github.com/cri-o/cri-o/issues/3684
|
||||
%global build_timestamp %(date -u +'%Y-%m-%dT%H:%M:%SZ')
|
||||
%global git_tree_state clean
|
||||
%global criocli_path ""
|
||||
|
||||
# Used for comparing with latest upstream tag
|
||||
# to decide whether to autobuild (non-rawhide only)
|
||||
%global built_tag v%{version}
|
||||
%global built_tag_strip %(b=%{built_tag}; echo ${b:1})
|
||||
%global crio_release_tag %(echo %{built_tag_strip} | cut -f1,2 -d'.')
|
||||
|
||||
# Services
|
||||
%global service_name crio
|
||||
|
||||
# Commit for the builds
|
||||
%global commit0 afa0c576fcafc095e2827261e412fadabb016874
|
||||
%global commit0 b7f3c240bcbda6fae8d43561694d18317e09e167
|
||||
|
||||
Name: cri-o
|
||||
Epoch: 0
|
||||
Release: 1%{?dist}
|
||||
Release: 5%{?dist}
|
||||
Summary: Open Container Initiative-based implementation of Kubernetes Container Runtime Interface
|
||||
|
||||
|
||||
# Upstream license specification: Apache-2.0
|
||||
License: ASL 2.0
|
||||
# Automatically converted from old format: ASL 2.0 - review is highly recommended.
|
||||
License: Apache-2.0
|
||||
URL: https://github.com/cri-o/cri-o
|
||||
Source0: %url/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||
|
||||
%if 0%{?rhel}
|
||||
BuildRequires: golang >= 1.19
|
||||
BuildRequires: golang >= 1.23
|
||||
%endif
|
||||
%if 0%{?rhel} && 0%{?rhel} <= 8
|
||||
# e.g. el6 has ppc64 arch without gcc-go, so EA tag is required
|
||||
|
|
@ -96,7 +89,7 @@ Open Container Initiative-based implementation of Kubernetes Container Runtime
|
|||
Interface.
|
||||
|
||||
%prep
|
||||
%if 0%{?rhel} && 0%{?rhel} <= 8
|
||||
%if 0%{?rhel} && 0%{?rhel} <= 9
|
||||
%autosetup -p1 -n %{name}-%{version}
|
||||
%else
|
||||
%goprep -k
|
||||
|
|
@ -111,14 +104,20 @@ sed -i 's/\/local//' contrib/systemd/%{service_name}.service
|
|||
sed -i 's/\/local//' contrib/systemd/%{service_name}-wipe.service
|
||||
|
||||
%build
|
||||
%global __golang_extldflags -Wl,-z,undefs
|
||||
|
||||
export GO111MODULE=on
|
||||
export GOFLAGS=-mod=vendor
|
||||
|
||||
export BUILDTAGS="$(hack/btrfs_installed_tag.sh)
|
||||
$(hack/btrfs_tag.sh) $(hack/libdm_installed.sh)
|
||||
$(hack/libdm_no_deferred_remove_tag.sh)
|
||||
$(hack/seccomp_tag.sh)
|
||||
$(hack/selinux_tag.sh)"
|
||||
export BUILDTAGS="containers_image_ostree_stub
|
||||
$(hack/btrfs_installed_tag.sh)
|
||||
$(hack/btrfs_tag.sh) $(hack/openpgp_tag.sh)
|
||||
$(hack/seccomp_tag.sh) $(hack/selinux_tag.sh)
|
||||
$(hack/libsubid_tag.sh) exclude_graphdriver_devicemapper"
|
||||
|
||||
%if 0%{?rhel} && 0%{?rhel} <= 8
|
||||
BUILDTAGS="$BUILDTAGS containers_image_openpgp"
|
||||
%endif
|
||||
|
||||
export BASE_LDFLAGS="-X %{goipath}/internal/pkg/criocli.DefaultsPath=%{criocli_path}
|
||||
-X %{goipath}/internal/version.buildDate=%{build_timestamp}
|
||||
|
|
@ -153,8 +152,8 @@ install -p -m 755 bin/%{service_name} %{buildroot}%{_bindir}
|
|||
|
||||
# install conf files
|
||||
install -dp %{buildroot}%{_sysconfdir}/cni/net.d
|
||||
install -p -m 644 contrib/cni/10-crio-bridge.conf %{buildroot}%{_sysconfdir}/cni/net.d/100-crio-bridge.conf
|
||||
install -p -m 644 contrib/cni/99-loopback.conf %{buildroot}%{_sysconfdir}/cni/net.d/200-loopback.conf
|
||||
install -p -m 644 contrib/cni/10-crio-bridge.conflist %{buildroot}%{_sysconfdir}/cni/net.d/100-crio-bridge.conflist
|
||||
install -p -m 644 contrib/cni/99-loopback.conflist %{buildroot}%{_sysconfdir}/cni/net.d/200-loopback.conflist
|
||||
|
||||
install -dp %{buildroot}%{_sysconfdir}/%{service_name}
|
||||
install -dp %{buildroot}%{_datadir}/containers/oci/hooks.d
|
||||
|
|
@ -195,18 +194,17 @@ sed -i -e 's/,metacopy=on//g' /etc/containers/storage.conf
|
|||
%systemd_postun_with_restart %{service_name}
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
%license LICENSE vendor/modules.txt
|
||||
%doc docs code-of-conduct.md tutorial.md ADOPTERS.md CONTRIBUTING.md README.md
|
||||
%doc awesome.md transfer.md
|
||||
%{_bindir}/%{service_name}
|
||||
%{_bindir}/%{service_name}-status
|
||||
%{_bindir}/pinns
|
||||
%{_mandir}/man5/%{service_name}.conf*5*
|
||||
%{_mandir}/man8/%{service_name}*.8*
|
||||
%dir %{_sysconfdir}/%{service_name}
|
||||
%config(noreplace) %{_sysconfdir}/%{service_name}/%{service_name}.conf
|
||||
%config(noreplace) %{_sysconfdir}/cni/net.d/100-%{service_name}-bridge.conf
|
||||
%config(noreplace) %{_sysconfdir}/cni/net.d/200-loopback.conf
|
||||
%config(noreplace) %{_sysconfdir}/cni/net.d/100-%{service_name}-bridge.conflist
|
||||
%config(noreplace) %{_sysconfdir}/cni/net.d/200-loopback.conflist
|
||||
%config(noreplace) %{_sysconfdir}/crictl.yaml
|
||||
%dir %{_libexecdir}/%{service_name}
|
||||
%{_unitdir}/%{service_name}.service
|
||||
|
|
@ -226,6 +224,80 @@ sed -i -e 's/,metacopy=on//g' /etc/containers/storage.conf
|
|||
%endif
|
||||
|
||||
%changelog
|
||||
* Fri Oct 10 2025 Alejandro Sáez <asm@redhat.com> - 0:1.32.0-5
|
||||
- rebuild
|
||||
|
||||
* Fri Aug 15 2025 Maxwell G <maxwell@gtmx.me> - 0:1.32.0-4
|
||||
- Rebuild for golang-1.25.0
|
||||
|
||||
* Wed Jul 23 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0:1.32.0-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
|
||||
|
||||
* Thu Jan 16 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0:1.32.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
|
||||
|
||||
* Mon Dec 23 2024 Bradley G Smith <bradley.g.smith@gmail.com> - 0:1.32.0-1
|
||||
- Bump to v1.32.0
|
||||
- Add -Wl,-z,undefs linker flags to resolve https://github.com/cri-o/cri-o/issues/8860
|
||||
- Update BUILDTAGS to conform to upstream
|
||||
|
||||
* Thu Oct 24 2024 Dennis Gilmore <dennis@ausil.us> - 0:1.31.1-1
|
||||
- update to 1.31.1
|
||||
|
||||
* Wed Jul 24 2024 Miroslav Suchý <msuchy@redhat.com> - 0:1.29.4-3
|
||||
- convert license to SPDX
|
||||
|
||||
* Wed Jul 17 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0:1.29.4-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
||||
|
||||
* Tue Apr 30 2024 Bradley G Smith <bradley.g.smith@gmail.com> - 0:1.29.4-1
|
||||
- Bump to v1.29.4
|
||||
- Resolves CVE-2024-3154, a security flaw where CRI-O allowed users to specify annotations that changed specific fields in the runtime.
|
||||
|
||||
* Sat Apr 27 2024 Bradley G Smith <bradley.g.smith@gmail.com> - 0:1.29.3-1
|
||||
- Bump to v1.29.3
|
||||
- Add support for autogenerated bundled provides
|
||||
- Remove otelttrpc patch added in v1.29.2 to fix rpm build error. No longer needed.
|
||||
|
||||
* Thu Mar 21 2024 Peter Hunt <pehunt@redhat.com> - 0:1.29.2-1
|
||||
- bump to v1.29.2
|
||||
|
||||
* Sun Feb 11 2024 Maxwell G <maxwell@gtmx.me> - 0:1.28.2-5
|
||||
- Rebuild for golang 1.22.0
|
||||
|
||||
* Sun Feb 11 2024 Maxwell G <maxwell@gtmx.me> - 0:1.28.2-4
|
||||
- Rebuild for golang 1.22.0
|
||||
|
||||
* Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0:1.28.2-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0:1.28.2-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Mon Dec 04 2023 Christian Glombek <cglombek@redhat.com> - 0:1.28.2-1
|
||||
- bump to v1.28.2
|
||||
|
||||
* Thu Aug 24 2023 Peter Hunt <pehunt@redhat.com> - 0:1.28.0-1
|
||||
- bump to v1.28.0
|
||||
|
||||
* Thu Jul 20 2023 T K Chandra Hasan <t.k.chandra.hasan@ibm.com> - 0:1.27.1-1
|
||||
- bump to v1.27.1
|
||||
|
||||
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0:1.27.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||
|
||||
* Tue Apr 25 2023 Peter Hunt <pehunt@redhat.com> - 0:1.27.0-1
|
||||
- bump to v1.27.0
|
||||
|
||||
* Wed Jan 25 2023 Peter Hunt~ <pehunt@redhat.com> - 0:1.26.1-2
|
||||
- update for obs
|
||||
|
||||
* Tue Jan 10 2023 Peter Hunt~ <pehunt@redhat.com> - 0:1.26.1-1
|
||||
- bump to v1.26.1
|
||||
|
||||
* Fri Dec 23 2022 Peter Hunt~ <pehunt@redhat.com> - 0:1.26.0-1
|
||||
- bump to v1.26.0
|
||||
|
||||
* Fri Oct 07 2022 Peter Hunt~ <pehunt@redhat.com> - 0:1.25.1-1
|
||||
- bump to v1.25.1
|
||||
|
||||
|
|
@ -593,7 +665,7 @@ sed -i -e 's/,metacopy=on//g' /etc/containers/storage.conf
|
|||
- Configurable image volume support
|
||||
- Bugs and Stability fixes
|
||||
- OCI 1.0 runtime support
|
||||
- Dropped internal runc, and now use systems runc
|
||||
- Dropped internal runc, and now use systems runc
|
||||
|
||||
* Fri Jun 30 2017 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.0.0.alpha.0-1.git91977d3
|
||||
- built commit 91977d3
|
||||
|
|
|
|||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
SHA512 (cri-o-1.25.1.tar.gz) = 73b3267583b049e6aa51c1f208512d8e77bc296c34b3ad37977ee57e085b208496e11957c5cc4b55a6b4e2cc728599ce65624233d4d5a4bdc837f0dddb569323
|
||||
SHA512 (cri-o-1.32.0.tar.gz) = 800091f74a3176edfee207cdb85b207913d9433d3d6fa5f5ba971d026fd5d5a5daaee646cb8f983bceea5c4f75cb75a0093ae835b77cca2567de00819d400f96
|
||||
|
|
|
|||
53
tests/test_crio.sh
Executable file
53
tests/test_crio.sh
Executable file
|
|
@ -0,0 +1,53 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# Simple wrapper for cri-o tests
|
||||
#
|
||||
|
||||
set -x
|
||||
|
||||
exec >/tmp/test.debug.log 2>&1
|
||||
|
||||
echo "************************************************************************"
|
||||
echo "* This log contains the output from test_crio.sh."
|
||||
echo "*"
|
||||
echo "* It is almost certainly not what you want. What you want is"
|
||||
echo "* probably test.full.log , which is the output of test_runner.sh ,"
|
||||
echo "* the actual cri-o tests."
|
||||
echo "************************************************************************"
|
||||
|
||||
rm -f /tmp/test.log /tmp/test.full.log
|
||||
|
||||
cd /usr/share/cri-o/test
|
||||
|
||||
# Gah
|
||||
cp --force redhat_sigstore.yaml \
|
||||
/etc/containers/registries.d/registry.access.redhat.com.yaml
|
||||
|
||||
export CRIO_CNI_PLUGIN=/usr/libexec/cni
|
||||
export PAUSE_BINARY=/usr/libexec/crio/pause
|
||||
export CRIO_BINARY=/usr/bin/crio
|
||||
export CONMON_BINARY=/usr/libexec/crio/conmon
|
||||
export SECCOMP_PROFILE=/etc/crio/seccomp.json
|
||||
|
||||
./test_runner.sh &> /tmp/test.full.log
|
||||
|
||||
status=$?
|
||||
|
||||
# Sample output from cri-tests:
|
||||
#
|
||||
# not ok 35 ctr update resources
|
||||
# ok 84 pod stop idempotent with ctrs already stopped
|
||||
# ok 86 # skip (need systemd cgroup manager) invalid systemd cgroup_parent
|
||||
#
|
||||
# convert those to:
|
||||
#
|
||||
# FAIL 35 ctr ...
|
||||
# PASS 84 pod stop ...
|
||||
#
|
||||
sed -n \
|
||||
-e 's/^ok /PASS /p' \
|
||||
-e 's/^not ok /FAIL /p' \
|
||||
</tmp/test.full.log \
|
||||
>/tmp/test.log
|
||||
|
||||
exit $status
|
||||
36
tests/test_crio.yml
Normal file
36
tests/test_crio.yml
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
---
|
||||
- hosts: localhost
|
||||
vars:
|
||||
- artifacts: ./artifacts
|
||||
tags:
|
||||
- classic
|
||||
- container
|
||||
# - atomic
|
||||
|
||||
tasks:
|
||||
- name: install integration tests
|
||||
dnf: name={{ item }} state=present enablerepo=updates-testing
|
||||
with_items:
|
||||
- cri-o
|
||||
- cri-o-integration-tests
|
||||
- cri-tools
|
||||
- nmap-ncat
|
||||
- socat
|
||||
- containernetworking-cni
|
||||
- conntrack-tools
|
||||
- python2
|
||||
- bats
|
||||
|
||||
- block:
|
||||
- name: Run test
|
||||
script: ./test_crio.sh
|
||||
always:
|
||||
- name: Pull out logs
|
||||
fetch:
|
||||
src: "/tmp/{{ item }}"
|
||||
dest: "{{ artifacts }}/{{ item }}"
|
||||
flat: yes
|
||||
with_items:
|
||||
- test.log
|
||||
- test.debug.log
|
||||
- test.full.log
|
||||
1
tests/tests.yml
Normal file
1
tests/tests.yml
Normal file
|
|
@ -0,0 +1 @@
|
|||
- import_playbook: test_crio.yml
|
||||
Loading…
Add table
Add a link
Reference in a new issue