From f4e5eb7e51d0c7baf438d7fed779fe393ae1a9e5 Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Wed, 8 Apr 2026 09:15:03 -0700 Subject: [PATCH] CI: set /etc/hostid in zloop runner ztest can enable and disable the multihost property when testing. This can result in a failure when attempting to import an existing pool when multihost=on but no /etc/hostid file exists. Update the workflow to use zgenhostid to create /etc/hostid when not present. Reviewed-by: Alexander Motin Signed-off-by: Brian Behlendorf Closes #18413 --- .github/workflows/zloop.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/zloop.yml b/.github/workflows/zloop.yml index 4ae3ccdc5..84bd508e2 100644 --- a/.github/workflows/zloop.yml +++ b/.github/workflows/zloop.yml @@ -41,6 +41,7 @@ jobs: sudo modprobe zfs - name: Tests run: | + [ -r /etc/hostid ] && [ -s /etc/hostid ] || sudo zgenhostid -f sudo truncate -s 256G /mnt/vdev sudo zpool create cipool -m $WORK_DIR -O compression=on -o autotrim=on /mnt/vdev sudo /usr/share/zfs/zloop.sh -t 600 -I 6 -l -m 1 -c $CORE_DIR -f $WORK_DIR -- -T 120 -P 60