]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
qa/tasks/ceph: do not print out empty list of pg
authorKefu Chai <kchai@redhat.com>
Wed, 29 Jul 2020 01:27:28 +0000 (09:27 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 29 Jul 2020 07:07:26 +0000 (15:07 +0800)
commit735aa0410578a48da88bae46d7a98ba1db395250
tree832fa792bcd90d5ba9270055450d909f7c9a3f5c
parent6ad3d0d63e728487bc6f1f7bc041ec5f5aebec1f
qa/tasks/ceph: do not print out empty list of pg

we could have following logging messages:

tasks.ceph:Waiting for all PGs to be active+clean and split+merged, waiting on ['2.6', '2.5', '1.0', '2.4'] to go clean and/or [] to split/merge

if the cluster has non-active+clean pgs when the "ceph" is about to
end. but this message is a little bit confusing in the sense it
lists "[]" in it.

in this change, only PGs being waited are listed. also, added some
cleanups:

* use "else" to check if the loop is terminated by a break
* remove "0" from the range() call

Signed-off-by: Kefu Chai <kchai@redhat.com>
qa/tasks/ceph.py