]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
tests parted should create gpt labels on new disk 1841/head
authorAlfredo Deza <adeza@redhat.com>
Thu, 31 Aug 2017 13:33:23 +0000 (09:33 -0400)
committerAlfredo Deza <adeza@redhat.com>
Thu, 31 Aug 2017 14:09:42 +0000 (10:09 -0400)
But only for the first partition, so that a new label doesn't
blow away the previous partition created

Signed-off-by: Alfredo Deza <adeza@redhat.com>
tests/functional/lvm_setup.yml

index 53dcf364e6a60fa8caab65e65c5ca6b2ff8f9efb..9b4c71ecc48c544ca743d626d22722c1f6480e24 100644 (file)
@@ -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