Project

General

Profile

Actions

Bug #12618

closed

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

Added by bo cai over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
% Done:

100%

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

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

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

Subtasks 2 (0 open2 closed)

Bug #12700: incomplete rbd delete(command:rbd rm) damaged the rbd blockDuplicateSage Weil08/05/2015

Actions
Bug #12743: incomplete rbd delete(command:rbd rm) damaged the rbd blockDuplicateKefu Chai08/05/2015

Actions
Actions #1

Updated by bo cai over 8 years ago

Also, I found the RBD resize command can repair it

Actions #2

Updated by Jason Dillaman over 8 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.

Actions #3

Updated by bo cai over 8 years ago

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

Actions #4

Updated by Jason Dillaman over 8 years ago

  • Status changed from Need More Info to Closed
Actions

Also available in: Atom PDF