Actions
Bug #58060
closedavoid EUCLEAN error after "rbd rm" is interrupted
% Done:
90%
Source:
Community (dev)
Tags:
backport_processed
Backport:
pacific,quincy
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
rbd
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
If rbd rm process is interrupted (for example, rbd client killed, or ceph_assert fault injection in rbd code), rbd state in trash stays in cls::rbd::TRASH_IMAGE_STATE_MOVING.
Then continue to rbd rm, throw error -EUCLEAN.
[root@node build]# ./bin/rbd rm test_pool/test_rbd
Removing image: 0% complete...failed.
rbd: delete error: 2022-11-22T11:30:41.361+0800 7f9bf12a74c0 -1 librbd::api::Trash: remove: error: image is pending moving to the trash.
(117) Structure needs cleaning
<pre><code class="go">
</code></pre>
Actions