-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathosds.yml
65 lines (60 loc) · 1.81 KB
/
osds.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
---
- name: validate ceph osds status
hosts: "{{ test.monitor.nodes }}"
tasks:
- name: check OSDs were created - failed
lineinfile:
path: "{{ test.output.file }}"
line: "Check OSD how much created = failed"
when: (cluster_status.stdout|from_json).osdmap.osdmap.num_osds != {{ test.osds.number }}
run_once: yes
delegate_to: undercloud-0
tags:
- osds
- sanity
- name: check OSDs were created - passed
lineinfile:
path: "{{ test.output.file }}"
line: "Check OSD how much created = passed"
when: (cluster_status.stdout|from_json).osdmap.osdmap.num_osds == {{ test.osds.number }}
run_once: yes
delegate_to: undercloud-0
tags:
- osds
- sanity
- name: get osds list (ceph2)
shell: "ceph --cluster {{test.cluster.name}} osd tree --format json"
become: true
register: osds_list
run_once: yes
tags:
- osds
- sanity
- non-containerized
- name: get osds list (ceph3)
shell: "{{test.ceph.reg.provider}} exec ceph-mon-`hostname -s` ceph --cluster {{test.cluster.name}} osd tree --format json"
become: true
register: osds_list
run_once: yes
tags:
- osds
- sanity
- containerized
- ceph-3
- name: get osds list (ceph4)
shell: "{{test.ceph.reg.provider}} exec ceph-mon-`hostname -s` ceph --cluster {{test.cluster.name}} osd tree --format json"
become: true
register: osds_list
run_once: yes
tags:
- osds
- sanity
- containerized
- ceph-4
- name: check osds status
include: tasks/check_osds_status.yml
with_items: '{{ (osds_list.stdout|from_json).nodes }}'
run_once: yes
tags:
- osds
- sanity