Skip to content

NO-JIRA: Initial rhel 10 variant#1786

Merged
openshift-merge-bot[bot] merged 7 commits intoopenshift:masterfrom
jbtrystram:rhel10
Apr 9, 2025
Merged

NO-JIRA: Initial rhel 10 variant#1786
openshift-merge-bot[bot] merged 7 commits intoopenshift:masterfrom
jbtrystram:rhel10

Conversation

@jbtrystram
Copy link
Copy Markdown
Contributor

REQUIRES #1498

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Apr 3, 2025
@openshift-ci-robot
Copy link
Copy Markdown

@jbtrystram: This pull request explicitly references no jira issue.

Details

In response to this:

REQUIRES #1498

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.

@openshift-ci openshift-ci Bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Apr 3, 2025
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Apr 3, 2025

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Apr 3, 2025
@openshift-ci openshift-ci Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 3, 2025
@jbtrystram
Copy link
Copy Markdown
Contributor Author

jbtrystram commented Apr 3, 2025

 [rhcos] cat tmp/kola/test.tap | grep "not ok"   
not ok - fips.enable.partitions
not ok - non-exclusive-test-bucket-0
not ok - ext.config.shared.containers.quadlet
not ok - multipath.day2
not ok - fips.enable
not ok - ext.config.rpm-ostree.replace-rt-kernel
not ok - multipath.day1
not ok - ostree.sync
not ok - ext.config.shared.networking.team-dhcp-via-ignition
not ok - crio.base

@openshift-merge-robot openshift-merge-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Apr 4, 2025
@jbtrystram jbtrystram marked this pull request as ready for review April 4, 2025 18:02
@openshift-ci openshift-ci Bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Apr 4, 2025
@openshift-ci openshift-ci Bot requested review from HuijingHei and yasminvalim April 4, 2025 18:02
@jbtrystram jbtrystram force-pushed the rhel10 branch 2 times, most recently from e0528bc to d6c82f6 Compare April 5, 2025 10:07
Copy link
Copy Markdown
Member

@jlebon jlebon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add rhel-10.1 to the variants list in the README.

Comment thread manifest-ocp-rhel-10.1.yaml Outdated
@jlebon
Copy link
Copy Markdown
Member

jlebon commented Apr 5, 2025

We need something like

diff --git a/build-node-image.sh b/build-node-image.sh
index 658c97e..f4febf1 100755
--- a/build-node-image.sh
+++ b/build-node-image.sh
@@ -35,7 +35,7 @@ mkdir -p /var/opt
 
 # this is where all the real work happens
 rpm-ostree experimental compose treefile-apply \
-    --var id=$ID /run/src/packages-openshift.yaml
+    --var osversion=$ID-$VERSION_ID /run/src/packages-openshift.yaml
 
 # cleanup any repo files we injected
 rm -f /etc/yum.repos.d/{ocp,git,okd}.repo
diff --git a/manifest-c10s.yaml b/manifest-c10s.yaml
index fedc532..c878960 100644
--- a/manifest-c10s.yaml
+++ b/manifest-c10s.yaml
@@ -6,8 +6,7 @@ metadata:
   summary: CentOS Stream CoreOS 10
 
 variables:
-  id: "centos"
-  osversion: "c10s"
+  osversion: "centos-10"
   inherit_tier_x: true
 
 # Include manifests common to all RHEL and CentOS Stream versions
diff --git a/manifest-c9s.yaml b/manifest-c9s.yaml
index 6cd434e..bb18d01 100644
--- a/manifest-c9s.yaml
+++ b/manifest-c9s.yaml
@@ -6,8 +6,7 @@ metadata:
   summary: CentOS Stream CoreOS 9
 
 variables:
-  id: "centos"
-  osversion: "c9s"
+  osversion: "centos-9"
   inherit_tier_x: true
 
 # Include manifests common to all RHEL and CentOS Stream versions
