Project

General

Profile

Actions

Bug #12743

closed

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 over 8 years ago. Updated over 8 years ago.

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

0%

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
Actions #1

Updated by Jason Dillaman over 8 years ago

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

Also available in: Atom PDF