From 1efea767fe46e5bb8230b9983f41c39ca9c936e1 Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Thu, 31 Aug 2017 09:33:23 -0400 Subject: [PATCH] tests parted should create gpt labels on new disk But only for the first partition, so that a new label doesn't blow away the previous partition created Signed-off-by: Alfredo Deza --- tests/functional/lvm_setup.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/functional/lvm_setup.yml b/tests/functional/lvm_setup.yml index 53dcf364e..9b4c71ecc 100644 --- a/tests/functional/lvm_setup.yml +++ b/tests/functional/lvm_setup.yml @@ -4,7 +4,7 @@ gather_facts: false become: yes tasks: - + - name: create physical volume command: pvcreate /dev/sdb failed_when: false @@ -28,6 +28,9 @@ part_start: 0% part_end: 50% unit: '%' + # this is a brand-new, unlabeled disk, so add the label + # only for the first partition + label: gpt state: present - name: partition /dev/sdc for journals -- 2.39.5