From 5cc1a31679b408def88187c7c2f3e43d6b2c0edb Mon Sep 17 00:00:00 2001 From: Vadim Rutkovsky Date: Mon, 20 Feb 2023 09:34:21 +0100 Subject: [PATCH 1/2] Revert "DEBUG: don't pull in fresh FCOS" This reverts commit e83e32a1cb3280265d118377d30bf781fdc6d6e9. --- Dockerfile | 40 +++++++++++++++++++++------------------- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/Dockerfile b/Dockerfile index e38146a5..da09fb7c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,30 +1,32 @@ FROM registry.ci.openshift.org/origin/4.12:artifacts as artifacts -FROM registry.ci.openshift.org/origin/4.12:machine-os-content +FROM quay.io/fedora/fedora-coreos:stable ARG FEDORA_COREOS_VERSION=412.37.0 WORKDIR /go/src/github.com/openshift/okd-machine-os COPY . . COPY --from=artifacts /srv/repo/ /tmp/rpms/ RUN cat /etc/os-release \ - && rpm-ostree --version \ - && ostree --version \ - && cp -irvf overlay.d/*/* / \ - && cp -irvf bootstrap / \ - && cp -irvf manifests / \ - && cp -ivf crio.repo /etc/yum.repos.d/ \ - && rpm-ostree install \ - NetworkManager-ovs \ - open-vm-tools \ - qemu-guest-agent \ - cri-o \ - cri-tools \ - netcat \ - #&& rpm-ostree override replace /tmp/rpms/openshift-hyperkube-*.rpm \ - && rpm-ostree cleanup -m \ - && rm -rf /go /tmp/rpms /var/cache /var/lib/unbound \ - && systemctl preset-all \ - && ostree container commit + && rpm-ostree --version \ + && ostree --version \ + && cp -irvf overlay.d/*/* / \ + && cp -irvf bootstrap / \ + && cp -irvf manifests / \ + && cp -ivf crio.repo /etc/yum.repos.d/ \ + && rpm-ostree install \ + NetworkManager-ovs \ + open-vm-tools \ + qemu-guest-agent \ + cri-o \ + cri-tools \ + netcat \ + /tmp/rpms/openshift-clients-[0-9]*.rpm \ + /tmp/rpms/openshift-hyperkube-*.rpm \ + && rpm-ostree cleanup -m \ + && ln -s /usr/sbin/ovs-vswitchd.dpdk /usr/sbin/ovs-vswitchd \ + && rm -rf /go /tmp/rpms /var/cache /var/lib/unbound \ + && systemctl preset-all \ + && ostree container commit LABEL io.openshift.release.operator=true \ io.openshift.build.version-display-names="machine-os=Fedora CoreOS" \ From e9553d895a0b76cc3daa01b41a5dfa9c2c8d3d46 Mon Sep 17 00:00:00 2001 From: Vadim Rutkovsky Date: Thu, 2 Mar 2023 14:42:56 +0100 Subject: [PATCH 2/2] Pin crio to 1.25.1 --- crio.repo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crio.repo b/crio.repo index 2d8088f5..83b20e15 100644 --- a/crio.repo +++ b/crio.repo @@ -1,7 +1,7 @@ [cri-o_1.25] name=devel:kubic:libcontainers:stable:cri-o:1.25 (Fedora_37) type=rpm-md -baseurl=https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable:/cri-o:/1.25/Fedora_37/ +baseurl=https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable:/cri-o:/1.25:/1.25.1/Fedora_36/ gpgcheck=1 gpgkey=https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable:/cri-o:/1.25/Fedora_37/repodata/repomd.xml.key enabled=1