ci(e2e): add RHEL 10 Docker/Podman/SELinux compatibility suite#2093
Open
ericcurtin wants to merge 1 commit into
Open
ci(e2e): add RHEL 10 Docker/Podman/SELinux compatibility suite#2093ericcurtin wants to merge 1 commit into
ericcurtin wants to merge 1 commit into
Conversation
PR NVIDIA#2092 adds SELinux relabeling (:z/:Z) support to the Docker and Podman driver bind mounts, but our existing E2E lanes run inside the Ubuntu-based ghcr.io/nvidia/openshell/ci container image, which does not enforce SELinux. That leaves the new relabeling behavior, and any future SELinux-sensitive change, without a host that can actually deny a mislabeled mount. Add an opt-in `test:e2e-rhel` label that runs a new reusable workflow, e2e-rhel-selinux.yml, on a bare (non-containerized) RHEL 10 runner. The job installs Docker Engine alongside RHEL's preinstalled Podman using the commands from the PR discussion (get.docker.com plus the --ip-forward-no-drop dockerd override needed for the two engines to coexist), verifies SELinux is enforcing, runs the standard e2e:docker and e2e:podman suites against both engines on the same host, and fails the job if the audit log shows AVC denials during the run. This requires an org-provisioned GitHub-hosted "larger runner" using the RHEL 10 partner image (public preview per the June 2026 GitHub changelog) under the linux-amd64-rhel10 label; until that runner exists, jobs using the default label will queue. The suite is wired in as optional/non-blocking, matching the existing test:e2e-kubernetes pattern, since it exercises unproven infrastructure. Documentation in CI.md and CONTRIBUTING.md is updated to list the new label alongside the existing E2E labels. Signed-off-by: Eric Curtin <eric.curtin@docker.com>
7 tasks
Contributor
Author
|
I think an org admin has to turn on RHEL 10 runners though |
Collaborator
|
This looks good to me, but I think you're right on needing an admin. cc @drew @TaylorMutch |
Contributor
Author
We could theoretically do CentOS Stream VMs to work around this, would be good enough... |
Collaborator
|
@ericcurtin yeah, good point. It probably makes sense too since CentOS Stream more community upstream oriented than RHEL. I do love me some RHEL but this is probably a better fit for CentOS Stream. |
maxamillion
approved these changes
Jul 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds an opt-in E2E suite that installs Docker Engine alongside RHEL's preinstalled Podman on a bare RHEL 10 runner, verifies SELinux is enforcing, and runs the standard
e2e:dockerande2e:podmansuites against both engines on the same SELinux-enforcing host, per the discussion in #2092.Related Issue
Follow-up to the CI request in #2092 (comment).
Changes
.github/workflows/e2e-rhel-selinux.yml:dockerdand read real SELinux/audit state (a step running inside our usualghcr.io/nvidia/openshell/cicontainer can't do either).get.docker.comand applies the--ip-forward-no-dropdockerdoverride from the linked comment so Docker and Podman coexist on one host.Enforcing, so the suite can't silently pass on a permissive host.mise run e2e:dockerthenmise run e2e:podmanagainst the built supervisor image.:z/:Zsupport being added in feat(docker,podman): add SELinux label support for bind mounts #2092).branch-e2e.ymlbehind a newtest:e2e-rhellabel, following the existingtest:e2e-kubernetespattern (optional, not part of the required CI gate, since it's new/unproven runner infrastructure).e2e-label-help.yml,CI.md, andCONTRIBUTING.mdto document the new label.Note on runner provisioning
This requires an org-provisioned GitHub-hosted "larger runner" using the RHEL 10 partner image, labeled
linux-amd64-rhel10(the workflow's defaultrunnerinput). That provisioning happens in GitHub org settings and isn't something this PR can do; until it exists,test:e2e-rhelruns will queue. Therunnerinput is overridable if a different label is preferred.Testing
actionlint(no new findings; pre-existingrunner-labelwarnings are unrelated, caused by noactionlint.yamlrunner-label config in the repo)mise run markdown:lintpassesupdate_license_headers.py --check) passeslinux-amd64-rhel10runner is provisioned yet, and no Rust/Python source changed, somise run pre-commit's Rust/Python checks weren't re-runChecklist