]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/vol: handle exception when path for lstat() goes missing 61212/head
authorRishabh Dave <ridave@redhat.com>
Wed, 16 Apr 2025 06:30:50 +0000 (12:00 +0530)
committerRishabh Dave <ridave@redhat.com>
Wed, 16 Apr 2025 13:53:03 +0000 (19:23 +0530)
commite14b8bb7a93faafd795c4c15ade429a0782571c9
treed0fe33a98b3dbf27d9090a34dcb1a28b25ed34a3
parent9f74f8592ba87419f742a5493d8e649700b51432
mgr/vol: handle exception when path for lstat() goes missing

It might happen that clone index entry goes missing because a clone job
was completed or cancelled. In such a case, lstat() to clone entry's
path would fail. Catch the exception in such a case and handle it so
that clone progress reporter thread doesn't crash.

Crashing of clone progress reporter thread causes clone progress bars to
not be removed from "ceph status" output when they should, resulting in
these bars to being in stuck in the output forever.

Fixes: https://tracker.ceph.com/issues/70941
Signed-off-by: Rishabh Dave <ridave@redhat.com>
src/pybind/mgr/volumes/fs/operations/clone_index.py