Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
85 changes: 49 additions & 36 deletions core-services/release-controller/_repos/ocp-4.22-rhel9.repo
Original file line number Diff line number Diff line change
@@ -1,26 +1,27 @@
[rhel-9-baseos]
name = rhel-9-baseos
baseurl = https://cdn.redhat.com/content/dist/rhel9/9/x86_64/baseos/os/
baseurl = https://mirror2.openshift.com/enterprise/reposync/4.22/rhel-98-baseos
enabled = 1
gpgkey = https://mirror.ops.rhcloud.com/libra/keys/RPM-GPG-KEY-redhat-release https://mirror.ops.rhcloud.com/libra/keys/RPM-GPG-KEY-redhat-beta https://mirror.ops.rhcloud.com/libra/keys/RPM-GPG-KEY-redhat-openshifthosted
sslverify = false
gpgcheck = 0
# https://projects.engineering.redhat.com/browse/RCM-65421
sslclientkey = /tmp/key/rh-cdn.pem
sslclientcert = /tmp/key/rh-cdn.pem
username_file = /tmp/mirror-enterprise-basic-auth/username
password_file = /tmp/mirror-enterprise-basic-auth/password
failovermethod = priority
skip_if_unavailable = true

[rhel-9-appstream]
name = rhel-9-appstream
baseurl = https://cdn.redhat.com/content/dist/rhel9/9/x86_64/appstream/os/
baseurl = https://mirror2.openshift.com/enterprise/reposync/4.22/rhel-98-appstream
enabled = 1
gpgkey = https://mirror.ops.rhcloud.com/libra/keys/RPM-GPG-KEY-redhat-release https://mirror.ops.rhcloud.com/libra/keys/RPM-GPG-KEY-redhat-beta https://mirror.ops.rhcloud.com/libra/keys/RPM-GPG-KEY-redhat-openshifthosted
sslverify = false
gpgcheck = 0
# https://projects.engineering.redhat.com/browse/RCM-65421
sslclientkey = /tmp/key/rh-cdn.pem
sslclientcert = /tmp/key/rh-cdn.pem
username_file = /tmp/mirror-enterprise-basic-auth/username
password_file = /tmp/mirror-enterprise-basic-auth/password
failovermethod = priority
skip_if_unavailable = true
excludepkgs=toolbox*

[rhel-9-fast-datapath]
name = rhel-9-fast-datapath
Expand All @@ -46,6 +47,18 @@ sslclientkey = /tmp/key/rh-cdn.pem
sslclientcert = /tmp/key/rh-cdn.pem
failovermethod = priority

[rhel-9-highavailability]
name = rhel-9-highavailability
baseurl = https://mirror2.openshift.com/enterprise/reposync/4.22/rhel-98-highavailability
enabled = 1
gpgkey = https://mirror.ops.rhcloud.com/libra/keys/RPM-GPG-KEY-redhat-release https://mirror.ops.rhcloud.com/libra/keys/RPM-GPG-KEY-redhat-beta https://mirror.ops.rhcloud.com/libra/keys/RPM-GPG-KEY-redhat-openshifthosted
sslverify = false
gpgcheck = 0
username_file = /tmp/mirror-enterprise-basic-auth/username
password_file = /tmp/mirror-enterprise-basic-auth/password
failovermethod = priority
skip_if_unavailable = true
Comment on lines +50 to +60
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.

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Description: Verify HighAvailability repo coverage for all architectures in the 4.22 repo file.

python3 - <<'PY'
from pathlib import Path
import re

path = Path("core-services/release-controller/_repos/ocp-4.22-rhel9.repo")
text = path.read_text()
headers = set(re.findall(r"^\[(.+?)\]", text, flags=re.M))
expected = {
    "rhel-9-highavailability",
    "rhel-9-highavailability-ppc64le",
    "rhel-9-highavailability-s390x",
    "rhel-9-highavailability-aarch64",
}
missing = sorted(expected - headers)
print("missing:", missing)
PY

Repository: openshift/release

Length of output: 173


Add HighAvailability repo sections for the non-x86 architectures.

