]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
qa/standalone/ceph-helpers.sh: Defining custom timeout for wait_for_clean()
authorErwan Velu <erwan@redhat.com>
Wed, 13 Jun 2018 12:25:04 +0000 (14:25 +0200)
committerErwan Velu <erwan@redhat.com>
Thu, 14 Jun 2018 09:06:52 +0000 (11:06 +0200)
commit62d2646c30d95e3fad3eb01ec1959a8fd11f63ce
tree6d562503f9a036aeb3b4b31e0889a97a8daafbab
parentbe406bf51502a87bb8441f99c7be323577c29397
qa/standalone/ceph-helpers.sh: Defining custom timeout for wait_for_clean()

The wait_for_clean() is using the default timeout aka 300sec = 5mn.

wait_for_clean() is trying to find a clean status within that timeout
_or_ reset its counter if any progress got made in between loops.

In a case where the cluster is sane, the recovery should be made in
shorter than 5mn but it the cluster died, waiting for 5mn for nothing is
unefficient.

This patch is about defining a custom timeout for a wait_for_clean() not
to wait much more that 1m30 (90sec). If no progress is made in that
period, there is very few chance this will read the a valid state
anyhow.

Signed-off-by: Erwan Velu <erwan@redhat.com>
qa/standalone/ceph-helpers.sh