ART-14453: Use rpm-ostree install directly in legacy build pipeline#1935
ART-14453: Use rpm-ostree install directly in legacy build pipeline#1935locriandev wants to merge 2 commits into
Conversation
Replace rpm-ostree experimental compose treefile-apply with direct rpm-ostree install and inline postprocess steps. This aligns the legacy build-node-image.sh with the Konflux approach while maintaining support for SCOS/OKD variant detection. Changes: - Replace treefile-apply with rpm-ostree install command - Move all postprocess steps from packages-openshift.yaml inline - Remove packages-openshift.yaml (no longer needed) - Keep OPENSHIFT_VERSION=5.0 for master branch - Preserve SCOS/OKD detection using ID and VERSION_ID heuristic Related: openshift#1932 Co-Authored-By: Claude Sonnet 4.5 <[email protected]> rh-pre-commit.version: 2.3.2 rh-pre-commit.check-secrets: ENABLED
|
@locriandev: GitHub didn't allow me to request PR reviews from the following users: openshift/team-coreos. Note that only openshift members and repo collaborators can review this PR, and authors cannot review their own PRs. DetailsIn response to this:
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. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: locriandev The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
@locriandev: This pull request references ART-14453 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "5.0.0" version, but no target version was set. DetailsIn response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
|
Maybe we should go one step further and use dnf directly? |
|
Something is off here: |
When using rpm-ostree install directly, all repos from ci/get-ocp-repo.sh (which fetches both rhel-9 and rhel-10.2 repos) were being accessed, causing 401 errors when trying to access repos for the wrong OS version. This commit adds logic to disable repos that don't match the current OS: - rhel-9.8 builds: disable rhel-10.2 and centos repos - rhel-10.2 builds: disable rhel-9 and centos repos - centos-10 builds: disable all rhel repos This replicates the conditional-include logic from packages-openshift.yaml. Co-Authored-By: Claude Sonnet 4.5 <[email protected]> rh-pre-commit.version: 2.3.2 rh-pre-commit.check-secrets: ENABLED
|
@travier Thanks for the feedback! Re: dnf adoptionI have not strong opinions on this, as I understand it the adoption of rpm-ostree install came out as a suggestion from last meeting's notes. Re: the repo 401 errorsGood catch! The issue was that I've pushed a fix (a4808ee) that disables repos not matching the current OS version:
This should resolve the 401 errors. |
|
@locriandev: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions 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. |
Summary
Per feedback on #1932, this PR updates the legacy build pipeline to use
rpm-ostree installdirectly instead ofrpm-ostree experimental compose treefile-applywithpackages-openshift.yaml.Changes
rpm-ostree experimental compose treefile-applywith directrpm-ostree installcommand, embedding all postprocess steps inlinepackages-openshift.yamlare now embedded inline inbuild-node-image.shRelated: #1932