]> git.proxmox.com Git - ceph.git/blob - ceph/src/ceph-volume/ceph_volume/tests/functional/lvm/xenial/filestore/dmcrypt/test.yml
update sources to 12.2.7
[ceph.git] / ceph / src / ceph-volume / ceph_volume / tests / functional / lvm / xenial / filestore / dmcrypt / test.yml
1
2 - hosts: osds
3 become: yes
4 tasks:
5
6 - name: stop ceph-osd@2 daemon
7 service:
8 name: ceph-osd@2
9 state: stopped
10
11 - name: stop ceph-osd@0 daemon
12 service:
13 name: ceph-osd@0
14 state: stopped
15
16
17 - hosts: mons
18 become: yes
19 tasks:
20
21 - name: destroy osd.2
22 command: "ceph osd destroy osd.2 --yes-i-really-mean-it"
23
24 - name: destroy osd.0
25 command: "ceph osd destroy osd.0 --yes-i-really-mean-it"
26
27
28 - hosts: osds
29 become: yes
30 tasks:
31
32 # osd.2 device
33 - name: zap /dev/sdd1
34 command: "ceph-volume lvm zap /dev/sdd1 --destroy"
35 environment:
36 CEPH_VOLUME_DEBUG: 1
37
38 - name: zap /dev/sdd2
39 command: "ceph-volume lvm zap /dev/sdd2 --destroy"
40 environment:
41 CEPH_VOLUME_DEBUG: 1
42
43 - name: redeploy osd.2 using /dev/sdd1
44 command: "ceph-volume lvm create --filestore --data /dev/sdd1 --journal /dev/sdd2 --osd-id 2"
45 environment:
46 CEPH_VOLUME_DEBUG: 1
47
48 # osd.0 lv
49 - name: zap test_group/data-lv1
50 command: "ceph-volume lvm zap test_group/data-lv1"
51 environment:
52 CEPH_VOLUME_DEBUG: 1
53
54 - name: zap /dev/sdc1
55 command: "ceph-volume lvm zap /dev/sdc1 --destroy"
56 environment:
57 CEPH_VOLUME_DEBUG: 1
58
59 - name: prepare osd.0 again using test_group/data-lv1
60 command: "ceph-volume lvm prepare --filestore --data test_group/data-lv1 --journal /dev/sdc1 --osd-id 0"
61 environment:
62 CEPH_VOLUME_DEBUG: 1
63
64 - name: activate all to start the previously prepared osd.0
65 command: "ceph-volume lvm activate --filestore --all"
66 environment:
67 CEPH_VOLUME_DEBUG: 1