From df64d3f88260655282341694874b1b96a31aa502 Mon Sep 17 00:00:00 2001 From: Zeqian Meng <1109697+ZeqianMeng@users.noreply.github.com> Date: Wed, 20 Aug 2025 11:37:23 +0200 Subject: [PATCH] Remove rbd image and storage class The rbd in-tree storage driver and related support have been dropped entirely since v1.31 release. And the image is not being used in e2e tests. --- .../testing-manifests/rbd-storage-class.yaml | 14 ---- test/images/volume/rbd/BASEIMAGE | 4 - test/images/volume/rbd/Dockerfile | 37 --------- test/images/volume/rbd/README.md | 9 --- test/images/volume/rbd/VERSION | 1 - test/images/volume/rbd/block.tar.gz | Bin 128753 -> 0 bytes test/images/volume/rbd/bootstrap.sh | 76 ------------------ test/images/volume/rbd/ceph.conf.sh | 42 ---------- test/images/volume/rbd/create_block.sh | 50 ------------ test/images/volume/rbd/keyring | 8 -- test/images/volume/rbd/mds.sh | 20 ----- test/images/volume/rbd/mon.sh | 36 --------- test/images/volume/rbd/osd.sh | 25 ------ 13 files changed, 322 deletions(-) delete mode 100644 test/e2e/testing-manifests/rbd-storage-class.yaml delete mode 100644 test/images/volume/rbd/BASEIMAGE delete mode 100644 test/images/volume/rbd/Dockerfile delete mode 100644 test/images/volume/rbd/README.md delete mode 100644 test/images/volume/rbd/VERSION delete mode 100644 test/images/volume/rbd/block.tar.gz delete mode 100755 test/images/volume/rbd/bootstrap.sh delete mode 100755 test/images/volume/rbd/ceph.conf.sh delete mode 100755 test/images/volume/rbd/create_block.sh delete mode 100644 test/images/volume/rbd/keyring delete mode 100755 test/images/volume/rbd/mds.sh delete mode 100755 test/images/volume/rbd/mon.sh delete mode 100755 test/images/volume/rbd/osd.sh diff --git a/test/e2e/testing-manifests/rbd-storage-class.yaml b/test/e2e/testing-manifests/rbd-storage-class.yaml deleted file mode 100644 index e2d7d67d98c..00000000000 --- a/test/e2e/testing-manifests/rbd-storage-class.yaml +++ /dev/null @@ -1,14 +0,0 @@ -apiVersion: storage.k8s.io/v1 -kind: StorageClass -metadata: - name: slow -provisioner: kubernetes.io/rbd -parameters: - monitors: 127.0.0.1:6789 - adminId: admin - adminSecretName: ceph-secret-admin - adminSecretNamespace: "kube-system" - pool: kube - userId: kube - userSecretName: ceph-secret-user - diff --git a/test/images/volume/rbd/BASEIMAGE b/test/images/volume/rbd/BASEIMAGE deleted file mode 100644 index 7f6cb4ec098..00000000000 --- a/test/images/volume/rbd/BASEIMAGE +++ /dev/null @@ -1,4 +0,0 @@ -linux/amd64=fedora:38 -linux/arm64=arm64v8/fedora:38 -linux/ppc64le=ppc64le/fedora:38 -linux/s390x=s390x/fedora:38 diff --git a/test/images/volume/rbd/Dockerfile b/test/images/volume/rbd/Dockerfile deleted file mode 100644 index fd82a4126a5..00000000000 --- a/test/images/volume/rbd/Dockerfile +++ /dev/null @@ -1,37 +0,0 @@ -# Copyright 2016 The Kubernetes Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# CEPH all in one -# Based on image by Ricardo Rocha, ricardo@catalyst.net.nz - -ARG BASEIMAGE -FROM $BASEIMAGE - -CROSS_BUILD_COPY qemu-QEMUARCH-static /usr/bin/ - -# Base Packages -RUN yum install -y wget strace psmisc procps-ng ceph ceph-fuse hostname && yum clean all - -# Get ports exposed -EXPOSE 6789 - -ADD ./bootstrap.sh /bootstrap.sh -ADD ./mon.sh /mon.sh -ADD ./mds.sh /mds.sh -ADD ./osd.sh /osd.sh -ADD ./ceph.conf.sh /ceph.conf.sh -ADD ./keyring /var/lib/ceph/mon/keyring -ADD ./block.tar.gz / - -CMD /bootstrap.sh diff --git a/test/images/volume/rbd/README.md b/test/images/volume/rbd/README.md deleted file mode 100644 index 1630be89df8..00000000000 --- a/test/images/volume/rbd/README.md +++ /dev/null @@ -1,9 +0,0 @@ -# rbd and ceph target container for testing. - -* The container needs to run with `docker --privileged` mode - -`block.tar.gz` is a small ext2 filesystem created by `create_block.sh` (run as root!) - -# Credentials - -Credentials in this directory are generated for testing purposes only. diff --git a/test/images/volume/rbd/VERSION b/test/images/volume/rbd/VERSION deleted file mode 100644 index af0b7ddbffd..00000000000 --- a/test/images/volume/rbd/VERSION +++ /dev/null @@ -1 +0,0 @@ -1.0.6 diff --git a/test/images/volume/rbd/block.tar.gz b/test/images/volume/rbd/block.tar.gz deleted file mode 100644 index 8ec08a1d96204c7a7b1a8b517b3eb8bbcb2dc003..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 128753 zcmeI*d0bOh+6V9`)@W_TE)I2ELR%FrqqY?cYoan$!I89BSC&YvQWgmcvV=fT+p(i# zr9?zUh^=7Cpio6w0wkzI5oOVUA_fR`gUBWj2qYwVY2V@8_cQ;z{Y=}b)nESO-1|J| zdA|4DbNPIX7smc^GB`oBa%LBo_)*+ui9}2VdYa9Gy+oJmP%O5?6 zk$3gyXQ|qBL$bnHxiYp|l_ku2MceMEW+ijZG;XiBv79>)>eb$|`5;TTna7B#{j#j- z@i&`!krijlg2NdF`Xg`h&ifa#OBr>aRXK#3#`~Smwco6g8N}@dV@?arq-tOnZwU;o zy~#|rDh>$j?aW~&pV`mmF*-h=^A=SLtCd|Fw{4rB-~2__9qD7kBU!8W0)FFUg}wSa zf5(nAx_9@Ph(c8|uTI>1JE=&gp?lriX6nA2f6-XemM&K)|<^y+(1Eh|k-L?5ycw#!)_EVQ!7P^q+MMSz@)&T5P&Cie)Nd zbu_dmaOF39ojNpTPHd~{nksvGB&)}%iE*SnXYWTh7T^3a ztb?(3``}^zAN_A_Gkv?yg+ymvCx<^F(UUz#lCuiaQqe#g-%5s4b{CMr zb-^QL3>1-hGSAo6tjG!0?_J|{fg}nbF=7>&ypO~z_=F_7L>PFR#MQ^3nOz+BUfU35Xp0Z^cbudsbV{|G}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g=A)n7 wF9=-eag#U-+gR5#^vzMHEcQ;T;f?u4NstTz5cquvY)UeBnC4wddo7;+KO`Y-761SM diff --git a/test/images/volume/rbd/bootstrap.sh b/test/images/volume/rbd/bootstrap.sh deleted file mode 100755 index 3414bfa949b..00000000000 --- a/test/images/volume/rbd/bootstrap.sh +++ /dev/null @@ -1,76 +0,0 @@ -#!/usr/bin/env bash - -# Copyright 2015 The Kubernetes Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# -# Bootstraps a CEPH server. -# It creates two OSDs on local machine, creates RBD pool there -# and imports 'block' device there. -# -# We must create fresh OSDs and filesystem here, because shipping it -# in a container would increase the image by ~300MB. -# - - -# Create /etc/ceph/ceph.conf -sh ./ceph.conf.sh "$(hostname -i)" - -# Configure and start ceph-mon -sh ./mon.sh "$(hostname -i)" - -# Configure and start 2x ceph-osd -mkdir -p /var/lib/ceph/osd/ceph-0 /var/lib/ceph/osd/ceph-1 -sh ./osd.sh 0 -sh ./osd.sh 1 - -# Configure and start cephfs metadata server -sh ./mds.sh - -# Prepare a RBD volume "foo" (only with layering feature, the others may -# require newer clients). -# NOTE: we need Ceph kernel modules on the host that runs the client! -# As the default pool `rbd` might not be created on arm64 platform for ceph deployment, -# should create it if it does not exist. -arch=$(uname -m) -if [[ ${arch} = 'aarch64' || ${arch} = 'arm64' ]]; then - if [[ $(ceph osd lspools) = "" ]]; then - ceph osd pool create rbd 8 - rbd pool init rbd - fi -fi -rbd import --image-feature layering block foo - -# Prepare a cephfs volume -ceph osd pool create cephfs_data 4 -ceph osd pool create cephfs_metadata 4 -ceph fs new cephfs cephfs_metadata cephfs_data -# Put index.html into the volume -# It takes a while until the volume created above is mountable, -# 1 second is usually enough, but try indefinetily. -sleep 1 -while ! ceph-fuse -m "$(hostname -i):6789" /mnt; do - echo "Waiting for cephfs to be up" - sleep 1 -done -echo "Hello Ceph!" > /mnt/index.html -chmod 644 /mnt/index.html -umount /mnt - -echo "Ceph is ready" - -# Wait forever -while true; do - sleep 10 -done diff --git a/test/images/volume/rbd/ceph.conf.sh b/test/images/volume/rbd/ceph.conf.sh deleted file mode 100755 index 6db6658d128..00000000000 --- a/test/images/volume/rbd/ceph.conf.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/usr/bin/env bash - -# Copyright 2015 The Kubernetes Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# -# Configures /etc/ceph.conf from a template. -# - -echo " -[global] -auth cluster required = none -auth service required = none -auth client required = none - -[mon.a] -host = cephbox -mon addr = $1 - -[osd] -osd journal size = 128 -journal dio = false - -# allow running on ext4 -osd max object name len = 256 -osd max object namespace len = 64 - -[osd.0] -osd host = cephbox -" > /etc/ceph/ceph.conf - diff --git a/test/images/volume/rbd/create_block.sh b/test/images/volume/rbd/create_block.sh deleted file mode 100755 index 258639e0eb7..00000000000 --- a/test/images/volume/rbd/create_block.sh +++ /dev/null @@ -1,50 +0,0 @@ -#!/usr/bin/env bash - -# Copyright 2015 The Kubernetes Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Create block.tar.gz with a small ext2 filesystem. -# It must be run as root (to mount with '-o loop')! - -# Exit on the first error. -set -e - -MNTDIR="$(mktemp -d)" - -cleanup() -{ - # Make sure we return the right exit code - RET=$? - # Silently remove everything and ignore errors - set +e - /bin/umount "$MNTDIR" 2>/dev/null - /bin/rmdir "$MNTDIR" 2>/dev/null - /bin/rm block 2>/dev/null - exit $RET -} - -trap cleanup TERM EXIT - -# Create 120MB device with ext2 -# (volume_io tests need at least 100MB) -dd if=/dev/zero of=block seek=120 count=1 bs=1M -mkfs.ext2 block - -# Add index.html to it -mount -o loop block "$MNTDIR" -echo "Hello from RBD" > "$MNTDIR/index.html" -umount "$MNTDIR" - -rm block.tar.gz 2>/dev/null || : -tar cfz block.tar.gz block diff --git a/test/images/volume/rbd/keyring b/test/images/volume/rbd/keyring deleted file mode 100644 index f8c5af22417..00000000000 --- a/test/images/volume/rbd/keyring +++ /dev/null @@ -1,8 +0,0 @@ -[mon.] - key = AQDRrKNV6z4UChAABzP1ZyysTU4pjgjNOf/p3A== -[client.admin] - key = AQDRrKNVbEevChAAEmRC+pW/KBVHxa0w/POILA== - auid = 0 - caps mds = "allow *" - caps mon = "allow *" - caps osd = "allow *" diff --git a/test/images/volume/rbd/mds.sh b/test/images/volume/rbd/mds.sh deleted file mode 100755 index a5c89677446..00000000000 --- a/test/images/volume/rbd/mds.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env bash - -# Copyright 2017 The Kubernetes Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# -# Configures Ceph Metadata Service (mds), needed by CephFS -# -ceph-mds -i cephfs -c /etc/ceph/ceph.conf diff --git a/test/images/volume/rbd/mon.sh b/test/images/volume/rbd/mon.sh deleted file mode 100755 index 21c4ee64383..00000000000 --- a/test/images/volume/rbd/mon.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/usr/bin/env bash - -# Copyright 2015 The Kubernetes Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# -# Configures and launches a new MON. -# - -# monitor setup -monmaptool --create --clobber --fsid "$(uuidgen)" --add a "${1}":6789 /etc/ceph/monmap -mkdir /var/lib/ceph/mon/ceph-a -ceph-mon -i a --mkfs --monmap /etc/ceph/monmap -k /var/lib/ceph/mon/keyring -cp /var/lib/ceph/mon/keyring /var/lib/ceph/mon/ceph-a -ceph-mon -i a --monmap /etc/ceph/monmap -k /var/lib/ceph/mon/ceph-a/keyring - -# client setup (handy) -cp /var/lib/ceph/mon/keyring /etc/ceph - -# for this test we want to -ceph osd getcrushmap -o /tmp/crushc -crushtool -d /tmp/crushc -o /tmp/crushd -sed -i 's/step chooseleaf firstn 0 type host/step chooseleaf firstn 0 type osd/' /tmp/crushd -crushtool -c /tmp/crushd -o /tmp/crushc -ceph osd setcrushmap -i /tmp/crushc diff --git a/test/images/volume/rbd/osd.sh b/test/images/volume/rbd/osd.sh deleted file mode 100755 index f86d3d17319..00000000000 --- a/test/images/volume/rbd/osd.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/usr/bin/env bash - -# Copyright 2015 The Kubernetes Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# -# Configures and launches a new OSD. -# - -ceph osd create -ceph-osd -i "${1}" --mkfs --mkkey -ceph auth add "osd.${1}" osd 'allow *' mon 'allow rwx' -i "/var/lib/ceph/osd/ceph-${1}/keyring" -ceph osd crush add "${1}" 1 root=default host=cephbox -ceph-osd -i "${1}" -k "/var/lib/ceph/osd/ceph-${1}/keyring"