32fce0a8d7
Change-Id: Ib06c6118b1b07b30e56e8a39c1532b1c99296d67
26 lines
895 B
YAML
26 lines
895 B
YAML
---
|
|
#
|
|
# Checks specific to ceph nodes
|
|
#
|
|
|
|
- name: Check Ceph cluster health status
|
|
shell: ceph status
|
|
register: ceph_status
|
|
failed_when: "'HEALTH_OK' not in '{{ ceph_status.stdout }}'"
|
|
changed_when: false
|
|
ignore_errors: True
|
|
|
|
- name: Verify RBD caching
|
|
shell: ceph --admin-daemon `ls /var/run/ceph/ceph-osd.*.asok|tail -1` config show|grep '"rbd_cache":'|grep -i true|awk '{print tolower($0)}'
|
|
register: ceph_rbd_caching
|
|
failed_when : "'true' not in '{{ ceph_rbd_caching.stdout }}'"
|
|
changed_when: false
|
|
ignore_errors: True
|
|
|
|
- name: Verify RBD cache writethrough
|
|
shell: ceph --admin-daemon `ls /var/run/ceph/ceph-osd.*.asok|tail -1` config show|grep "rbd_cache_writethrough"|grep -i true|awk '{print tolower($0)}'
|
|
register: ceph_rbd_cache_writethrough
|
|
failed_when: "'false' not in '{{ ceph_rbd_cache_writethrough.stdout }}'"
|
|
changed_when: false
|
|
ignore_errors: True
|