From ca372bfea6affbe1b79dd79311cf19ce88c7244a Mon Sep 17 00:00:00 2001 From: Andrii Ostapenko Date: Mon, 9 Nov 2020 09:31:38 -0600 Subject: [PATCH] Fix typo in check inactive PGs logic Issue introduces in https://review.opendev.org/761031 Change-Id: I154f91e17b5d9a84282197ae843c5aab2ce1d0be Signed-off-by: Andrii Ostapenko --- ceph-osd/Chart.yaml | 2 +- ceph-osd/templates/bin/_post-apply.sh.tpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ceph-osd/Chart.yaml b/ceph-osd/Chart.yaml index adf2b2ac5..d70f71015 100644 --- a/ceph-osd/Chart.yaml +++ b/ceph-osd/Chart.yaml @@ -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 ... diff --git a/ceph-osd/templates/bin/_post-apply.sh.tpl b/ceph-osd/templates/bin/_post-apply.sh.tpl index b832f8b51..4d2b19054 100644 --- a/ceph-osd/templates/bin/_post-apply.sh.tpl +++ b/ceph-osd/templates/bin/_post-apply.sh.tpl @@ -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