The repo file currently includes only the default rhel-9-highavailability section but is missing architecture-specific variants for aarch64, ppc64le, and s390x. The file already contains architecture-specific BaseOS/AppStream sections for these architectures, so architecture-specific HighAvailability sections are also needed for consistent coverage across all supported architectures.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@core-services/release-controller/_repos/ocp-4.22-rhel9.repo` around lines 50
- 60, Add architecture-specific HighAvailability repo sections for aarch64,
ppc64le, and s390x by duplicating the existing rhel-9-highavailability block and
updating the repo id/name and baseurl to the architecture-specific variants
(e.g., rhel-9-highavailability-aarch64, rhel-9-highavailability-ppc64le,
rhel-9-highavailability-s390x) following the same format and settings (enabled,
gpgkey, sslverify, gpgcheck, username_file, password_file, failovermethod,
skip_if_unavailable) as the existing rhel-9-highavailability section and ensure
baseurl mirrors the pattern used by the architecture-specific BaseOS/AppStream
entries.


[rhel-9-server-ose]
name = rhel-9-server-ose
baseurl = https://mirror2.openshift.com/enterprise/reposync/4.22/rhel-9-server-ose-rpms
Expand All @@ -60,7 +73,7 @@ skip_if_unavailable = true

[rhel-9-codeready-builder-rpms]
name = rhel-9-codeready-builder-rpms
baseurl = https://cdn.redhat.com/content/dist/rhel9/9/x86_64/codeready-builder/os/
baseurl = https://cdn.redhat.com/content/eus/rhel9/9.8/x86_64/codeready-builder/os/
enabled = 1
gpgkey = https://mirror.ops.rhcloud.com/libra/keys/RPM-GPG-KEY-redhat-release https://mirror.ops.rhcloud.com/libra/keys/RPM-GPG-KEY-redhat-beta https://mirror.ops.rhcloud.com/libra/keys/RPM-GPG-KEY-redhat-openshifthosted
sslverify = false
Expand All @@ -72,27 +85,27 @@ failovermethod = priority

[rhel-9-baseos-ppc64le]
name = rhel-9-baseos-ppc64le
baseurl = https://cdn.redhat.com/content/dist/rhel9/9/ppc64le/baseos/os/
baseurl = https://mirror2.openshift.com/enterprise/reposync/4.22/rhel-98-baseos-ppc64le
enabled = 1
gpgkey = https://mirror.ops.rhcloud.com/libra/keys/RPM-GPG-KEY-redhat-release https://mirror.ops.rhcloud.com/libra/keys/RPM-GPG-KEY-redhat-beta https://mirror.ops.rhcloud.com/libra/keys/RPM-GPG-KEY-redhat-openshifthosted
sslverify = false
gpgcheck = 0
# https://projects.engineering.redhat.com/browse/RCM-65421
sslclientkey = /tmp/key/rh-cdn.pem
sslclientcert = /tmp/key/rh-cdn.pem
username_file = /tmp/mirror-enterprise-basic-auth/username
password_file = /tmp/mirror-enterprise-basic-auth/password
failovermethod = priority
skip_if_unavailable = true

[rhel-9-appstream-ppc64le]
name = rhel-9-appstream-ppc64le
baseurl = https://cdn.redhat.com/content/dist/rhel9/9/ppc64le/appstream/os/
baseurl = https://mirror2.openshift.com/enterprise/reposync/4.22/rhel-98-appstream-ppc64le
enabled = 1
gpgkey = https://mirror.ops.rhcloud.com/libra/keys/RPM-GPG-KEY-redhat-release https://mirror.ops.rhcloud.com/libra/keys/RPM-GPG-KEY-redhat-beta https://mirror.ops.rhcloud.com/libra/keys/RPM-GPG-KEY-redhat-openshifthosted
sslverify = false
gpgcheck = 0
# https://projects.engineering.redhat.com/browse/RCM-65421
sslclientkey = /tmp/key/rh-cdn.pem
sslclientcert = /tmp/key/rh-cdn.pem
username_file = /tmp/mirror-enterprise-basic-auth/username
password_file = /tmp/mirror-enterprise-basic-auth/password
failovermethod = priority
skip_if_unavailable = true

[rhel-9-fast-datapath-ppc64le]
name = rhel-9-fast-datapath-ppc64le
Expand Down Expand Up @@ -120,7 +133,7 @@ skip_if_unavailable = true

[rhel-9-codeready-builder-rpms-ppc64le]
name = rhel-9-codeready-builder-rpms-ppc64le
baseurl = https://cdn.redhat.com/content/dist/rhel9/9/ppc64le/codeready-builder/os/
baseurl = https://cdn.redhat.com/content/eus/rhel9/9.8/ppc64le/codeready-builder/os/
enabled = 1
gpgkey = https://mirror.ops.rhcloud.com/libra/keys/RPM-GPG-KEY-redhat-release https://mirror.ops.rhcloud.com/libra/keys/RPM-GPG-KEY-redhat-beta https://mirror.ops.rhcloud.com/libra/keys/RPM-GPG-KEY-redhat-openshifthosted
sslverify = false
Expand All @@ -132,27 +145,27 @@ failovermethod = priority

[rhel-9-baseos-s390x]
name = rhel-9-baseos-s390x
baseurl = https://cdn.redhat.com/content/dist/rhel9/9/s390x/baseos/os/
baseurl = https://mirror2.openshift.com/enterprise/reposync/4.22/rhel-98-baseos-s390x
enabled = 1
gpgkey = https://mirror.ops.rhcloud.com/libra/keys/RPM-GPG-KEY-redhat-release https://mirror.ops.rhcloud.com/libra/keys/RPM-GPG-KEY-redhat-beta https://mirror.ops.rhcloud.com/libra/keys/RPM-GPG-KEY-redhat-openshifthosted
sslverify = false
gpgcheck = 0
# https://projects.engineering.redhat.com/browse/RCM-65421
sslclientkey = /tmp/key/rh-cdn.pem
sslclientcert = /tmp/key/rh-cdn.pem
username_file = /tmp/mirror-enterprise-basic-auth/username
password_file = /tmp/mirror-enterprise-basic-auth/password
failovermethod = priority
skip_if_unavailable = true

[rhel-9-appstream-s390x]
name = rhel-9-appstream-s390x
baseurl = https://cdn.redhat.com/content/dist/rhel9/9/s390x/appstream/os/
baseurl = https://mirror2.openshift.com/enterprise/reposync/4.22/rhel-98-appstream-s390x
enabled = 1
gpgkey = https://mirror.ops.rhcloud.com/libra/keys/RPM-GPG-KEY-redhat-release https://mirror.ops.rhcloud.com/libra/keys/RPM-GPG-KEY-redhat-beta https://mirror.ops.rhcloud.com/libra/keys/RPM-GPG-KEY-redhat-openshifthosted
sslverify = false
gpgcheck = 0
# https://projects.engineering.redhat.com/browse/RCM-65421
sslclientkey = /tmp/key/rh-cdn.pem
sslclientcert = /tmp/key/rh-cdn.pem
username_file = /tmp/mirror-enterprise-basic-auth/username
password_file = /tmp/mirror-enterprise-basic-auth/password
failovermethod = priority
skip_if_unavailable = true

[rhel-9-fast-datapath-s390x]
name = rhel-9-fast-datapath-s390x
Expand Down Expand Up @@ -180,7 +193,7 @@ skip_if_unavailable = true

[rhel-9-codeready-builder-rpms-s390x]
name = rhel-9-codeready-builder-rpms-s390x
baseurl = https://cdn.redhat.com/content/dist/rhel9/9/s390x/codeready-builder/os/
baseurl = https://cdn.redhat.com/content/eus/rhel9/9.8/s390x/codeready-builder/os/
enabled = 1
gpgkey = https://mirror.ops.rhcloud.com/libra/keys/RPM-GPG-KEY-redhat-release https://mirror.ops.rhcloud.com/libra/keys/RPM-GPG-KEY-redhat-beta https://mirror.ops.rhcloud.com/libra/keys/RPM-GPG-KEY-redhat-openshifthosted
sslverify = false
Expand All @@ -192,27 +205,27 @@ failovermethod = priority

[rhel-9-baseos-aarch64]
name = rhel-9-baseos-aarch64
baseurl = https://cdn.redhat.com/content/dist/rhel9/9/aarch64/baseos/os/
baseurl = https://mirror2.openshift.com/enterprise/reposync/4.22/rhel-98-baseos-aarch64
enabled = 1
gpgkey = https://mirror.ops.rhcloud.com/libra/keys/RPM-GPG-KEY-redhat-release https://mirror.ops.rhcloud.com/libra/keys/RPM-GPG-KEY-redhat-beta https://mirror.ops.rhcloud.com/libra/keys/RPM-GPG-KEY-redhat-openshifthosted
sslverify = false
gpgcheck = 0
# https://projects.engineering.redhat.com/browse/RCM-65421
sslclientkey = /tmp/key/rh-cdn.pem
sslclientcert = /tmp/key/rh-cdn.pem
username_file = /tmp/mirror-enterprise-basic-auth/username
password_file = /tmp/mirror-enterprise-basic-auth/password
failovermethod = priority
skip_if_unavailable = true

[rhel-9-appstream-aarch64]
name = rhel-9-appstream-aarch64
baseurl = https://cdn.redhat.com/content/dist/rhel9/9/aarch64/appstream/os/
baseurl = https://mirror2.openshift.com/enterprise/reposync/4.22/rhel-98-appstream-aarch64
enabled = 1
gpgkey = https://mirror.ops.rhcloud.com/libra/keys/RPM-GPG-KEY-redhat-release https://mirror.ops.rhcloud.com/libra/keys/RPM-GPG-KEY-redhat-beta https://mirror.ops.rhcloud.com/libra/keys/RPM-GPG-KEY-redhat-openshifthosted
sslverify = false
gpgcheck = 0
# https://projects.engineering.redhat.com/browse/RCM-65421
sslclientkey = /tmp/key/rh-cdn.pem
sslclientcert = /tmp/key/rh-cdn.pem
username_file = /tmp/mirror-enterprise-basic-auth/username
password_file = /tmp/mirror-enterprise-basic-auth/password
failovermethod = priority
skip_if_unavailable = true

[rhel-9-fast-datapath-aarch64]
name = rhel-9-fast-datapath-aarch64
Expand Down Expand Up @@ -240,7 +253,7 @@ skip_if_unavailable = true

[rhel-9-codeready-builder-rpms-aarch64]
name = rhel-9-codeready-builder-rpms-aarch64
baseurl = https://cdn.redhat.com/content/dist/rhel9/9/aarch64/codeready-builder/os/
baseurl = https://cdn.redhat.com/content/eus/rhel9/9.8/aarch64/codeready-builder/os/
enabled = 1
gpgkey = https://mirror.ops.rhcloud.com/libra/keys/RPM-GPG-KEY-redhat-release https://mirror.ops.rhcloud.com/libra/keys/RPM-GPG-KEY-redhat-beta https://mirror.ops.rhcloud.com/libra/keys/RPM-GPG-KEY-redhat-openshifthosted
sslverify = false
Expand Down
Loading