diff --git a/manifest-rhel-9.6.yaml b/manifest-rhel-9.6.yaml
index 70189d0..d0a3c9b 100644
--- a/manifest-rhel-9.6.yaml
+++ b/manifest-rhel-9.6.yaml
@@ -6,7 +6,6 @@ metadata:
   summary: RHEL CoreOS 9.6
 
 variables:
-  id: "rhel"
   osversion: "rhel-9.6"
   inherit_tier_x: true
 
diff --git a/packages-openshift.yaml b/packages-openshift.yaml
index 3e8c956..241b63f 100644
--- a/packages-openshift.yaml
+++ b/packages-openshift.yaml
@@ -5,7 +5,7 @@ metadata:
   ocp_version: "4.19"
 
 conditional-include:
-  - if: id == "rhel"
+  - if: osversion == "rhel-9.6"
     include:
       repos:
         - rhel-9.6-baseos
@@ -13,7 +13,15 @@ conditional-include:
         - rhel-9.6-early-kernel
         - rhel-9.6-fast-datapath
         - rhel-9.6-server-ose-4.19
-  - if: id == "centos"
+  - if: osversion == "rhel-10.1"
+    include:
+      repos:
+        - rhel-10.1-baseos
+        - rhel-10.1-appstream
+        - rhel-10.1-early-kernel
+        - rhel-10.1-fast-datapath
+        - rhel-10.1-server-ose-4.19
+  - if: osversion == "c9s"
     include:
       repos:
         - c9s-baseos
@@ -22,6 +30,15 @@ conditional-include:
         - c9s-sig-cloud-okd
         # XXX: this shouldn't be here; see related XXX in Containerfile
         - rhel-9.6-server-ose-4.19-okd
+  - if: osversion == "c10s"
+    include:
+      repos:
+        - c10s-baseos
+        - c10s-appstream
+        - c10s-sig-nfv
+        - c10s-sig-cloud-okd
+        # XXX: this shouldn't be here; see related XXX in Containerfile
+        - rhel-10.1-server-ose-4.19-okd
 
 packages:
   # The packages below are required by OpenShift/OKD

And adapt the osversions in kola-denylist as well.

Also update openshift/release to also build a rhel-coreos-next image that will build FROM the RHEL 10 base image once we have that up and running.

@jbtrystram jbtrystram force-pushed the rhel10 branch 2 times, most recently from 29372b4 to 384eed2 Compare April 7, 2025 12:33
Copy link
Copy Markdown
Contributor

@joelcapitao joelcapitao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See my inline comments, otherwise LGTM

Comment thread kola-denylist.yaml Outdated
Comment thread kola-denylist.yaml Outdated
# To be removed once 3434 merged and contained in next fedora-coreos-config
# submodule bump
- pattern: ext.config.shared.networking.team-dhcp-via-ignition
tracker: https://github.com/coreos/fedora-coreos-config/pull/3434
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we keep #1759 (comment) as tracker and remove comments l.83-84 which are outdated.
Same comment goes for ext.config.shared.networking.nm-ifcfg-rh-plugin as well.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated the tracker entry to the original issue and updated the comment to the f-c-c bump

@jbtrystram jbtrystram force-pushed the rhel10 branch 2 times, most recently from 5850066 to 4044a42 Compare April 7, 2025 14:59
@dustymabe
Copy link
Copy Markdown
Member

@jbtrystram @jcapiitao I created a PR against my fork over in dustymabe#2

Some various fixups in there and also some new commits from me. Check it out and if you think things look good I can push that up here (with the fixups squashed of course). You can also comment there if you have any questions.

@jbtrystram
Copy link
Copy Markdown
Contributor Author

jbtrystram commented Apr 8, 2025

This requires openshift/release#63561 and a similar in ocp-build-data, example : openshift-eng/ocp-build-data#6169

Since the repo has all architectures in it let's move it to the
top global repos list as instructed to do so by the rule in the
comment above the global repo list.
@dustymabe
Copy link
Copy Markdown
Member

This should be ready for review now. CI will still fail because of a few issues, but they should be fixed without needed code changes to this PR.

