959bed59a5
Use shell only shell functionality is required. The shell functionality should only be used when piping, redirecting or chaining commands. Change-Id: Icb9b1dd5ea22a2af895a87a9fa2cc1b9a488ac0c Signed-off-by: Chuck Short <chucks@redhat.com>
26 lines
897 B
YAML
26 lines
897 B
YAML
---
|
|
#
|
|
# Checks specific to ceph nodes
|
|
#
|
|
|
|
- name: Check Ceph cluster health status
|
|
command: 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
|