Support CentOS Stream 9 and 10 builds with CI provider selection #4348
Hi @pelefant. Thanks for your PR.
PRs from untrusted users cannot be marked as trusted with /ok-to-test in this repo meaning untrusted PR authors can never trigger tests themselves. Collaborators can still trigger tests on the PR using /test all.
I understand the commands that are listed here.
<details>
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.
</details>
/ok-to-test
/cc @davmarro @akalenyu @awels
/ok-to-test
/test all

coverage: 50.92% (+0.002%) from 50.918% — pelefant:cnv-98989-cs9-cs10-selector into kubevirt:main
/cc
/test all
/test all
Do we actually care about the version of centos running on the k8s node? Would e.g. C10s userspace tested on C9 node not be good enough for us?
/test all
Good point. CDI doesn't really need a CS10 node to test the CS10 userspace. The images only share the node kernel.
I picked k8s-1.37 just to follow what KubeVirt does, so both the node and the images are CS10.
For the Ceph WFFC lane we can keep k8s-1.36 and set CDI_CENTOS_STREAM_VERSION=10 explicitly. Same CS10 coverage on Ceph, no provider change.
Would you prefer that for this lane?
/test all
/retest
@pelefant: PRs from untrusted users cannot be marked as trusted with /ok-to-test in this repo meaning untrusted PR authors can never trigger tests themselves. Collaborators can still trigger tests on the PR using /test.
<details>
In response to this:
>/retest
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.
</details>
/test pull-containerized-data-importer-fossa
/test pull-containerized-data-importer-fossa
@pelefant: PRs from untrusted users cannot be marked as trusted with /ok-to-test in this repo meaning untrusted PR authors can never trigger tests themselves. Collaborators can still trigger tests on the PR using /test.
<details>
In response to this:
>/test pull-containerized-data-importer-fossa
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.
</details>
I guess there's nothing to lose though. For the wffc lane we could decide to do 1.37 and have complete 10 coverage, in parity with kubevirt
Makes sense, thanks! I'll revert the ceph-wffc change from this PR and leave the lane matrix to #4368
/test all
/test all
/test pull-containerized-data-importer-e2e-upg
/lgtm
/test pull-containerized-data-importer-fossa
@pelefant: PRs from untrusted users cannot be marked as trusted with /ok-to-test in this repo meaning untrusted PR authors can never trigger tests themselves. Collaborators can still trigger tests on the PR using /test.
<details>
In response to this:
>/test pull-containerized-data-importer-fossa
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.
</details>
/test pull-containerized-data-importer-fossa
/approve
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: <a href="https://github.com/kubevirt/containerized-data-importer/pull/4348#pullrequestreview-6157584382" title="Approved">awels</a>
The full list of commands accepted by this bot can be found here.
The pull request process is described here
<details >
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment
</details>
<!-- META={"approvers":[]} -->
@pelefant: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:
Test name | Commit | Details | Required | Rerun command
--- | --- | --- | --- | ---
pull-containerized-data-importer-fossa | 4b1cb7f1f2f2a5ea32cc0830c3bb59037a5036bc | link | false | /test pull-containerized-data-importer-fossa
pull-containerized-data-importer-e2e-istio | 4b1cb7f1f2f2a5ea32cc0830c3bb59037a5036bc | link | unknown | /test pull-containerized-data-importer-e2e-istio
pull-containerized-data-importer-non-csi-hpp | 4b1cb7f1f2f2a5ea32cc0830c3bb59037a5036bc | link | unknown | /test pull-containerized-data-importer-non-csi-hpp
pull-containerized-data-importer-e2e-hpp-latest | 4b1cb7f1f2f2a5ea32cc0830c3bb59037a5036bc | link | unknown | /test pull-containerized-data-importer-e2e-hpp-latest
pull-containerized-data-importer-e2e-destructive | 4b1cb7f1f2f2a5ea32cc0830c3bb59037a5036bc | link | unknown | /test pull-containerized-data-importer-e2e-destructive
pull-containerized-data-importer-e2e-hpp-previous | 4b1cb7f1f2f2a5ea32cc0830c3bb59037a5036bc | link | unknown | /test pull-containerized-data-importer-e2e-hpp-previous
pull-containerized-data-importer-e2e-upg | 4b1cb7f1f2f2a5ea32cc0830c3bb59037a5036bc | link | unknown | /test pull-containerized-data-importer-e2e-upg
<details>
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.
</details>
<!-- test report -->
awels
pelefant
<!-- Thanks for sending a pull request! Here are some tips for you:
1. Follow the instructions for writing a release note from k8s: https://git.k8s.io/community/contributors/guide/release-notes.md
-->
What this PR does / why we need it:
Add support for building CDI images with CentOS Stream 9 or 10. CS9 remains the default for local builds, while
automation/test.shselects the stream based on the kubevirtci provider: CS10 fork8s-1.37and later, CS9 otherwise. An explicitCDI_CENTOS_STREAM_VERSIONoverrides the automatic selection.CDI_CENTOS_STREAM_VERSION=10selects the CS10 builder. Build scripts pass--config=cs10to select the EL10 RPM trees through aliases inbazel/centos_streamand the GCC 14 s390x cross toolchain. Direct Bazel invocations through the wrapper must also include--config=cs10.The existing EL9 RPM rules and trees are preserved. CS9 and CS10 use separate persistent builder containers and volumes. Existing CS9 container and volume names remain unchanged.
Bump bazeldnf from v0.5.9 to v0.99.1 for zstd-compressed repository metadata. Load its rules directly from
@bazeldnf//bazeldnfto bypass the broken root shim.Use EPEL 10 for
python3-pycurlon x86_64 and aarch64. Explicitly selectopenssl-fips-providerin all CS10 RPM trees andcrunin the CS10 testimage trees.Fix nested Buildah builds in the functional test registry. CS10 test images ship Buildah 1.45 (CS9 ships 1.43), and the
k8s-1.37CI lanes now build them. Use thevfsstorage driver without relying on/etc/containers/storage.conf, and place temporary build-context data on the shared volume to avoid the overlay mount issue described in Buildah #6892. The fix was validated on CS10 and CS9.Explicitly include gzip in the CS10 test images, required by the VDDK simulator to extract its binaries. Regenerate the CS10 RPM dependency trees, including updated package versions from the current CentOS Stream repositories. CS9 dependencies remain unchanged. The new rpm() rules get builddeps mirror URLs from periodic-kubevirt-mirror-uploader after merge, like the other CS10 rules.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)format, will close the issue(s) when PR gets merged):Part of CNV-98989: runtime images EL10 and CS9/CS10 build selection.
Special notes for your reviewer:
Validation was performed locally with Podman:
| Configuration | Validation |
| --- | --- |
| CS9 x86_64 | bazeldnf bootstrap and four RPM layers built through aliases; layer checksums match the baseline |
| CS9 aarch64 and s390x | Cross builds of importer, uploadserver and base images; ELF architecture and version requirements inspected |
| CS10 x86_64 | All 22 images in the publication set built |
| CS10 aarch64 | All 18 images in the publication set built; OCI platform metadata checked |
| CS10 s390x | All 17 images in the publication set built; OCI platform metadata checked |
| CS10 RPM layers | All 12 trees built |
| CS10 cross ABI | Loader, architecture and required symbol versions checked against direct library dependencies in the importer and uploadserver RPM layers |
| Both streams |
in-docker.shexecuted successfully || Stream detection |
detect_centos_stream_versionchecked withk8s-1.36,k8s-1.37,k8s-1.38,external,kind-1.37,openshift, empty providers, and explicit CS9/CS10 overrides || CS9 kubevirtci (
k8s-1.35, amd64) |make cluster-syncpassed; CDIDeployed; all CDI and test infrastructure pods Ready, including the functional test registry || CS10 kubevirtci (
k8s-1.37, amd64) |make cluster-syncpassed; CDIDeployed; all CDI and test infrastructure pods Ready; controller runtime verified as CentOS Stream 10 |The functional test registry successfully built and pushed its test images with the updated Buildah configuration on both CS9 and CS10. The full CDI functional suite was not run locally.
Additional CS10 amd64 checks passed:
file://, with byte-for-byte output comparison.The HTTP/HTTPS importer tests transferred the disk data through the Go HTTP client and converted it locally through scratch. They do not demonstrate bulk disk transfer through nbdkit over HTTP/HTTPS.
All 560 EL9 RPM rules and 15 EL9 trees remain unchanged. Some EL9 rules appear as removed and re-added in the
WORKSPACEdiff due to rule ordering; their content is unchanged. Final RPM regeneration produced identical generated files, and the importer build passed after removing the unusedaction_env.The EPEL 10 key fingerprint
7D8D15CBFC4E62688591FB2633D98517E37ED158was verified against https://fedoraproject.org/security/. Both pinnedpython3-pycurlRPMs passed checksum andrpmkeys --checksigverification with that key.Implementation and scope notes:
WORKSPACEis formatter output.rpm()rules and the new bazeldnf archive do not have builddeps mirror URLs yet. They are covered byperiodic-kubevirt-mirror-uploader, which processes CDI'sWORKSPACEonmainafter merge.openssl-fips-providerdoes not establish FIPS validation.k8s-1.37or later and CS9 with olderk8s-*or other providers, unless explicitly overridden. This PR does not add new CI lanes, change the default stream for local builds, or switch the published images to CS10. CS9 CI coverage currently comes from thek8s-1.36lanes; if those lanes move to a newer provider before CS9 support ends, at least one lane should explicitly setCDI_CENTOS_STREAM_VERSION=9to retain CS9 coverage.bazel-build-images.shreferences//:test-container-images, which is already absent in the base commit. The image matrix above was built using the image targets referenced by the publication rules.Release note:
<!-- Write your release note:
1. Enter your extended release note in the below block. If the PR requires additional action from users switching to the new release, include the string "action required".
2. If no release note is required, just write "NONE".
-->
``
release-note
``NONE