Fix typo in check inactive PGs logic

Issue introduces in https://review.opendev.org/761031

Change-Id: I154f91e17b5d9a84282197ae843c5aab2ce1d0be
Signed-off-by: Andrii Ostapenko <andrii.ostapenko@att.com>
This commit is contained in:
Andrii Ostapenko 2020-11-09 09:31:38 -06:00 committed by Andrii Ostapenko
parent 577a7fdb6f
commit ca372bfea6
2 changed files with 2 additions and 2 deletions

View File

@ -15,6 +15,6 @@ apiVersion: v1
appVersion: v1.0.0
description: OpenStack-Helm Ceph OSD
name: ceph-osd
version: 0.1.9
version: 0.1.10
home: https://github.com/ceph/ceph
...

View File

@ -97,7 +97,7 @@ function wait_for_pgs () {
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 [[ pgs_inactive -gt 10 ]]; then
if [[ $pgs_inactive -gt 10 ]]; then
# If inactive PGs aren't peering, fail
echo "Failure, found inactive PGs that aren't peering"
exit 1