]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rbd-mirror: remove callout when destroying pool replayer
authorIlya Dryomov <idryomov@gmail.com>
Wed, 24 Apr 2024 10:45:27 +0000 (12:45 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 7 May 2024 08:02:34 +0000 (10:02 +0200)
commita052fc1f9ae48efde34040d400eb414e9bfa244d
tree20f4c10d37920128e9c471cc1d6ed0ac25684c71
parent90f44d53f39d0acb127e2c1c3533d362cba2d490
rbd-mirror: remove callout when destroying pool replayer

If a pool replayer is removed in an error state (e.g. after failing to
connect to the remote cluster), its callout should be removed as well.
Otherwise, the error would persist causing "daemon health: ERROR"
status to be reported even after a new pool replayer is created and
started successfully.

Fixes: https://tracker.ceph.com/issues/65487
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit b7e79642d53c1802ae1202c3f013677fcfd26b1b)
qa/workunits/rbd/rbd_mirror_bootstrap.sh
qa/workunits/rbd/rbd_mirror_helpers.sh
src/test/rbd_mirror/test_mock_PoolReplayer.cc
src/tools/rbd_mirror/PoolReplayer.cc