]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
tests: delete journal partitions in lvm_setup.yml 1890/head
authorAndrew Schoen <aschoen@redhat.com>
Wed, 13 Sep 2017 20:02:54 +0000 (15:02 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Wed, 13 Sep 2017 20:02:54 +0000 (15:02 -0500)
Delete these before creating them incase they are left around in a purge
cluster testing scenario. The purge-cluster.yml playbook does not
currently remove partitions used for journals.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
tests/functional/lvm_setup.yml

index a3079fd4f216ad4fdaa6aefa061fc5814c826f0f..51f90da761d48335cea2787b9e84262bf019f53e 100644 (file)
       command: lvcreate --yes -l 50%FREE -n data-lv2 test_group
       failed_when: false
 
+    # purge-cluster.yml does not properly destroy partitions
+    # used for lvm osd journals, this ensures they are removed
+    # for that testing scenario
+    - name: remove /dev/sdc1 if it exists
+      parted:
+        device: /dev/sdc
+        number: 1
+        state: absent
+
+    - name: remove /dev/sdc2 if it exists
+      parted:
+        device: /dev/sdc
+        number: 2
+        state: absent
+
     - name: partition /dev/sdc for journals
       parted:
         device: /dev/sdc