Project

General

Profile

Bug #12743

Bug #12618: incomplete rbd delete(command:rbd rm) damaged the rbd block

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

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

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

0%

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

History

#1 Updated by Jason Dillaman about 4 years ago

  • Status changed from New to Duplicate
  • Parent task set to #12618

Also available in: Atom PDF