]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
librbd: avoid EUCLEAN error after "rbd rm" is interrupted
authorweixinwei <weixw3@lenovo.com>
Tue, 15 Nov 2022 07:31:06 +0000 (15:31 +0800)
committerweixinwei <weixw3@lenovo.com>
Sat, 10 Dec 2022 14:16:04 +0000 (22:16 +0800)
commit145ecb15c2b6b240a4abb5a0d81d081efeb98614
tree184a1bba857e2028816dd03314839cf7d3897eb0
parent04ad5f4ca503c822681e3c0d1d6027f9e249edd9
librbd: avoid EUCLEAN error after "rbd rm" is interrupted

If "rbd rm" command is interrupted (e.g. killed), the image in the
trash stays in cls::rbd::TRASH_IMAGE_STATE_MOVING state. Later, when
"rbd rm" command is rerun, EUCLEAN error is returned.

Fixes: https://tracker.ceph.com/issues/58060
Signed-off-by: weixinwei <weixw3@lenovo.com>
src/librbd/api/Image.cc