public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: "Michael Köppl" <m.koeppl@proxmox.com>
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	[thread overview]
Message-ID: <20261201145817.894414-8-m.koeppl@proxmox.com> (raw)
In-Reply-To: <20261201145817.894414-1-m.koeppl@proxmox.com>

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 <m.koeppl@proxmox.com>
---
 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





  parent reply	other threads:[~2026-12-01 14:59 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01 14:58 [PATCH e2e-tests/test-tools 0/8] instance: rework hooks and set up Ceph as a cluster hook Michael Köppl
2026-12-01 14:58 ` [PATCH test-tools 1/8] readme: drop token fields from the hook config example Michael Köppl
2026-12-01 14:58 ` [PATCH test-tools 2/8] instance: ship generic hook scripts Michael Köppl
2026-12-01 14:58 ` [PATCH test-tools 3/8] instance: distinguish builtin hooks from hook files Michael Köppl
2026-12-01 14:58 ` [PATCH test-tools 4/8] instance: add hooks that run once a cluster is formed Michael Köppl
2026-12-01 14:58 ` [PATCH test-tools 5/8] instance: cli: run a script once for a whole cluster Michael Köppl
2026-12-01 14:58 ` [PATCH test-tools 6/8] instance: add a builtin hook to set up a Ceph cluster Michael Köppl
2026-12-01 14:58 ` Michael Köppl [this message]
2026-12-01 14:58 ` [PATCH e2e-tests 8/8] scripts: drop the scripts now shipped by proxmox-test-instance Michael Köppl

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261201145817.894414-8-m.koeppl@proxmox.com \
    --to=m.koeppl@proxmox.com \
    --cc=pve-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal