From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [IPv6:2a0f:8001:1:32::40]) by lore.proxmox.com (Postfix) with ESMTPS id 918CB1FF09F for ; Tue, 01 Dec 2026 15:59:30 +0100 (CET) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id D4630217F3; Tue, 01 Dec 2026 15:58:32 +0100 (CET) From: =?UTF-8?q?Michael=20K=C3=B6ppl?= To: pve-devel@lists.proxmox.com Subject: [PATCH e2e-tests 8/8] scripts: drop the scripts now shipped by proxmox-test-instance Date: Tue, 1 Dec 2026 15:58:17 +0100 Message-ID: <20261201145817.894414-9-m.koeppl@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261201145817.894414-1-m.koeppl@proxmox.com> References: <20261201145817.894414-1-m.koeppl@proxmox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1796137099795 X-SPAM-LEVEL: Spam detection results: 0 AWL -0.030 Adjusted score from AWL reputation of From: address DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) KAM_SHORT 0.001 Use of a URL Shortener for very short URL POISEN_SPAM_PILL 0.1 Meta: its spam POISEN_SPAM_PILL_1 0.1 random spam to be learned in bayes POISEN_SPAM_PILL_3 0.1 random spam to be learned in bayes PROLO_LEO1 0.1 Meta Catches all Leo drug variations so far RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: GBBPQURDFQ2PME7SAHJKTPPGGLPOFETQ X-Message-ID-Hash: GBBPQURDFQ2PME7SAHJKTPPGGLPOFETQ X-MailFrom: m.koeppl@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: proxmox-test-instance ships the removed scripts as builtin hooks and the plan files use those since the previous commit. Removing the scripts here entirely avoids the builtin scripts and these scripts drifting apart. The scripts specific to these tests stay, as they're not useful to testing setups in general, but only for specific scenarios. Signed-off-by: Michael Köppl --- scripts/download-cloud-image.sh | 21 --------- scripts/download-container-image.sh | 22 --------- scripts/install-ceph.sh | 13 ------ scripts/setup-frr.sh | 18 -------- scripts/setup-zfs-storage.sh | 65 --------------------------- scripts/update-packages.sh | 69 ----------------------------- 6 files changed, 208 deletions(-) delete mode 100755 scripts/download-cloud-image.sh delete mode 100755 scripts/download-container-image.sh delete mode 100755 scripts/install-ceph.sh delete mode 100755 scripts/setup-frr.sh delete mode 100755 scripts/setup-zfs-storage.sh delete mode 100755 scripts/update-packages.sh diff --git a/scripts/download-cloud-image.sh b/scripts/download-cloud-image.sh deleted file mode 100755 index e3514d0..0000000 --- a/scripts/download-cloud-image.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/usr/bin/bash -# Downloads a VM disk image to the import content of a storage, so that VMs can be created from it -# with 'import-from'. The download is only kept if it matches the given SHA-512 checksum. -SSH_KEY=$(jq -r '.ssh_private_keyfile' "$CONFIG_PATH") -HOST=$(jq -r '.host' "$CONFIG_PATH") -USER=$(jq -r '.ssh_user' "$CONFIG_PATH") - -STORAGE=$1 -URL=$2 -FILENAME=$3 -SHA512=$4 - -ssh -i "$SSH_KEY" "$USER"@"$HOST" -o StrictHostKeyChecking=no <&2 -exit 1 -EOF diff --git a/scripts/install-ceph.sh b/scripts/install-ceph.sh deleted file mode 100755 index 2ca2d91..0000000 --- a/scripts/install-ceph.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/bash -SSH_KEY=$(jq -r '.ssh_private_keyfile' $CONFIG_PATH) -HOST=$(jq -r '.host' $CONFIG_PATH) -USER=$(jq -r '.ssh_user' $CONFIG_PATH) - -VERSION=$1 -REPOSITORY=$2 - -ssh -i $SSH_KEY $USER@$HOST -o StrictHostKeyChecking=no < -# -# The cluster nodes of plans/complete.ron install on XFS. The ZFS pool lives on an extra disk, found -# by the serial the plan assigned to it. The name is used both for the pool and for the storage id. -# The disk is looked up by ID_SCSI_SERIAL. -# -# Enabling zfs-import@ is what makes the pool come back after the node is powered down at -# the end of the setup. - -set -euo pipefail - -SSH_KEY=$(jq -r '.ssh_private_keyfile' $CONFIG_PATH) -HOST=$(jq -r '.host' $CONFIG_PATH) -USER=$(jq -r '.ssh_user' $CONFIG_PATH) - -SERIAL=$1 -POOL=$2 - -ssh -i $SSH_KEY $USER@$HOST -o StrictHostKeyChecking=no bash -s -- "$SERIAL" "$POOL" <<'EOF' -set -e - -serial=$1 -pool=$2 - -dev="" -for disk in /dev/sd?; do - udevadm info --query=property --name="$disk" | grep -qx "ID_SCSI_SERIAL=$serial" || continue - dev="$disk" - break -done - -if [ -z "$dev" ]; then - echo "no disk with SCSI serial '$serial' on $(hostname); disks on this node:" >&2 - for disk in /dev/sd?; do - echo " $disk $(udevadm info --query=property --name="$disk" \ - | grep '^ID_SCSI_SERIAL=' || echo 'ID_SCSI_SERIAL=')" >&2 - done - exit 1 -fi - -# Prefer the persistent link, as PVE's disk management does, and fall back to the device node -# for a disk udev created no such link for. -if link=$(udevadm info --query=symlink --name="$dev" | tr ' ' '\n' | grep -m1 '^disk/by-id/scsi-') -then - dev="/dev/$link" -fi - -if ! zpool list -H "$pool" >/dev/null 2>&1; then - zpool create -o ashift=12 "$pool" "$dev" - zfs set compression=on "$pool" -fi - -if [ -e /lib/systemd/system/zfs-import@.service ]; then - systemctl enable "zfs-import@$pool.service" -fi - -# The storage is what the tests look for, so it needs the content types for guest images. -if ! pvesm status --storage "$pool" >/dev/null 2>&1; then - pvesm add zfspool "$pool" --pool "$pool" --content images,rootdir --sparse 1 -fi -EOF diff --git a/scripts/update-packages.sh b/scripts/update-packages.sh deleted file mode 100755 index eb96594..0000000 --- a/scripts/update-packages.sh +++ /dev/null @@ -1,69 +0,0 @@ -#!/usr/bin/bash -SSH_KEY=$(jq -r '.ssh_private_keyfile' $CONFIG_PATH) -HOST=$(jq -r '.host' $CONFIG_PATH) -USER=$(jq -r '.ssh_user' $CONFIG_PATH) - -product=$1 -repo=$2 - -case $product in - "pve") - maj=9 - ;; - "pmg") - maj=9 - ;; - "pbs") - maj=4 - ;; - "pdm") - maj=1 - ;; - *) - echo "unknown product: $product" - exit 1 - ;; -esac - -case $repo in - "staging") - full_repo="Types: deb -URIs: http://repo.intra.proxmox.com/staging/${product} -Suites: trixie -Components: ${product}-${maj} -Signed-By: /usr/share/keyrings/proxmox-archive-keyring.gpg" - ;; - "no-subscription") - full_repo="Types: deb -URIs: http://download.proxmox.com/debian/${product} -Suites: trixie -Components: ${product}-no-subscription -Signed-By: /usr/share/keyrings/proxmox-archive-keyring.gpg" - ;; - "test") - full_repo="Types: deb -URIs: http://download.proxmox.com/debian/${product} -Suites: trixie -Components: ${product}-test -Signed-By: /usr/share/keyrings/proxmox-archive-keyring.gpg" - ;; -esac - -ssh -i $SSH_KEY $USER@$HOST -o StrictHostKeyChecking=no < /etc/apt/sources.list.d/pve-$repo.sources <