Skip to content

Commit 57981e5

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] #1780
1 parent 43b6744 commit 57981e5

File tree

6 files changed

+55
-25
lines changed

6 files changed

+55
-25
lines changed

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

common.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ conditional-include:
3232
# And remove some cruft from grub2
3333
include: fedora-coreos-config/manifests/grub2-removals.yaml
3434
# Packages specific to el9
35-
- if: osversion == "c9s"
35+
- if: osversion == "centos-9"
3636
include:
3737
- fedora-coreos-config/manifests/shared-el9.yaml
3838
- manifest-el9-shared.yaml
3939
- if: osversion == "rhel-9.6"
4040
include:
4141
- fedora-coreos-config/manifests/shared-el9.yaml
4242
- manifest-el9-shared.yaml
43-
- if: osversion == "c10s"
43+
- if: osversion == "centos-10"
4444
include:
4545
- fedora-coreos-config/manifests/shared-el10.yaml
4646
- if: inherit_tier_x == true

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: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,52 @@ metadata:
55
ocp_version: "4.19"
66

77
conditional-include:
8-
- if: id == "rhel"
8+
- if:
9+
- osversion != "rhel-9.6"
10+
- osversion != "rhel-10.1"
11+
- osversion != "centos-9"
12+
- osversion != "centos-10"
13+
include:
14+
repos: [ENOEXIST] # We want an error in this case
15+
- if: osversion == "rhel-9.6"
916
include:
1017
repos:
1118
- rhel-9.6-baseos
1219
- rhel-9.6-appstream
1320
- rhel-9.6-early-kernel
1421
- rhel-9.6-fast-datapath
1522
- rhel-9.6-server-ose-4.19
16-
- if: id == "centos"
23+
- if: osversion == "rhel-10.1"
24+
include:
25+
repos:
26+
- rhel-10.1-baseos
27+
- rhel-10.1-appstream
28+
#- rhel-10.1-early-kernel
29+
# XXX Not built for rhel 10 yet
30+
#- rhel-10.1-fast-datapath
31+
#- rhel-10.1-server-ose-4.19
32+
- rhel-9.6-fast-datapath
33+
- rhel-9.6-server-ose-4.19
34+
- rhel-9.6-appstream-containernetworking
35+
- if: osversion == "centos-9"
1736
include:
1837
repos:
1938
- c9s-baseos
2039
- c9s-appstream
2140
- c9s-sig-nfv
2241
- c9s-sig-cloud-okd
23-
# XXX: this shouldn't be here; see related XXX in Containerfile
42+
# XXX: this shouldn't be here; see related XXX in build-node-image.sh
43+
- rhel-9.6-server-ose-4.19-okd
44+
- if: osversion == "centos-10"
45+
include:
46+
repos:
47+
- c10s-baseos
48+
- c10s-appstream
49+
- c10s-sig-nfv
50+
- c10s-sig-cloud-okd
51+
# XXX: this shouldn't be here; see related XXX in build-node-image.sh
52+
# XXX: using 9.6 repo for now until 10.1 plashets exist
53+
# - rhel-10.1-server-ose-4.19-okd
2454
- rhel-9.6-server-ose-4.19-okd
2555

2656
packages:

0 commit comments

Comments
 (0)