]>
Commit | Line | Data |
---|---|---|
3efd9988 FG |
1 | --- |
2 | ||
3 | - hosts: osds | |
4 | become: yes | |
5 | tasks: | |
6 | ||
a8e16298 TL |
7 | - name: scan all running OSDs |
8 | command: "ceph-volume --cluster={{ cluster }} simple scan" | |
3efd9988 FG |
9 | environment: |
10 | CEPH_VOLUME_DEBUG: 1 | |
3efd9988 FG |
11 | |
12 | - name: activate all scanned OSDs | |
a8e16298 | 13 | command: "ceph-volume --cluster={{ cluster }} simple activate --all" |
3efd9988 FG |
14 | environment: |
15 | CEPH_VOLUME_DEBUG: 1 | |
11fdf7f2 TL |
16 | |
17 | # zap tests | |
18 | ||
19 | - hosts: osds | |
20 | become: yes | |
21 | tasks: | |
22 | ||
23 | - name: stop ceph-osd daemons | |
24 | service: | |
25 | name: "ceph-osd@{{ item }}" | |
26 | state: stopped | |
27 | with_items: | |
28 | - "0" | |
29 | - "1" | |
30 | ||
31 | ||
32 | - hosts: mons | |
33 | become: yes | |
34 | tasks: | |
35 | ||
36 | - name: purge osds | |
37 | command: "ceph --cluster {{ cluster }} osd purge osd.{{ item }} --yes-i-really-mean-it" | |
38 | with_items: | |
39 | - "0" | |
40 | - "1" | |
41 | ||
42 | ||
43 | - hosts: osds | |
44 | become: yes | |
45 | tasks: | |
46 | ||
47 | - name: zap devices used for OSDs | |
48 | command: "ceph-volume --cluster {{ cluster }} lvm zap --osd-id {{ item }} --destroy" | |
49 | with_items: | |
50 | - "0" | |
51 | - "1" | |
52 | environment: | |
53 | CEPH_VOLUME_DEBUG: 1 | |
54 |