From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [45.144.208.40]) by lore.proxmox.com (Postfix) with ESMTPS id 89EE91FF09F for ; Tue, 01 Dec 2026 15:59:42 +0100 (CET) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 73BE2217FE; Tue, 01 Dec 2026 15:58:33 +0100 (CET) From: =?UTF-8?q?Michael=20K=C3=B6ppl?= To: pve-devel@lists.proxmox.com Subject: [PATCH e2e-tests 7/8] plans: use the hook scripts shipped with proxmox-test-instance Date: Tue, 1 Dec 2026 15:58:16 +0100 Message-ID: <20261201145817.894414-8-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: 1796137099724 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.046 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_LOTSOFHASH 0.25 Emails with lots of hash-like gibberish 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: PTB44VGF74DPWW7MGSU7QQBDCFHOHP7E X-Message-ID-Hash: PTB44VGF74DPWW7MGSU7QQBDCFHOHP7E 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 now ships the generic hook scripts itself and no longer accepts hooks given as command lines. Those ran relative to the current dir of proxmox-test-instance, so the plans only found their scripts when it was run from the root of this repository. Use the builtins for updating packages, downloading images, installing Ceph, and setting up ZFS storages as well as FRR. Reference the scripts specific to these tests relative to the plan, so they are found from anywhere, including the installed copy under /usr/share/proxmox-e2e-tests. This changes the setup digest of all plans, so for existing setups, their next setup starts from scratch. The comment explaining the replication test in more detail also mentioned the ZFS setup script explicitly. Replace this by mentioning the new hook to avoid confusion. Signed-off-by: Michael Köppl --- plans/complete.ron | 46 ++++++++++++++++++++-------------------- plans/pbs.ron | 6 +++--- plans/sdn.ron | 18 ++++++++-------- tests/pve_replication.pl | 2 +- 4 files changed, 36 insertions(+), 36 deletions(-) diff --git a/plans/complete.ron b/plans/complete.ron index 3210ac4..56c7417 100644 --- a/plans/complete.ron +++ b/plans/complete.ron @@ -13,11 +13,11 @@ Plan( root_password: Ref("default"), ), post_setup: [ - "./scripts/update-packages.sh pve staging", - "./scripts/download-container-image.sh local debian-12-standard_12.12-1_amd64.tar.zst", - "./scripts/build-oci-image.sh local e2e-oci", - "./scripts/download-cloud-image.sh local https://cloud.debian.org/images/cloud/trixie/20261017-2634/debian-13-genericcloud-amd64-20261017-2634.qcow2 debian-13-genericcloud-amd64.qcow2 ec584ccabfef7120b4c4f7482adf0e615894d9292cedec446b64194b951ebe5dd97c336b5dcbae458333764b0edd516334506017f33c4f2020ef8d38b569ffe3", - "./scripts/setup-pebble.sh", + Builtin("update-packages pve staging"), + Builtin("download-container-image local debian-12-standard_12.12-1_amd64.tar.zst"), + File("../scripts/build-oci-image.sh local e2e-oci"), + Builtin("download-cloud-image local https://cloud.debian.org/images/cloud/trixie/20261017-2634/debian-13-genericcloud-amd64-20261017-2634.qcow2 debian-13-genericcloud-amd64.qcow2 ec584ccabfef7120b4c4f7482adf0e615894d9292cedec446b64194b951ebe5dd97c336b5dcbae458333764b0edd516334506017f33c4f2020ef8d38b569ffe3"), + File("../scripts/setup-pebble.sh"), ], ), SetupInstance( @@ -32,7 +32,7 @@ Plan( root_password: Ref("default"), ), post_setup: [ - "./scripts/update-packages.sh pbs staging", + Builtin("update-packages pbs staging"), ], playbook: "./scripts/setup-ldap.yml" ), @@ -48,7 +48,7 @@ Plan( root_password: Ref("default"), ), post_setup: [ - "./scripts/update-packages.sh pbs staging", + Builtin("update-packages pbs staging"), ], ), SetupInstance( @@ -61,7 +61,7 @@ Plan( root_password: Ref("default"), ), post_setup: [ - "./scripts/setup-s3.sh", + File("../scripts/setup-s3.sh"), ], ), SetupInstance( @@ -96,10 +96,10 @@ Plan( ], ), post_setup: [ - "./scripts/update-packages.sh pve staging", - "./scripts/download-container-image.sh local debian-12-standard_12.12-1_amd64.tar.zst", - "./scripts/setup-zfs-storage.sh zfs0 zfstest", - "./scripts/install-ceph.sh tentacle test", + Builtin("update-packages pve staging"), + Builtin("download-container-image local debian-12-standard_12.12-1_amd64.tar.zst"), + Builtin("setup-zfs-storage zfs0 zfstest"), + Builtin("install-ceph tentacle test"), ], ), SetupInstance( @@ -134,10 +134,10 @@ Plan( ], ), post_setup: [ - "./scripts/update-packages.sh pve staging", - "./scripts/download-container-image.sh local debian-12-standard_12.12-1_amd64.tar.zst", - "./scripts/setup-zfs-storage.sh zfs0 zfstest", - "./scripts/install-ceph.sh tentacle test", + Builtin("update-packages pve staging"), + Builtin("download-container-image local debian-12-standard_12.12-1_amd64.tar.zst"), + Builtin("setup-zfs-storage zfs0 zfstest"), + Builtin("install-ceph tentacle test"), ], ), SetupInstance( @@ -172,10 +172,10 @@ Plan( ], ), post_setup: [ - "./scripts/update-packages.sh pve staging", - "./scripts/download-container-image.sh local debian-12-standard_12.12-1_amd64.tar.zst", - "./scripts/setup-zfs-storage.sh zfs0 zfstest", - "./scripts/install-ceph.sh tentacle test", + Builtin("update-packages pve staging"), + Builtin("download-container-image local debian-12-standard_12.12-1_amd64.tar.zst"), + Builtin("setup-zfs-storage zfs0 zfstest"), + Builtin("install-ceph tentacle test"), ], ), SetupInstance( @@ -189,7 +189,7 @@ Plan( root_password: Ref("default"), ), post_setup: [ - "./scripts/setup-frr.sh", + Builtin("setup-frr"), ], ), SetupInstance( @@ -203,7 +203,7 @@ Plan( root_password: Ref("default"), ), post_setup: [ - "./scripts/setup-frr.sh", + Builtin("setup-frr"), ], ), SetupInstance( @@ -217,7 +217,7 @@ Plan( root_password: Ref("default"), ), post_setup: [ - "./scripts/setup-frr.sh", + Builtin("setup-frr"), ], ), ], diff --git a/plans/pbs.ron b/plans/pbs.ron index 43cdd3a..0ac7bd2 100644 --- a/plans/pbs.ron +++ b/plans/pbs.ron @@ -13,7 +13,7 @@ Plan( root_password: Ref("default"), ), post_setup: [ - "./scripts/update-packages.sh pve staging", + Builtin("update-packages pve staging"), ], ), SetupInstance( @@ -28,7 +28,7 @@ Plan( root_password: Ref("default"), ), post_setup: [ - "./scripts/update-packages.sh pbs staging", + Builtin("update-packages pbs staging"), ], ), SetupInstance( @@ -41,7 +41,7 @@ Plan( root_password: Ref("default"), ), post_setup: [ - "./scripts/setup-s3.sh", + File("../scripts/setup-s3.sh"), ], ), ] diff --git a/plans/sdn.ron b/plans/sdn.ron index 887b6a0..5d6ca1d 100644 --- a/plans/sdn.ron +++ b/plans/sdn.ron @@ -18,8 +18,8 @@ Plan( ], ), post_setup: [ - "./scripts/update-packages.sh pve staging", - "./scripts/download-container-image.sh local debian-12-standard_12.12-1_amd64.tar.zst", + Builtin("update-packages pve staging"), + Builtin("download-container-image local debian-12-standard_12.12-1_amd64.tar.zst"), ], ), SetupInstance( @@ -38,8 +38,8 @@ Plan( ], ), post_setup: [ - "./scripts/update-packages.sh pve staging", - "./scripts/download-container-image.sh local debian-12-standard_12.12-1_amd64.tar.zst", + Builtin("update-packages pve staging"), + Builtin("download-container-image local debian-12-standard_12.12-1_amd64.tar.zst"), ], ), SetupInstance( @@ -58,8 +58,8 @@ Plan( ], ), post_setup: [ - "./scripts/update-packages.sh pve staging", - "./scripts/download-container-image.sh local debian-12-standard_12.12-1_amd64.tar.zst", + Builtin("update-packages pve staging"), + Builtin("download-container-image local debian-12-standard_12.12-1_amd64.tar.zst"), ], ), SetupInstance( @@ -73,7 +73,7 @@ Plan( root_password: Ref("default"), ), post_setup: [ - "./scripts/setup-frr.sh", + Builtin("setup-frr"), ], ), SetupInstance( @@ -87,7 +87,7 @@ Plan( root_password: Ref("default"), ), post_setup: [ - "./scripts/setup-frr.sh", + Builtin("setup-frr"), ], ), SetupInstance( @@ -101,7 +101,7 @@ Plan( root_password: Ref("default"), ), post_setup: [ - "./scripts/setup-frr.sh", + Builtin("setup-frr"), ], ), ], diff --git a/tests/pve_replication.pl b/tests/pve_replication.pl index 158828d..79211d4 100755 --- a/tests/pve_replication.pl +++ b/tests/pve_replication.pl @@ -11,7 +11,7 @@ use Proxmox::Test::Testcase; # Tests storage replication job CRUD between two cluster nodes. # # Requires the three-node cluster from plans/complete.ron, whose nodes carry the 'zfstest' -# storage that scripts/setup-zfs-storage.sh sets up on an extra disk. Any ZFS-backed storage +# storage that the setup-zfs-storage hook sets up on an extra disk. Any ZFS-backed storage # configured with the same ID across the nodes works. If none is present, the test skips. # # Verifies: -- 2.47.3