dustymabe and others added 3 commits April 8, 2025 13:16
This enables us to build rhel-9.6, c9s, c10s, etc...

Note that we still do a container build for the non-layered
4.19-9.6 stream for now via `cosa buildextend-extensions-container`.
We handle that here to by translating from the openshift version
to the RHEL version.
jbtrystram and others added 3 commits April 8, 2025 18:43
We now need to support both EL9 and EL10.
Using the conditionnal includes for treefiles
added in [1], update `osversion` to contain the
variant (centos/rhel) and the major version.

This allows the layered build to source
`/etc/release` and include the correct repos.

Update denylist entries to matcht that.

[1] openshift#1780
Update the image.yaml for c10s and rhel-10.1 to enable EROFS
for the filesystem used for the Live ISO/PXE rootfs.

https://issues.redhat.com/browse/COS-3121
One will be fixed with the next fedora-coreos-config submodule bump and
the other needs a new package build from the maintaining team.
@dustymabe
Copy link
Copy Markdown
Member

/retest ci/prow/e2e-aws

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Apr 9, 2025

@dustymabe: The /retest command does not accept any targets.
The following commands are available to trigger required jobs:

/test images
/test okd-scos-images
/test rhcos-9-build-test-metal
/test rhcos-9-build-test-qemu
/test rhcos-9next-build-test-metal
/test rhcos-9next-build-test-qemu
/test scos-10-build-test-metal
/test scos-10-build-test-qemu
/test scos-9-build-test-metal
/test scos-9-build-test-qemu
/test validate

The following commands are available to trigger optional jobs:

/test e2e-aws
/test okd-scos-e2e-aws-ovn

Use /test all to run all jobs.

Details

In response to this:

/retest ci/prow/e2e-aws

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.

@dustymabe
Copy link
Copy Markdown
Member

dustymabe commented Apr 9, 2025 via email

@HuijingHei
Copy link
Copy Markdown
Contributor

/test e2e-aws

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Apr 9, 2025

@jbtrystram: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-aws 4613b20 link false /test e2e-aws

Full PR test history. Your PR dashboard.

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.

@HuijingHei
Copy link
Copy Markdown
Contributor

From error:
error: Packages not found: kernel-devel-5.14.0-570.10.1.el9_6, kernel-headers-5.14.0-570.10.1.el9_6, kernel-rt-core-5.14.0-570.10.1.el9_6, kernel-rt-devel-5.14.0-570.10.1.el9_6, kernel-rt-kvm-5.14.0-570.10.1.el9_6, kernel-rt-modules-5.14.0-570.10.1.el9_6, kernel-rt-modules-extra-5.14.0-570.10.1.el9_6

Not sure why it still fetches kernel version 5.14.0-570.10.1.el9_6, the latest repo has 5.14.0-570.12.1.el9_6

@joelcapitao
Copy link
Copy Markdown
Contributor

From error: error: Packages not found: kernel-devel-5.14.0-570.10.1.el9_6, kernel-headers-5.14.0-570.10.1.el9_6, kernel-rt-core-5.14.0-570.10.1.el9_6, kernel-rt-devel-5.14.0-570.10.1.el9_6, kernel-rt-kvm-5.14.0-570.10.1.el9_6, kernel-rt-modules-5.14.0-570.10.1.el9_6, kernel-rt-modules-extra-5.14.0-570.10.1.el9_6

Not sure why it still fetches kernel version 5.14.0-570.10.1.el9_6, the latest repo has 5.14.0-570.12.1.el9_6

I suspect the PROW in-cluster mirror is (or was) not synced with the latest RHEL & OCP content, but dunno whether or not there is a sync issue. Maybe a retest would work. What's the synchronization frequency BTW ?

@joelcapitao
Copy link
Copy Markdown
Contributor

/lgtm

@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label Apr 9, 2025
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Apr 9, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jbtrystram, jcapiitao

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:
  • OWNERS [jbtrystram,jcapiitao]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot openshift-merge-bot Bot merged commit 0f860eb into openshift:master Apr 9, 2025
13 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants