Skip to content

Commit e621356

Browse files
jbtrystramdustymabe
authored andcommitted
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 be88ecd commit e621356

5 files changed

Lines changed: 46 additions & 23 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: 15 additions & 15 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,56 +44,56 @@
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: multipath.partition
7070
tracker: https://github.com/coreos/fedora-coreos-tracker/issues/1894
7171
osversion:
72-
- c10s
72+
- centos-10
7373
- rhel-10.1
7474

7575
- pattern: iso-offline-install*mpath.bios
7676
tracker: https://github.com/coreos/fedora-coreos-tracker/issues/1894
7777
osversion:
78-
- c10s
78+
- centos-10
7979
- rhel-10.1
8080

8181
- pattern: ext.config.shared.root-reprovision.luks.multipath
8282
tracker: https://github.com/coreos/fedora-coreos-tracker/issues/1894
8383
osversion:
84-
- c10s
84+
- centos-10
8585
- rhel-10.1
8686

8787
# Waiting for submodule bump
8888
- pattern: ext.config.shared.networking.nm-ifcfg-rh-plugin
8989
tracker: https://github.com/openshift/os/pull/1759#issuecomment-2779700581
9090
osversion:
91-
- c10s
91+
- centos-10
9292
- rhel-10.1
9393

9494
# Waiting for submodule bump
9595
- pattern: ext.config.shared.networking.team-dhcp-via-ignition
9696
tracker: https://github.com/openshift/os/pull/1759#issuecomment-2779700581
9797
osversion:
98-
- c10s
98+
- centos-10
9999
- 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

packages-openshift.yaml

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,45 @@ 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
2032
- c9s-appstream
2133
- c9s-sig-nfv
2234
- c9s-sig-cloud-okd
23-
# XXX: this shouldn't be here; see related XXX in Containerfile
35+
# XXX: this shouldn't be here; see related XXX in build-node-image.sh
36+
- 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 build-node-image.sh
45+
# XXX: using 9.6 repo for now until 10.1 plashets exist
46+
# - rhel-10.1-server-ose-4.19-okd
2447
- rhel-9.6-server-ose-4.19-okd
2548

2649
packages:

0 commit comments

Comments
 (0)