Skip to content

Commit 344e14b

Browse files
committed
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 <[email protected]>
1 parent 6f53e54 commit 344e14b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: tests/tests_lvm_pool_pv_grow.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@
3333
min_size: "10g"
3434

3535
- name: Create PV with a space to grow
36-
command: "pvcreate --setphysicalvolumesize {{ pv_size }} /dev/{{ unused_disks[0] }}"
36+
command: >-
37+
timeout 30s pvcreate -vvv -y --setphysicalvolumesize
38+
{{ pv_size | quote }} /dev/{{ unused_disks[0] | quote }}
3739
register: pvcreate_output
3840
changed_when: pvcreate_output.rc != 0
3941

0 commit comments

Comments
 (0)