]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
qa/workunits/rbd: short-circuit status() if "ceph -s" fails
authorIlya Dryomov <idryomov@gmail.com>
Sun, 1 Mar 2026 21:55:52 +0000 (22:55 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Sat, 14 Mar 2026 20:06:35 +0000 (21:06 +0100)
commit74e5d045add94f0a0eb8f21ee171e041b757b1f5
tree54fe85db4ae9693cf72576dba1a6338ced95ced8
parentd21a4d79c465472c3d641b1f0c8a30252e381180
qa/workunits/rbd: short-circuit status() if "ceph -s" fails

In mirror-thrash tests, status() can be invoked after one of the
clusters is effectively stopped due to a watchdog bark:

2026-03-01T22:27:38.633 INFO:tasks.daemonwatchdog.daemon_watchdog:thrasher.rbd_mirror.[cluster2] failed
2026-03-01T22:27:38.633 INFO:tasks.daemonwatchdog.daemon_watchdog:BARK! unmounting mounts and killing all daemons
...
2026-03-01T22:32:46.964 INFO:tasks.workunit.cluster1.client.mirror.trial199.stderr:+ status
2026-03-01T22:32:46.964 INFO:tasks.workunit.cluster1.client.mirror.trial199.stderr:+ local cluster daemon image_pool image_ns image
2026-03-01T22:32:46.964 INFO:tasks.workunit.cluster1.client.mirror.trial199.stderr:+ for cluster in ${CLUSTER1} ${CLUSTER2}

In this scenario all commands that are invoked from the loop body
are going to time out anyway.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit 82717e43a08a1262987f5e271fd72d4433c4fb3b)
qa/workunits/rbd/rbd_mirror_helpers.sh