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:
parent
577a7fdb6f
commit
ca372bfea6
@ -15,6 +15,6 @@ apiVersion: v1
|
|||||||
appVersion: v1.0.0
|
appVersion: v1.0.0
|
||||||
description: OpenStack-Helm Ceph OSD
|
description: OpenStack-Helm Ceph OSD
|
||||||
name: ceph-osd
|
name: ceph-osd
|
||||||
version: 0.1.9
|
version: 0.1.10
|
||||||
home: https://github.com/ceph/ceph
|
home: https://github.com/ceph/ceph
|
||||||
...
|
...
|
||||||
|
@ -97,7 +97,7 @@ function wait_for_pgs () {
|
|||||||
while [[ $pgs_ready -lt 3 ]]; do
|
while [[ $pgs_ready -lt 3 ]]; do
|
||||||
pgs_state=$(ceph --cluster ${CLUSTER} pg ls -f json | jq -c "${query}")
|
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("peering") | not)' <<< "${pgs_state}") ]]; then
|
||||||
if [[ pgs_inactive -gt 10 ]]; then
|
if [[ $pgs_inactive -gt 10 ]]; then
|
||||||
# If inactive PGs aren't peering, fail
|
# If inactive PGs aren't peering, fail
|
||||||
echo "Failure, found inactive PGs that aren't peering"
|
echo "Failure, found inactive PGs that aren't peering"
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user