]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/ceph-volume/ceph_volume/tests/functional/lvm/centos7/bluestore/dmcrypt/test.yml
update sources to 12.2.7
[ceph.git] / ceph / src / ceph-volume / ceph_volume / tests / functional / lvm / centos7 / bluestore / dmcrypt / test.yml
index 2009aaefb4ef5b54d73c24760ea2fb655cbe82fb..bbdc1035d25dbd8adcf229cca4ad9f743f7277bd 100644 (file)
@@ -1,4 +1,3 @@
-
 - hosts: osds
   become: yes
   tasks:
@@ -8,33 +7,77 @@
         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
 
+    # 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
+      command: "ceph-volume lvm create --bluestore --data test_group/data-lv1 --osd-id 0"
+      environment:
+        CEPH_VOLUME_DEBUG: 1
+
     - name: stop ceph-osd@0 daemon
       service:
         name: ceph-osd@0
         state: stopped
 
-    - name: destroy osd.0 
+
+- hosts: mons
+  become: yes
+  tasks:
+
+    - name: destroy osd.0
       command: "ceph osd destroy osd.0 --yes-i-really-mean-it"
 
-    - name: zap test_group/data-lv1 
+
+- hosts: osds
+  become: yes
+  tasks:
+
+
+    - 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 
-      command: "ceph-volume lvm create --bluestore --data test_group/data-lv1 --osd-id 0"
+    - name: prepare osd.0 using test_group/data-lv1
+      command: "ceph-volume lvm prepare --bluestore --data test_group/data-lv1 --osd-id 0"
+      environment:
+        CEPH_VOLUME_DEBUG: 1
+
+    - name: activate all to start the previously prepared osd.0
+      command: "ceph-volume lvm activate --all"
       environment:
         CEPH_VOLUME_DEBUG: 1