Merge pull request #1382 from anthonyeleven/master

Enhance clean PG check to catch active+clean+scrubbing and active+cle…
pull/1391/head
Sébastien Han 2017-03-21 10:12:42 +01:00 committed by GitHub
commit 0538ce2e08
1 changed files with 1 additions and 1 deletions

View File

@ -266,7 +266,7 @@
- name: waiting for clean pgs... - name: waiting for clean pgs...
shell: | shell: |
test "$(ceph pg stat --cluster {{ cluster }} | sed 's/^.*pgs://;s/active+clean.*//;s/ //')" -eq "$(ceph pg stat --cluster {{ cluster }} | sed 's/pgs.*//;s/^.*://;s/ //')" && ceph health --cluster {{ cluster }} | egrep -sq "HEALTH_OK|HEALTH_WARN" test "$(ceph pg stat --cluster {{ cluster }} | tr , '\n' | sed 's/^.*pgs: //' | awk '/active.clean/ { SUM += $1 } END {print SUM}')" -eq "$(ceph pg stat --cluster {{ cluster }} | sed 's/pgs.*//;s/^.*://;s/ //')" && ceph health --cluster {{ cluster }} | egrep -sq "HEALTH_OK|HEALTH_WARN"
register: result register: result
until: result.rc == 0 until: result.rc == 0
retries: "{{ health_osd_check_retries }}" retries: "{{ health_osd_check_retries }}"