]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/rbd_support: log number of images 52064/head
authorRamana Raja <rraja@redhat.com>
Wed, 14 Jun 2023 21:41:48 +0000 (17:41 -0400)
committerRamana Raja <rraja@redhat.com>
Thu, 15 Jun 2023 13:52:05 +0000 (09:52 -0400)
... that have one snapshot request pending when the
mirror_snapshot_schedule handler is shutting down.

Signed-off-by: Ramana Raja <rraja@redhat.com>
src/pybind/mgr/rbd_support/mirror_snapshot_schedule.py

index 0bae891c67aee6db6cb689475540e7fda53b043e..122a3cd3997b9e60a277ef689d4759f75b68b260 100644 (file)
@@ -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)