]> git.proxmox.com Git - ceph.git/blob - 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
1 - hosts: osds
2 become: yes
3 tasks:
4
5 - name: stop ceph-osd@2 daemon
6 service:
7 name: ceph-osd@2
8 state: stopped
9
10 - name: stop ceph-osd@0 daemon
11 service:
12 name: ceph-osd@0
13 state: stopped
14
15 - hosts: mons
16 become: yes
17 tasks:
18
19 - name: destroy osd.2
20 command: "ceph osd destroy osd.2 --yes-i-really-mean-it"
21
22 - name: destroy osd.0
23 command: "ceph osd destroy osd.0 --yes-i-really-mean-it"
24
25
26 - hosts: osds
27 become: yes
28 tasks:
29
30 # osd.2 device
31 - name: zap /dev/sdd1
32 command: "ceph-volume lvm zap /dev/sdd1 --destroy"
33 environment:
34 CEPH_VOLUME_DEBUG: 1
35
36 - name: redeploy osd.2 using /dev/sdd1
37 command: "ceph-volume lvm create --bluestore --data /dev/sdd1 --osd-id 2"
38 environment:
39 CEPH_VOLUME_DEBUG: 1
40
41 # osd.0 lv
42 - name: zap test_group/data-lv1
43 command: "ceph-volume lvm zap test_group/data-lv1"
44 environment:
45 CEPH_VOLUME_DEBUG: 1
46
47 - name: redeploy osd.0 using test_group/data-lv1
48 command: "ceph-volume lvm create --bluestore --data test_group/data-lv1 --osd-id 0"
49 environment:
50 CEPH_VOLUME_DEBUG: 1
51
52 - name: stop ceph-osd@0 daemon
53 service:
54 name: ceph-osd@0
55 state: stopped
56
57
58 - hosts: mons
59 become: yes
60 tasks:
61
62 - name: destroy osd.0
63 command: "ceph osd destroy osd.0 --yes-i-really-mean-it"
64
65
66 - hosts: osds
67 become: yes
68 tasks:
69
70 - name: zap test_group/data-lv1
71 command: "ceph-volume lvm zap test_group/data-lv1"
72 environment:
73 CEPH_VOLUME_DEBUG: 1
74
75 - name: prepare osd.0 using test_group/data-lv1
76 command: "ceph-volume lvm prepare --bluestore --data test_group/data-lv1 --osd-id 0"
77 environment:
78 CEPH_VOLUME_DEBUG: 1
79
80 - name: activate all to start the previously prepared osd.0
81 command: "ceph-volume lvm activate --all"
82 environment:
83 CEPH_VOLUME_DEBUG: 1