... that have one snapshot request pending when the
mirror_snapshot_schedule handler is shutting down.
Signed-off-by: Ramana Raja <rraja@redhat.com>
(cherry picked from commit
edc3b0e80653c30d0fc318a24673e8a0568912ad)
Conflicts:
src/pybind/mgr/rbd_support/mirror_snapshot_schedule.py
- Above conflict was due to commit
e4a16e2
("mgr/rbd_support: add type annotation") not in pacific
self.wait_for_pending()
def wait_for_pending(self):
- 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, namespace, image_id):
image_spec = (pool_id, namespace, image_id)