From 344e14bd9448cebcef8466f2e303caffcd95aa00 Mon Sep 17 00:00:00 2001 From: Rich Megginson Date: Mon, 19 Aug 2024 14:19:00 -0600 Subject: [PATCH] test: use pvcreate with a timeout and verbose logging the pvcreate call gives us problems, and different problems on different platforms. Use `timeout 30s` to avoid hangs when it tries to read from stdin. Use verbose `-vvv` to figure out why it hangs/fails. Use `-y` to make it not ask questions and continue anyway. Signed-off-by: Rich Megginson --- tests/tests_lvm_pool_pv_grow.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/tests_lvm_pool_pv_grow.yml b/tests/tests_lvm_pool_pv_grow.yml index b0543060..a039ec5f 100644 --- a/tests/tests_lvm_pool_pv_grow.yml +++ b/tests/tests_lvm_pool_pv_grow.yml @@ -33,7 +33,9 @@ min_size: "10g" - name: Create PV with a space to grow - command: "pvcreate --setphysicalvolumesize {{ pv_size }} /dev/{{ unused_disks[0] }}" + command: >- + timeout 30s pvcreate -vvv -y --setphysicalvolumesize + {{ pv_size | quote }} /dev/{{ unused_disks[0] | quote }} register: pvcreate_output changed_when: pvcreate_output.rc != 0