From: Ramana Raja Date: Wed, 14 Jun 2023 21:41:48 +0000 (-0400) Subject: mgr/rbd_support: log number of images X-Git-Tag: v19.0.0~1013^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=edc3b0e80653c30d0fc318a24673e8a0568912ad;p=ceph-ci.git mgr/rbd_support: log number of images ... that have one snapshot request pending when the mirror_snapshot_schedule handler is shutting down. Signed-off-by: Ramana Raja --- diff --git a/src/pybind/mgr/rbd_support/mirror_snapshot_schedule.py b/src/pybind/mgr/rbd_support/mirror_snapshot_schedule.py index 0bae891c67a..122a3cd3997 100644 --- a/src/pybind/mgr/rbd_support/mirror_snapshot_schedule.py +++ b/src/pybind/mgr/rbd_support/mirror_snapshot_schedule.py @@ -48,10 +48,13 @@ class CreateSnapshotRequests: self.wait_for_pending() def wait_for_pending(self) -> None: - self.log.debug("CreateSnapshotRequests.wait_for_pending") with self.lock: while self.pending: + self.log.debug( + "CreateSnapshotRequests.wait_for_pending: " + "{} images".format(len(self.pending))) self.condition.wait() + self.log.debug("CreateSnapshotRequests.wait_for_pending: done") def add(self, pool_id: str, namespace: str, image_id: str) -> None: image_spec = ImageSpec(pool_id, namespace, image_id)