File tree Expand file tree Collapse file tree 6 files changed +28
-1
lines changed Expand file tree Collapse file tree 6 files changed +28
-1
lines changed Original file line number Diff line number Diff line change @@ -123,6 +123,9 @@ build_task:
123
123
DISTRO_NV : ${DEBIAN_NAME}
124
124
VM_IMAGE_NAME : ${DEBIAN_CACHE_IMAGE_NAME}
125
125
CI_DESIRED_RUNTIME : runc
126
+ CI_DESIRED_NETWORK : netavark
127
+ # Ignore cgroups-v1 warnings on debian
128
+ PODMAN_IGNORE_CGROUPSV1_WARNING : true
126
129
env :
127
130
TEST_FLAVOR : build
128
131
# NOTE: The default way Cirrus-CI clones is *NOT* compatible with
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ EPOCH_TEST_COMMIT="$CIRRUS_BASE_SHA"
95
95
# contexts, such as host->container or root->rootless user
96
96
#
97
97
# List of envariables which must be EXACT matches
98
- PASSTHROUGH_ENV_EXACT=' CGROUP_MANAGER|DEST_BRANCH|DISTRO_NV|GOCACHE|GOPATH|GOSRC|OCI_RUNTIME|ROOTLESS_USER|SCRIPT_BASE|SKIP_USERNS|EC2_INST_TYPE|PODMAN_DB|STORAGE_FS'
98
+ PASSTHROUGH_ENV_EXACT=' CGROUP_MANAGER|DEST_BRANCH|DISTRO_NV|GOCACHE|GOPATH|GOSRC|NETWORK_BACKEND| OCI_RUNTIME|PODMAN_IGNORE_CGROUPSV1_WARNING |ROOTLESS_USER|SCRIPT_BASE|SKIP_USERNS|EC2_INST_TYPE|PODMAN_DB|STORAGE_FS'
99
99
100
100
# List of envariable patterns which must match AT THE BEGINNING of the name.
101
101
PASSTHROUGH_ENV_ATSTART=' CI|LANG|LC_|TEST'
Original file line number Diff line number Diff line change @@ -393,6 +393,15 @@ func makeRuntime(runtime *Runtime) (retErr error) {
393
393
runtime .mergeDBConfig (dbConfig )
394
394
395
395
unified , _ := cgroups .IsCgroup2UnifiedMode ()
396
+ // DELETE ON RHEL9
397
+ if ! unified {
398
+ _ , ok := os .LookupEnv ("PODMAN_IGNORE_CGROUPSV1_WARNING" )
399
+ if ! ok {
400
+ logrus .Warn ("Using cgroups-v1 which is deprecated in favor of cgroups-v2 with Podman v5 and will be removed in a future version. Set environment variable `PODMAN_IGNORE_CGROUPSV1_WARNING` to hide this warning." )
401
+ }
402
+ }
403
+ // DELETE ON RHEL9
404
+
396
405
if unified && rootless .IsRootless () && ! systemd .IsSystemdSessionValid (rootless .GetRootlessUID ()) {
397
406
// If user is rootless and XDG_RUNTIME_DIR is found, podman will not proceed with /tmp directory
398
407
// it will try to use existing XDG_RUNTIME_DIR
Original file line number Diff line number Diff line change @@ -211,6 +211,11 @@ when `%{_bindir}/%{name}sh` is set as a login shell or set as os.Args[0].
211
211
%autosetup -Sgit -n %{name }-%{version_no_tilde }
212
212
sed -i ' s;@@PODMAN@@\;$(BINDIR);@@PODMAN@@\;%{_bindir};' Makefile
213
213
214
+ # cgroups-v1 is supported on rhel9
215
+ %if 0%{?rhel } == 9
216
+ sed -i '/DELETE ON RHEL9/,/DELETE ON RHEL9/d' libpod/runtime.go
217
+ %endif
218
+
214
219
# These changes are only meant for copr builds
215
220
%if %{defined copr_build }
216
221
# podman --version should show short sha
Original file line number Diff line number Diff line change @@ -88,6 +88,11 @@ verify_iid_and_name() {
88
88
skip " impossible due to pitfalls in our SSH implementation"
89
89
fi
90
90
91
+ # See https://github.com/containers/podman/pull/21431
92
+ if [[ -n " $PODMAN_IGNORE_CGROUPSV1_WARNING " ]]; then
93
+ skip " impossible to test due to pitfalls in our SSH implementation"
94
+ fi
95
+
91
96
# The testing is the same whether we're root or rootless; all that
92
97
# differs is the destination (not-me) username.
93
98
if is_rootless; then
Original file line number Diff line number Diff line change @@ -153,6 +153,11 @@ Notify=yes
153
153
LogDriver=passthrough
154
154
EOF
155
155
156
+ # FIXME: Temporary until podman fully removes cgroupsv1 support; see #21431
157
+ if [[ -n " $PODMAN_IGNORE_CGROUPSV1_WARNING " ]]; then
158
+ skip " Way too complicated to test under cgroupsv1, and not worth the effort"
159
+ fi
160
+
156
161
run_quadlet " $quadlet_file "
157
162
service_setup $QUADLET_SERVICE_NAME
158
163
You can’t perform that action at this time.
0 commit comments