[ceph-client] Fix Helm test check_pgs() check for inactive PGs

The 'ceph pg dump_stuck' command that looks for PGs that are stuck
inactive doesn't include the 'inactive' keyword, so it also finds
PGs that are active that it believes are stuck. This change adds
the 'inactive' keyword to the command so only inactive PGs are
considered.

Change-Id: Id276deb3e5cb8c7e30f5a55140b8dbba52a33900
This commit is contained in:
Stephen Taylor 2021-01-25 10:43:20 -07:00 committed by Stephen Taylor
parent b21126fed1
commit 6cf614d7a8
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 Client
name: ceph-client
version: 0.1.4
version: 0.1.5
home: https://github.com/ceph/ceph-client
...

View File

@ -249,7 +249,7 @@ function pool_failuredomain_validation() {
function check_pgs() {
pgs_transitioning=false
ceph --cluster ${CLUSTER} pg dump_stuck -f json-pretty > ${stuck_pgs_file}
ceph --cluster ${CLUSTER} pg dump_stuck inactive -f json-pretty > ${stuck_pgs_file}
# Check if there are any stuck PGs, which could indicate a serious problem
# if it does not resolve itself soon.