Bug #12700
closedBug #12618: incomplete rbd delete(command:rbd rm) damaged the rbd block
incomplete rbd delete(command:rbd rm) damaged the rbd block
0%
Description
#When I try to delete a rbd block(the size is 20G),I use the command
rbd -p rbd rm myblock
#When this command is executed, I used CTRL + c to cancel the order
#When I try again to remove the blocks, the following error happened
2015-08-05 20:07:27.473964 7f93db26d840 -1 librbd: image has watchers - not removing
Removing image: 0% complete...failed.
rbd: error: image still has watchers
This means the image is still open or the client using it crashed. Try again after closing/unmapping it or waiting 30s for the crashed client to timeout.
#Here is my interface screenshots
root@vm13:~# rbd -p rbd create myblock --size 20480
root@vm13:~# rbd -p rbd rm myblock
Removing image: 63% complete...^C
root@vm13:~# rbd -p rbd rm myblock
2015-08-05 20:07:27.473964 7f93db26d840 -1 librbd: image has watchers - not removing
Removing image: 0% complete...failed.
rbd: error: image still has watchers
This means the image is still open or the client using it crashed. Try again after closing/unmapping it or waiting 30s for the crashed client to timeout.
root@vm13:~#
Files
Updated by bo cai over 8 years ago
This is a bug or was it so ?
And if this is a bug,i want to fix it myself
because there is many way to prevent this happened,can you give some idea about fix this?
Updated by Jason Dillaman over 8 years ago
- Status changed from New to Duplicate
- Parent task set to #12618