Skip to content

Commit

Permalink
Merge pull request #1473 from mike-nguyen/c9s_to_94beta
Browse files Browse the repository at this point in the history
COS-2608: Switch from c9s content to RHEL 9.4 beta content
  • Loading branch information
openshift-merge-bot[bot] authored Apr 4, 2024
2 parents 04af9ec + 2644efc commit 8f8cb93
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 28 deletions.
11 changes: 3 additions & 8 deletions ci/prow-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,23 +74,18 @@ prepare_repos() {
rhelver=$(rpm-ostree compose tree --print-only "${manifest}" | jq -r '.["automatic-version-prefix"]' | cut -f2 -d.)

# Temporary workaround until we publish builds in the default path
if [[ "${rhelver}" == "92" ]]; then
prev_build_url="${REDIRECTOR_URL}/${ocpver}-9.2/builds/"
if [[ "${rhelver}" == "94" ]]; then
prev_build_url="${REDIRECTOR_URL}/${ocpver}-9.4/builds/"
# Fetch the previous build
cosa buildfetch --url="${prev_build_url}"
fi

# Fetch the repos corresponding to the release we are building
case "${rhelver}" in
92)
92|94)
curl --fail -L "http://base-${ocpver_mut}-rhel${rhelver}.ocp.svc.cluster.local" -o "src/config/ocp.repo"
cat src/config/ocp.repo
;;
94)
# For now, the 9.4 variant is mostly C9S, but we do still need some packages from 9.2 repos
curl --fail -L "http://base-${ocpver_mut}-rhel92.ocp.svc.cluster.local" -o "src/config/ocp.repo"
cat src/config/ocp.repo
;;
*)
# Assume C9S/SCOS if the version does not match known values for RHEL
# Temporary workaround until we have all packages for SCOS
Expand Down
6 changes: 3 additions & 3 deletions extensions-rhel-9.4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ extensions:
- x86_64
- aarch64
repos:
- rhel-9.2-server-ose-4.16
- rhel-9.4-server-ose-4.16
packages:
- crun-wasm
# https://github.com/coreos/fedora-coreos-tracker/issues/1504
Expand Down Expand Up @@ -52,7 +52,7 @@ extensions:
architectures:
- x86_64
repos:
- nfv
- rhel-9.4-nfv
packages:
- kernel-rt-core
- kernel-rt-kvm
Expand All @@ -69,7 +69,7 @@ extensions:
- x86_64
- s390x
repos:
- rhel-9.2-server-ose-4.16
- rhel-9.4-server-ose-4.16
packages:
- kata-containers
# https://issues.redhat.com/browse/COS-2402
Expand Down
26 changes: 9 additions & 17 deletions manifest-rhel-9.4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,12 @@ include:

# Starting from here, everything should be specific to RHCOS based on RHEL 9.4 content

# CentOS Stream 9 repos + internal repos for now
repos:
- baseos
- appstream
- rhel-9.2-fast-datapath
- rhel-9.4-baseos
- rhel-9.4-appstream
- rhel-9.4-fast-datapath
# Include RHCOS 9 repo for oc, kubelet
- rhel-9.2-server-ose-4.16
- rhel-9.4-server-ose-4.16

# We include hours/minutes to avoid version number reuse
automatic-version-prefix: "416.94.<date:%Y%m%d%H%M>"
Expand Down Expand Up @@ -113,22 +112,15 @@ postprocess:
# constraints that do not apply to SCOS
packages:
# We include the generic release package and tweak the os-release info in a
# post-proces script
- centos-release
# Below this are temporary overrides to not get too new content before we retarget RHEL content proper
# https://issues.redhat.com/browse/RHEL-29856
- NetworkManager-1.46.0-1.el9
# post-process script
- redhat-release

# Packages pinned to specific repos in SCOS 9
# Packages pinned to specific repos in RHCOS 9
repo-packages:
# We always want the kernel from BaseOS
- repo: baseos
packages:
- kernel
- repo: appstream
- repo: rhel-9.4-appstream
packages:
- nss-altfiles
- repo: rhel-9.2-server-ose-4.16
- repo: rhel-9.4-server-ose-4.16
packages:
- conmon-rs
- cri-o
Expand Down

0 comments on commit 8f8cb93

Please sign in to comment.