]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/ceph-volume/ceph_volume/tests/functional/lvm/xenial/bluestore/dmcrypt/test.yml
update sources to 12.2.7
[ceph.git] / ceph / src / ceph-volume / ceph_volume / tests / functional / lvm / xenial / bluestore / dmcrypt / test.yml
index 9a60ab2e0ecfad9ad06ad4d5e047b42afccf7f54..f93ff2304e3cac1baf248842660f606f8172d466 100644 (file)
@@ -1,4 +1,3 @@
-
 - hosts: osds
   become: yes
   tasks:
@@ -8,33 +7,44 @@
         name: ceph-osd@2
         state: stopped
 
-    - name: destroy osd.2 
+    - name: stop ceph-osd@0 daemon
+      service:
+        name: ceph-osd@0
+        state: stopped
+
+- hosts: mons
+  become: yes
+  tasks:
+
+    - name: destroy osd.2
       command: "ceph osd destroy osd.2 --yes-i-really-mean-it"
 
-    - name: zap /dev/sdd1 
+    - name: destroy osd.0
+      command: "ceph osd destroy osd.0 --yes-i-really-mean-it"
+
+
+- hosts: osds
+  become: yes
+  tasks:
+
+    # osd.2 device
+    - name: zap /dev/sdd1
       command: "ceph-volume lvm zap /dev/sdd1 --destroy"
       environment:
         CEPH_VOLUME_DEBUG: 1
 
-    - name: redeploy osd.2 using /dev/sdd1 
+    - name: redeploy osd.2 using /dev/sdd1
       command: "ceph-volume lvm create --bluestore --data /dev/sdd1 --osd-id 2"
       environment:
         CEPH_VOLUME_DEBUG: 1
 
-    - name: stop ceph-osd@0 daemon
-      service:
-        name: ceph-osd@0
-        state: stopped
-
-    - name: destroy osd.0 
-      command: "ceph osd destroy osd.0 --yes-i-really-mean-it"
-
-    - name: zap test_group/data-lv1 
+    # osd.0 lv
+    - name: zap test_group/data-lv1
       command: "ceph-volume lvm zap test_group/data-lv1"
       environment:
         CEPH_VOLUME_DEBUG: 1
 
-    - name: redeploy osd.0 using test_group/data-lv1 
+    - name: redeploy osd.0 using test_group/data-lv1
       command: "ceph-volume lvm create --bluestore --data test_group/data-lv1 --osd-id 0"
       environment:
         CEPH_VOLUME_DEBUG: 1
         name: ceph-osd@0
         state: stopped
 
+
+- hosts: mons
+  become: yes
+  tasks:
+
     - name: destroy osd.0
       command: "ceph osd destroy osd.0 --yes-i-really-mean-it"
 
+
+- hosts: osds
+  become: yes
+  tasks:
+
     - name: zap test_group/data-lv1
       command: "ceph-volume lvm zap test_group/data-lv1"
       environment: