Skip to content

Commit 384eed2

Browse files
committed
manifests: change osversion to be $ID-$VERSION
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
1 parent 71bfbaa commit 384eed2

6 files changed

Lines changed: 43 additions & 21 deletions

File tree

build-node-image.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
2-
set -euo pipefail
2+
set -euxo pipefail
33

4-
# This script builds the OpenShift node image. It's called from `Containerfile`. set -xeuo pipefail
4+
# This script builds the OpenShift node image. It's called from `Containerfile`.
55

66
# Avoid shipping modified .pyc files. Due to
77
# https://github.com/ostreedev/ostree/issues/1469, any Python apps that
@@ -35,7 +35,7 @@ mkdir -p /var/opt
3535

3636
# this is where all the real work happens
3737
rpm-ostree experimental compose treefile-apply \
38-
--var id=$ID /run/src/packages-openshift.yaml
38+
--var osversion=$ID-$VERSION_ID /run/src/packages-openshift.yaml
3939

4040
# cleanup any repo files we injected
4141
rm -f /etc/yum.repos.d/{ocp,git,okd}.repo

kola-denylist.yaml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,20 @@
66
- pattern: basic.uefi-secure
77
tracker: https://github.com/openshift/os/issues/1237
88
osversion:
9-
- c9s
10-
- c10s
9+
- centos-9
10+
- centos-10
1111

1212
- pattern: iso-live-login.uefi-secure
1313
tracker: https://github.com/openshift/os/issues/1237
1414
osversion:
15-
- c9s
16-
- c10s
15+
- centos-9
16+
- centos-10
1717

1818
- pattern: iso-as-disk.uefi-secure
1919
tracker: https://github.com/openshift/os/issues/1237
2020
osversion:
21-
- c9s
22-
- c10s
21+
- centos-9
22+
- centos-10
2323

2424
# The 4.17 and 4.18 build of Ignition encounters a FIPS panic so
2525
# we are using the 4.16 build for now while that is under investigation.
@@ -44,54 +44,54 @@
4444
- pattern: ostree.sync
4545
tracker: https://github.com/openshift/os/issues/1751
4646
osversion:
47-
- c10s
47+
- centos-10
4848
- rhel-10.1
4949

5050
# Will fail until we have proper RHEL 10 builds of OCP packages
5151
- pattern: ext.config.version.rhel-major-version
5252
tracker: TODO
5353
osversion:
54-
- c10s
54+
- centos-10
5555
- rhel-10.1
5656

5757
- pattern: multipath.day1
5858
tracker: https://github.com/coreos/fedora-coreos-tracker/issues/1894
5959
osversion:
60-
- c10s
60+
- centos-10
6161
- rhel-10.1
6262

6363
- pattern: multipath.day2
6464
tracker: https://github.com/coreos/fedora-coreos-tracker/issues/1894
6565
osversion:
66-
- c10s
66+
- centos-10
6767
- rhel-10.1
6868

6969
- pattern: ext.config.shared.root-reprovision.luks.multipath
7070
tracker: https://github.com/coreos/fedora-coreos-tracker/issues/1894
7171
osversion:
72-
- c10s
72+
- centos-10
7373
- rhel-10.1
7474

7575
# To be removed once 3433 merged and contained in next fedora-coreos-config
7676
# submodule bump
7777
- pattern: fips.enable
7878
tracker: https://github.com/coreos/fedora-coreos-config/pull/3433
7979
osversion:
80-
- c10s
80+
- centos-10
8181
- rhel-10.1
8282

8383
# To be removed once 3434 merged and contained in next fedora-coreos-config
8484
# submodule bump
8585
- pattern: ext.config.shared.networking.team-dhcp-via-ignition
8686
tracker: https://github.com/coreos/fedora-coreos-config/pull/3434
8787
osversion:
88-
- c10s
88+
- centos-10
8989
- rhel-10.1
9090
#
9191
# To be removed once 3434 merged and contained in next fedora-coreos-config
9292
# submodule bump
9393
- pattern: ext.config.shared.networking.nm-ifcfg-rh-plugin
9494
tracker: TODO
9595
osversion:
96-
- c10s
96+
- centos-10
9797
- rhel-10.1

manifest-c10s.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ metadata:
77

88
variables:
99
id: "centos"
10-
osversion: "c10s"
10+
osversion: "centos-10"
1111
inherit_tier_x: true
1212

1313
# Include manifests common to all RHEL and CentOS Stream versions

manifest-c9s.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ metadata:
77

88
variables:
99
id: "centos"
10-
osversion: "c9s"
10+
osversion: "centos-9"
1111
inherit_tier_x: true
1212

1313
# Include manifests common to all RHEL and CentOS Stream versions

manifest-rhel-10.1.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ metadata:
66
summary: RHEL CoreOS 10.1
77

88
variables:
9+
id: rhel
910
osversion: "rhel-10.1"
1011
inherit_tier_x: true
1112

packages-openshift.yaml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,27 @@ metadata:
55
ocp_version: "4.19"
66

77
conditional-include:
8-
- if: id == "rhel"
8+
- if: osversion == "rhel-9.6"
99
include:
1010
repos:
1111
- rhel-9.6-baseos
1212
- rhel-9.6-appstream
1313
- rhel-9.6-early-kernel
1414
- rhel-9.6-fast-datapath
1515
- rhel-9.6-server-ose-4.19
16-
- if: id == "centos"
16+
- if: osversion == "rhel-10.1"
17+
include:
18+
repos:
19+
- rhel-10.1-baseos
20+
- rhel-10.1-appstream
21+
#- rhel-10.1-early-kernel
22+
# XXX Not built for rhel 10 yet
23+
#- rhel-10.1-fast-datapath
24+
#- rhel-10.1-server-ose-4.19
25+
- rhel-9.6-fast-datapath
26+
- rhel-9.6-server-ose-4.19
27+
- rhel-9.6-appstream-containernetworking
28+
- if: osversion == "centos-9"
1729
include:
1830
repos:
1931
- c9s-baseos
@@ -22,6 +34,15 @@ conditional-include:
2234
- c9s-sig-cloud-okd
2335
# XXX: this shouldn't be here; see related XXX in Containerfile
2436
- rhel-9.6-server-ose-4.19-okd
37+
- if: osversion == "centos-10"
38+
include:
39+
repos:
40+
- c10s-baseos
41+
- c10s-appstream
42+
- c10s-sig-nfv
43+
- c10s-sig-cloud-okd
44+
# XXX: this shouldn't be here; see related XXX in Containerfile
45+
- rhel-10.1-server-ose-4.19-okd
2546

2647
packages:
2748
# The packages below are required by OpenShift/OKD

0 commit comments

Comments
 (0)