-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
COS-2692: Add new variants to enable pure CentOS Stream/RHEL CoreOS builds, add Containerfile for layered OKD/OCP builds #1445
Conversation
Skipping CI for Draft Pull Request. |
This is part of openshift/os#1445.
This is part of openshift/os#1445. Those tests are all actually testing OCP components. In the new model, they should be run against an OCP layered image instead.
We don't have to be super strict here in how we find the bootloader entry. There should only be one, so simplify the logic using a glob instead. Motivated by the fact that this will break otherwise as part of openshift/os#1445 where the `ID` will be `centos`, but the stateroot will still be `scos`.
The `ID` will change to `centos` as part of openshift/os#1445.
The major gap left for this is adapting the pipeline to build the layered OCP image. |
/cc @lmzuccarelli @aguidirh @sherine-k |
We don't have to be super strict here in how we find the bootloader entry. There should only be one, so simplify the logic using a glob instead. Motivated by the fact that this will break otherwise as part of openshift/os#1445 where the `ID` will be `centos`, but the stateroot will still be `scos`.
The `ID` will change to `centos` as part of openshift/os#1445.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just skimming, LGTM at a high level
This is part of openshift/os#1445. Those tests are all actually testing OCP components. In the new model, they should be run against an OCP layered image instead. Add a tag on them so that we'll be able to run them separately.
@jlebon: This pull request references COS-2692 which is a valid jira issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
This is part of openshift/os#1445. Those tests are all actually testing OCP components. In the new model, they should be run against an OCP layered image instead. Add a tag on them so that we'll be able to run them separately.
So one way to verify that this doesn't change anything consequential in the
diff --git a/416.94.202405140214-0/usr/etc/motd b/416.94.202405141630-0/usr/etc/motd
index 9b7963d..be4f12b 100644
--- a/416.94.202405140214-0/usr/etc/motd
+++ b/416.94.202405141630-0/usr/etc/motd
@@ -1,4 +1,4 @@
-Red Hat Enterprise Linux CoreOS 416.94.202405140214-0
+Red Hat Enterprise Linux CoreOS 416.94.202405141630-0
Part of OpenShift 4.16, RHCOS is a Kubernetes-native operating system
managed by the Machine Config Operator (`clusteroperator/machine-config`).
diff --git a/416.94.202405140214-0/usr/etc/nvme/hostid b/416.94.202405141630-0/usr/etc/nvme/hostid
index 17397b3..d4a6f03 100644
--- a/416.94.202405140214-0/usr/etc/nvme/hostid
+++ b/416.94.202405141630-0/usr/etc/nvme/hostid
@@ -1 +1 @@
-170647b0-2e83-456d-acba-7fe18da81580
+da0b2c64-b00b-4c6e-a8bf-fe1428078775
diff --git a/416.94.202405140214-0/usr/etc/nvme/hostnqn b/416.94.202405141630-0/usr/etc/nvme/hostnqn
index eacacf7..4d2d7d9 100644
--- a/416.94.202405140214-0/usr/etc/nvme/hostnqn
+++ b/416.94.202405141630-0/usr/etc/nvme/hostnqn
@@ -1 +1 @@
-nqn.2014-08.org.nvmexpress:uuid:170647b0-2e83-456d-acba-7fe18da81580
+nqn.2014-08.org.nvmexpress:uuid:da0b2c64-b00b-4c6e-a8bf-fe1428078775
diff --git a/416.94.202405140214-0/usr/etc/pki/ca-trust/extracted/java/cacerts b/416.94.202405141630-0/usr/etc/pki/ca-trust/extracted/java/cacerts
index 6209c84..887550c 100644
Binary files a/416.94.202405140214-0/usr/etc/pki/ca-trust/extracted/java/cacerts and b/416.94.202405141630-0/usr/etc/pki/ca-trust/extracted/java/cacerts differ
diff --git a/416.94.202405140214-0/usr/lib/modules/5.14.0-427.16.1.el9_4.x86_64/initramfs.img b/416.94.202405141630-0/usr/lib/modules/5.14.0-427.16.1.el9_4.x86_64/initramfs.img
index 3f76681..0150375 100644
Binary files a/416.94.202405140214-0/usr/lib/modules/5.14.0-427.16.1.el9_4.x86_64/initramfs.img and b/416.94.202405141630-0/usr/lib/modules/5.14.0-427.16.1.el9_4.x86_64/initramfs.img differ
diff --git a/416.94.202405140214-0/usr/lib/os-release b/416.94.202405141630-0/usr/lib/os-release
index ac467fb..a97b0f4 100644
--- a/416.94.202405140214-0/usr/lib/os-release
+++ b/416.94.202405141630-0/usr/lib/os-release
@@ -1,12 +1,12 @@
NAME="Red Hat Enterprise Linux CoreOS"
ID="rhcos"
ID_LIKE="rhel fedora"
-VERSION="416.94.202405140214-0"
+VERSION="416.94.202405141630-0"
VERSION_ID="4.16"
VARIANT="CoreOS"
VARIANT_ID=coreos
PLATFORM_ID="platform:el9"
-PRETTY_NAME="Red Hat Enterprise Linux CoreOS 416.94.202405140214-0"
+PRETTY_NAME="Red Hat Enterprise Linux CoreOS 416.94.202405141630-0"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:9::baseos::coreos"
HOME_URL="https://www.redhat.com/"
@@ -18,4 +18,4 @@ REDHAT_SUPPORT_PRODUCT="OpenShift Container Platform"
REDHAT_SUPPORT_PRODUCT_VERSION="4.16"
OPENSHIFT_VERSION="4.16"
RHEL_VERSION=9.4
-OSTREE_VERSION="416.94.202405140214-0"
+OSTREE_VERSION="416.94.202405141630-0"
diff --git a/416.94.202405140214-0/usr/lib/os-release.rhel b/416.94.202405141630-0/usr/lib/os-release.rhel
index c631281..d24345c 100644
--- a/416.94.202405140214-0/usr/lib/os-release.rhel
+++ b/416.94.202405141630-0/usr/lib/os-release.rhel
@@ -1,10 +1,10 @@
-NAME="Red Hat Enterprise Linux"
+NAME="Red Hat Enterprise Linux CoreOS"
VERSION="9.4 (Plow)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="9.4"
PLATFORM_ID="platform:el9"
-PRETTY_NAME="Red Hat Enterprise Linux 9.4 (Plow)"
+PRETTY_NAME="Red Hat Enterprise Linux CoreOS 9.4 (Plow)"
ANSI_COLOR="0;31"
LOGO="fedora-logo-icon"
CPE_NAME="cpe:/o:redhat:enterprise_linux:9::baseos"
@@ -15,3 +15,5 @@ REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 9"
REDHAT_BUGZILLA_PRODUCT_VERSION=9.4
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="9.4"
+VARIANT=CoreOS
+VARIANT_ID=coreos
diff --git a/416.94.202405140214-0/usr/lib/python3.9/site-packages/pkg_resources/_vendor/__pycache__/__init__.cpython-39.pyc b/416.94.202405141630-0/usr/lib/python3.9/site-packages/pkg_resources/_vendor/__pycache__/__init__.cpython-39.pyc
index 79ca821..2817c63 100644
Binary files a/416.94.202405140214-0/usr/lib/python3.9/site-packages/pkg_resources/_vendor/__pycache__/__init__.cpython-39.pyc and b/416.94.202405141630-0/usr/lib/python3.9/site-packages/pkg_resources/_vendor/__pycache__/__init__.cpython-39.pyc differ
diff --git a/416.94.202405140214-0/usr/lib/python3.9/site-packages/sepolgen/__pycache__/__init__.cpython-39.pyc b/416.94.202405141630-0/usr/lib/python3.9/site-packages/sepolgen/__pycache__/__init__.cpython-39.pyc
index 401c88d..7e0c612 100644
Binary files a/416.94.202405140214-0/usr/lib/python3.9/site-packages/sepolgen/__pycache__/__init__.cpython-39.pyc and b/416.94.202405141630-0/usr/lib/python3.9/site-packages/sepolgen/__pycache__/__init__.cpython-39.pyc differ
diff --git a/416.94.202405140214-0/usr/lib/sysimage/rpm-ostree-base-db/rpmdb.sqlite b/416.94.202405141630-0/usr/lib/sysimage/rpm-ostree-base-db/rpmdb.sqlite
index 86138ef..19b7a8c 100644
Binary files a/416.94.202405140214-0/usr/lib/sysimage/rpm-ostree-base-db/rpmdb.sqlite and b/416.94.202405141630-0/usr/lib/sysimage/rpm-ostree-base-db/rpmdb.sqlite differ
diff --git a/416.94.202405140214-0/usr/lib64/python3.9/__pycache__/gettext.cpython-39.pyc b/416.94.202405141630-0/usr/lib64/python3.9/__pycache__/gettext.cpython-39.pyc
index d98c139..bea7d75 100644
Binary files a/416.94.202405140214-0/usr/lib64/python3.9/__pycache__/gettext.cpython-39.pyc and b/416.94.202405141630-0/usr/lib64/python3.9/__pycache__/gettext.cpython-39.pyc differ
diff --git a/416.94.202405140214-0/usr/lib64/python3.9/__pycache__/hashlib.cpython-39.pyc b/416.94.202405141630-0/usr/lib64/python3.9/__pycache__/hashlib.cpython-39.pyc
index 3f878db..75cf573 100644
Binary files a/416.94.202405140214-0/usr/lib64/python3.9/__pycache__/hashlib.cpython-39.pyc and b/416.94.202405141630-0/usr/lib64/python3.9/__pycache__/hashlib.cpython-39.pyc differ
diff --git a/416.94.202405140214-0/usr/lib64/python3.9/__pycache__/socket.cpython-39.pyc b/416.94.202405141630-0/usr/lib64/python3.9/__pycache__/socket.cpython-39.pyc
index 7932334..aae98e8 100644
Binary files a/416.94.202405140214-0/usr/lib64/python3.9/__pycache__/socket.cpython-39.pyc and b/416.94.202405141630-0/usr/lib64/python3.9/__pycache__/socket.cpython-39.pyc differ
diff --git a/416.94.202405140214-0/usr/lib64/python3.9/__pycache__/typing.cpython-39.pyc b/416.94.202405141630-0/usr/lib64/python3.9/__pycache__/typing.cpython-39.pyc
index e03dcb6..8c0434b 100644
Binary files a/416.94.202405140214-0/usr/lib64/python3.9/__pycache__/typing.cpython-39.pyc and b/416.94.202405141630-0/usr/lib64/python3.9/__pycache__/typing.cpython-39.pyc differ
diff --git a/416.94.202405140214-0/usr/lib64/python3.9/__pycache__/zipfile.cpython-39.pyc b/416.94.202405141630-0/usr/lib64/python3.9/__pycache__/zipfile.cpython-39.pyc
index bf08024..d4df94c 100644
Binary files a/416.94.202405140214-0/usr/lib64/python3.9/__pycache__/zipfile.cpython-39.pyc and b/416.94.202405141630-0/usr/lib64/python3.9/__pycache__/zipfile.cpython-39.pyc differ
diff --git a/416.94.202405140214-0/usr/lib64/python3.9/urllib/__pycache__/__init__.cpython-39.pyc b/416.94.202405141630-0/usr/lib64/python3.9/urllib/__pycache__/__init__.cpython-39.pyc
index 3e3e59e..4772afa 100644
Binary files a/416.94.202405140214-0/usr/lib64/python3.9/urllib/__pycache__/__init__.cpython-39.pyc and b/416.94.202405141630-0/usr/lib64/python3.9/urllib/__pycache__/__init__.cpython-39.pyc differ
diff --git a/416.94.202405140214-0/usr/share/crypto-policies/python/cryptopolicies/__pycache__/cryptopolicies.cpython-39.pyc b/416.94.202405141630-0/usr/share/crypto-policies/python/cryptopolicies/__pycache__/cryptopolicies.cpython-39.pyc
index b3a2c4c..497833e 100644
Binary files a/416.94.202405140214-0/usr/share/crypto-policies/python/cryptopolicies/__pycache__/cryptopolicies.cpython-39.pyc and b/416.94.202405141630-0/usr/share/crypto-policies/python/cryptopolicies/__pycache__/cryptopolicies.cpython-39.pyc differ
diff --git a/416.94.202405140214-0/usr/share/crypto-policies/python/policygenerators/__pycache__/gnutls.cpython-39.pyc b/416.94.202405141630-0/usr/share/crypto-policies/python/policygenerators/__pycache__/gnutls.cpython-39.pyc
index 0fa61d5..3f40ad5 100644
Binary files a/416.94.202405140214-0/usr/share/crypto-policies/python/policygenerators/__pycache__/gnutls.cpython-39.pyc and b/416.94.202405141630-0/usr/share/crypto-policies/python/policygenerators/__pycache__/gnutls.cpython-39.pyc differ
diff --git a/416.94.202405140214-0/usr/share/crypto-policies/python/policygenerators/__pycache__/java.cpython-39.pyc b/416.94.202405141630-0/usr/share/crypto-policies/python/policygenerators/__pycache__/java.cpython-39.pyc
index 6d16826..61342b7 100644
Binary files a/416.94.202405140214-0/usr/share/crypto-policies/python/policygenerators/__pycache__/java.cpython-39.pyc and b/416.94.202405141630-0/usr/share/crypto-policies/python/policygenerators/__pycache__/java.cpython-39.pyc differ
diff --git a/416.94.202405140214-0/usr/share/crypto-policies/python/policygenerators/__pycache__/openssh.cpython-39.pyc b/416.94.202405141630-0/usr/share/crypto-policies/python/policygenerators/__pycache__/openssh.cpython-39.pyc
index 45475e8..bc0cc43 100644
Binary files a/416.94.202405140214-0/usr/share/crypto-policies/python/policygenerators/__pycache__/openssh.cpython-39.pyc and b/416.94.202405141630-0/usr/share/crypto-policies/python/policygenerators/__pycache__/openssh.cpython-39.pyc differ
diff --git a/416.94.202405140214-0/usr/share/crypto-policies/python/policygenerators/__pycache__/openssl.cpython-39.pyc b/416.94.202405141630-0/usr/share/crypto-policies/python/policygenerators/__pycache__/openssl.cpython-39.pyc
index 4d9b018..d2756de 100644
Binary files a/416.94.202405140214-0/usr/share/crypto-policies/python/policygenerators/__pycache__/openssl.cpython-39.pyc and b/416.94.202405141630-0/usr/share/crypto-policies/python/policygenerators/__pycache__/openssl.cpython-39.pyc differ
diff --git a/416.94.202405140214-0/usr/share/rpm/rpmdb.sqlite b/416.94.202405141630-0/usr/share/rpm/rpmdb.sqlite
index 86138ef..19b7a8c 100644
Binary files a/416.94.202405140214-0/usr/share/rpm/rpmdb.sqlite and b/416.94.202405141630-0/usr/share/rpm/rpmdb.sqlite differ
diff --git a/416.94.202405140214-0/usr/share/rpm-ostree/treefile.json b/416.94.202405141630-0/usr/share/rpm-ostree/treefile.json
index 786c381..a512b0e 100644
--- a/416.94.202405140214-0/usr/share/rpm-ostree/treefile.json
+++ b/416.94.202405141630-0/usr/share/rpm-ostree/treefile.json
@@ -153,7 +153,7 @@
"basearch": "x86_64",
"rojig": {
"name": "rhcos",
- "summary": "OpenShift 4",
+ "summary": "OpenShift 4.16",
"license": "MIT",
"description": null
},
@@ -227,6 +227,7 @@
"#!/bin/bash\nset -xeuo pipefail\n# Transforms /usr/lib/ostree-boot into a bootupd-compatible update payload\n/usr/bin/bootupctl backend generate-update-metadata\n",
"#!/usr/bin/env bash\nset -xeuo pipefail\nrm -rf /etc/systemd/system/*\nsystemctl preset-all\nrm -rf /etc/systemd/user/*\nsystemctl --user --global preset-all\n",
"#!/usr/bin/env bash\nsystemctl mask systemd-repart.service\n",
+ "#!/usr/bin/bash\nset -euo pipefail\ncat >> /usr/lib/os-release <<EOF\nVARIANT=CoreOS\nVARIANT_ID=coreos\nEOF\n\n# And put \"CoreOS\" in NAME and PRETTY_NAME\nsed -i -e 's/^NAME=\"\\(.*\\)\"/NAME=\"\\1 CoreOS\"/' /usr/lib/os-release\n. /usr/lib/os-release\nsed -i -e \"s/^PRETTY_NAME=.*/PRETTY_NAME=\\\"$NAME $VERSION\\\"/\" /usr/lib/os-release\n",
"#!/usr/bin/env bash\nset -xeo pipefail\nif [ \"$(uname -m)\" == \"x86_64\" ]; then\n cat > /etc/vmware-tools/tools.conf <<'EOF'\n[guestosinfo]\nshort-name = rhel8-64\nEOF\nfi\n",
"#!/usr/bin/env bash\nset -xeo pipefail\nif [ \"$(uname -m)\" == \"s390x\" ]; then\n chmod -R g-w /usr/etc/zkey\nfi\n",
"#!/usr/bin/env bash\nset -xeo pipefail\nrm -rf /etc/rc.d/init.d/network /etc/rc.d/rc*.d/*network\n\n# We're not using resolved yet\nrm -f /usr/lib/systemd/system/systemd-resolved.service\n",
@@ -235,7 +236,7 @@
"#!/usr/bin/env bash\nset -xeo pipefail\n\n# FIXME: Why is this only broken here? NM isn't removing the link?\nsed -i '/etc.resolv/d' /usr/lib/tmpfiles.d/etc.conf\n",
"#!/usr/bin/env bash\nset -xeuo pipefail\n# Enable tmp-on-tmpfs by default because we don't want to have things leak\n# across reboots, it increases alignment with FCOS, and also fixes the\n# Live ISO. First, verify that RHEL is still disabling.\ngrep -q '# RHEL-only: Disable /tmp on tmpfs' /usr/lib/systemd/system/basic.target\necho '# RHCOS-only: we follow the Fedora/upstream default' >> /usr/lib/systemd/system/basic.target\necho 'Wants=tmp.mount' >> /usr/lib/systemd/system/basic.target\n",
"#!/usr/bin/env bash\nset -xeo pipefail\n# See https://issues.redhat.com/browse/LOG-3117\n# Something changed between rhel8 and rhel9 to not generate this by default\n# but we have containers that expect it to be mounted so for now let's continue\n# generating it.\nln -sr /usr/share/zoneinfo/UTC /etc/localtime\n",
- "#!/usr/bin/env bash\nset -xeo pipefail\n\n# Tweak /usr/lib/os-release\ngrep -v -e \"OSTREE_VERSION\" -e \"OPENSHIFT_VERSION\" /etc/os-release > /usr/lib/os-release.rhel\n(\n. /etc/os-release\ncat > /usr/lib/os-release <<EOF\nNAME=\"${NAME} CoreOS\"\nID=\"rhcos\"\nID_LIKE=\"rhel fedora\"\nVERSION=\"${OSTREE_VERSION}\"\nVERSION_ID=\"${OPENSHIFT_VERSION}\"\nVARIANT=\"CoreOS\"\nVARIANT_ID=coreos\nPLATFORM_ID=\"${PLATFORM_ID}\"\nPRETTY_NAME=\"${NAME} CoreOS ${OSTREE_VERSION}\"\nANSI_COLOR=\"${ANSI_COLOR}\"\nCPE_NAME=\"${CPE_NAME}::coreos\"\nHOME_URL=\"${HOME_URL}\"\nDOCUMENTATION_URL=\"https://docs.okd.io/latest/welcome/index.html\"\nBUG_REPORT_URL=\"https://access.redhat.com/labs/rhir/\"\nREDHAT_BUGZILLA_PRODUCT=\"OpenShift Container Platform\"\nREDHAT_BUGZILLA_PRODUCT_VERSION=\"${OPENSHIFT_VERSION}\"\nREDHAT_SUPPORT_PRODUCT=\"OpenShift Container Platform\"\nREDHAT_SUPPORT_PRODUCT_VERSION=\"${OPENSHIFT_VERSION}\"\nOPENSHIFT_VERSION=\"${OPENSHIFT_VERSION}\"\nRHEL_VERSION=9.4\nOSTREE_VERSION=\"${OSTREE_VERSION}\"\nEOF\n)\nrm -f /etc/os-release\nln -s ../usr/lib/os-release /etc/os-release\n\n# Tweak /etc/system-release, /etc/system-release-cpe & /etc/redhat-release\n(\n. /etc/os-release\ncat > /usr/lib/system-release-cpe <<EOF\n${CPE_NAME}\nEOF\ncat > /usr/lib/system-release <<EOF\n${NAME} release ${VERSION_ID}\nEOF\nrm -f /etc/system-release-cpe /etc/system-release /etc/redhat-release\nln -s /usr/lib/system-release-cpe /etc/system-release-cpe\nln -s /usr/lib/system-release /etc/system-release\nln -s /usr/lib/system-release /etc/redhat-release\n)\n\n# Tweak /usr/lib/issue\ncat > /usr/lib/issue <<EOF\n\\S \\S{VERSION_ID}\nEOF\nrm -f /etc/issue /etc/issue.net\nln -s /usr/lib/issue /etc/issue\nln -s /usr/lib/issue /etc/issue.net\n"
+ "#!/usr/bin/env bash\nset -xeo pipefail\n\n# Tweak /usr/lib/os-release\ngrep -v -e \"OSTREE_VERSION\" -e \"OPENSHIFT_VERSION\" /etc/os-release > /usr/lib/os-release.rhel\n(\n. /etc/os-release\ncat > /usr/lib/os-release <<EOF\nNAME=\"${NAME}\"\nID=\"rhcos\"\nID_LIKE=\"rhel fedora\"\nVERSION=\"${OSTREE_VERSION}\"\nVERSION_ID=\"${OPENSHIFT_VERSION}\"\nVARIANT=\"${VARIANT}\"\nVARIANT_ID=${VARIANT_ID}\nPLATFORM_ID=\"${PLATFORM_ID}\"\nPRETTY_NAME=\"${NAME} ${OSTREE_VERSION}\"\nANSI_COLOR=\"${ANSI_COLOR}\"\nCPE_NAME=\"${CPE_NAME}::coreos\"\nHOME_URL=\"${HOME_URL}\"\nDOCUMENTATION_URL=\"https://docs.okd.io/latest/welcome/index.html\"\nBUG_REPORT_URL=\"https://access.redhat.com/labs/rhir/\"\nREDHAT_BUGZILLA_PRODUCT=\"OpenShift Container Platform\"\nREDHAT_BUGZILLA_PRODUCT_VERSION=\"${OPENSHIFT_VERSION}\"\nREDHAT_SUPPORT_PRODUCT=\"OpenShift Container Platform\"\nREDHAT_SUPPORT_PRODUCT_VERSION=\"${OPENSHIFT_VERSION}\"\nOPENSHIFT_VERSION=\"${OPENSHIFT_VERSION}\"\nRHEL_VERSION=9.4\nOSTREE_VERSION=\"${OSTREE_VERSION}\"\nEOF\n)\nrm -f /etc/os-release\nln -s ../usr/lib/os-release /etc/os-release\n\n# Tweak /etc/system-release, /etc/system-release-cpe & /etc/redhat-release\n(\n. /etc/os-release\ncat > /usr/lib/system-release-cpe <<EOF\n${CPE_NAME}\nEOF\ncat > /usr/lib/system-release <<EOF\n${NAME} release ${VERSION_ID}\nEOF\nrm -f /etc/system-release-cpe /etc/system-release /etc/redhat-release\nln -s /usr/lib/system-release-cpe /etc/system-release-cpe\nln -s /usr/lib/system-release /etc/system-release\nln -s /usr/lib/system-release /etc/redhat-release\n)\n\n# Tweak /usr/lib/issue\ncat > /usr/lib/issue <<EOF\n\\S \\S{VERSION_ID}\nEOF\nrm -f /etc/issue /etc/issue.net\nln -s /usr/lib/issue /etc/issue\nln -s /usr/lib/issue /etc/issue.net\n"
],
"remove-files": [
"usr/share/info", So one obvious thing we notice here totally unrelated to this is that we're currently baking some NVMe-related UUID things that should probably instead be generated on first boot. Something to look into. But otherwise, the only noteworthy difference is that the |
Now waiting on #1511 (which is waiting on openshift/release#52325). |
/refresh |
To make introducing the base RHCOS/SCOS images safer, let's create two new variants: `okd-c9s` and `ocp-rhel-9.4`. These variants are cloned from the existing `c9s` and `rhel-9.4` variants to start. The new variants will track the status quo: building SCOS/RHCOS with the OpenShift components baked in (hence the `okd`/`ocp` prefixes). This is what the pipeline will keep building. Meanwhile, what is currently the `c9s` and rhel-9.4` variants will become the new base SCOS/RHCOS streams containing *purely* CentOS Stream/RHEL content. The default variant is still `ocp-rhel-9.4` for now.
3aad6fe
to
05ab4e8
Compare
This is the second step now in this switcheroo dance (see previous commit). We make the `c9s` and `rhel-9.4` variants contain only C9S/ RHEL 9.4 content and then make the `okd-c9s` and `ocp-rhel-9.4` variants inherit from those and add the OCP-specific stuff.
This Containerfile allows us to build the OpenShift node image on top of the base RHCOS/SCOS image (i.e. built from the `c9s` or `rhel-9.4` image). Currently, the resulting image is at parity with the base image you'd get from building the `okd-c9s` or `ocp-rhel-9.4` variant. In the future, those variants will go away and this will become the only way to build the node image. Part of: openshift#799
@@ -3,108 +3,29 @@ | |||
rojig: | |||
license: MIT | |||
name: rhcos | |||
summary: OpenShift 4 | |||
summary: RHEL CoreOS 9.4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Red Hat Enterprise Linux CoreOS 9.4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can stay as is as I don't think that's used anywhere.
Only have one note:
|
I though that this had been fixed already. This is weird but it's not due to this change so let's not hold it. /lgtm |
Feel free to unhold when you think it's ready to go / when we've completed the 4.16 branching. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cgwalters, jlebon, travier The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Thanks for the review! |
I've filed #1519 |
@jlebon: all tests passed! Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
A big part of the new variants added in openshift/os#1445 is that we only minimally modify `/etc/os-release`. This means that e.g. `ID` is still `rhel` and `VERSION_ID` is e.g. `9.4` for the `rhel-9.4` variant. We do still inject `VARIANT` and `VARIANT_ID` though. Adapt these library functions here to handle this.
A big part of the new variants added in openshift/os#1445 is that we only minimally modify `/etc/os-release`. This means that e.g. `ID` is still `rhel` and `VERSION_ID` is e.g. `9.4` for the `rhel-9.4` variant. We do still inject `VARIANT` and `VARIANT_ID` though. Adapt these library functions here to handle this.
Add new
okd-c9s
andocp-rhel-9.4
variantsTo make introducing the base RHCOS/SCOS images safer, let's create two
new variants:
okd-c9s
andocp-rhel-9.4
. These variants are clonedfrom the existing
c9s
andrhel-9.4
variants to start.The new variants will track the status quo: building SCOS/RHCOS with the
OpenShift components baked in (hence the
okd
/ocp
prefixes). This iswhat the pipeline will keep building.
Meanwhile, what is currently the
c9s
and rhel-9.4` variants willbecome the new base SCOS/RHCOS streams containing purely CentOS
Stream/RHEL content.
The default variant is still
ocp-rhel-9.4
for now.Make c9s and rhel-9.4 variants be pure C9S/RHEL 9.4 content
This is the second step now in this switcheroo dance (see previous
commit). We make the
c9s
andrhel-9.4
variants contain only C9S/RHEL 9.4 content and then make the
okd-c9s
andocp-rhel-9.4
variantsinherit from those and add the OCP-specific stuff.
Containerfile: new file
This Containerfile allows us to build the OpenShift node image on top
of the base RHCOS/SCOS image (i.e. built from the
c9s
orrhel-9.4
image).
Currently, the resulting image is at parity with the base image you'd
get from building the
okd-c9s
orocp-rhel-9.4
variant. In thefuture, those variants will go away and this will become the only way to
build the node image.
Part of: #799