Project

General

Profile

Bug #12618

incomplete rbd delete(command:rbd rm) damaged the rbd block

Added by bo cai about 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
08/05/2015
Due date:
% Done:

100%

Source:
other
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature:

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:~#

screenshots.PNG View (17.5 KB) bo cai, 08/05/2015 12:16 PM


Subtasks

Bug #12700: incomplete rbd delete(command:rbd rm) damaged the rbd blockDuplicateSage Weil

Bug #12743: incomplete rbd delete(command:rbd rm) damaged the rbd blockDuplicateKefu Chai

History

#1 Updated by bo cai about 4 years ago

Also, I found the RBD resize command can repair it

#2 Updated by Jason Dillaman about 4 years ago

  • Project changed from Ceph to rbd
  • Category deleted (librbd)
  • Status changed from New to Need More Info

What's the issue here that you are trying to address? The error message indicates what you need to do -- what for the watcher to expire before you can delete the image again.

#3 Updated by bo cai about 4 years ago

em... I found that was my mistake,there is no any bugs, sorry about that.

#4 Updated by Jason Dillaman about 4 years ago

  • Status changed from Need More Info to Closed

Also available in: Atom PDF