Merge "Use custom Ceph cluster name in validations"

This commit is contained in:
Zuul 2019-08-09 02:07:28 +00:00 committed by Gerrit Code Review
commit 741b36362d
2 changed files with 14 additions and 2 deletions

View File

@ -29,9 +29,15 @@
- ceph_mon_enabled is succeeded
- ceph_mon_container is succeeded
block:
- name: Set ceph cluster name
become: true
shell: find /etc/ceph -name '*.conf' -prune -print -quit | xargs basename -s '.conf'
register: ceph_cluster_name
changed_when: False
- name: Get ceph health
become: true
shell: "{{ container_cli }} exec {{ ceph_mon_container.stdout }} ceph health | awk '{print $1}'"
shell: "{{ container_cli }} exec {{ ceph_mon_container.stdout }} ceph --cluster {{ ceph_cluster_name.stdout }} health | awk '{print $1}'"
register: ceph_health
- name: Check ceph health
@ -59,7 +65,7 @@
- name: Get OSD stat percentage
become: true
shell: "{{ container_cli }} exec {{ ceph_mon_container.stdout }} ceph osd stat -f json | jq '{{ jq_osd_percentage_filter }}'"
shell: "{{ container_cli }} exec {{ ceph_mon_container.stdout }} ceph --cluster {{ ceph_cluster_name.stdout }} osd stat -f json | jq '{{ jq_osd_percentage_filter }}'"
register: ceph_osd_in_percentage
- name: Fail if there is an unacceptable percentage of in OSDs

View File

@ -9,6 +9,12 @@
check:
jobs:
- openstack-tox-lower-constraints
- tripleo-ci-centos-7-scenario004-standalone:
files:
- ^roles/ceph.*$
gate:
jobs:
- openstack-tox-lower-constraints
- tripleo-ci-centos-7-scenario004-standalone:
files:
- ^roles/ceph.*$