Merge "[ceph-client] Update queries in wait_for_pgs function"

This commit is contained in:
Zuul 2020-09-14 21:24:26 +00:00 committed by Gerrit Code Review
commit e6230f0392

@ -42,7 +42,7 @@ function wait_for_pgs () {
# Loop until all pgs are active
while [[ $pgs_ready -lt 3 ]]; do
pgs_state=$(ceph --cluster ${CLUSTER} pg ls -f json | jq -c "${query}")
if [[ $(jq -c '. | select(.state | contains("peering") | not)' <<< "${pgs_state}") ]]; then
if [[ $(jq -c '. | select(.state | contains("peer") or contains("activating") | not)' <<< "${pgs_state}") ]]; then
# If inactive PGs aren't peering, fail
echo "Failure, found inactive PGs that aren't peering"
exit 1