Project

General

Profile

Bug #7076

rbd: check for watchers before removing an image

Added by Ilya Dryomov about 10 years ago. Updated about 10 years ago.

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

0%

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

Description

~/ceph/src$ ./rbd showmapped
id pool image snap device
0 rbd img2 - /dev/rbd0

~/ceph/src$ ./rbd rm img2
Removing image: 99% 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.
2013-12-31 21:04:25.014595 7f4a3d9c8760 -1 librbd: error removing header: (16) Device or resource busy

We should check for watchers before removing an image.

History

#1 Updated by Ilya Dryomov about 10 years ago

  • Tracker changed from Cleanup to Bug
  • Status changed from New to Fix Under Review
  • Assignee set to Ilya Dryomov

#2 Updated by Ilya Dryomov about 10 years ago

  • Status changed from Fix Under Review to Resolved

Also available in: Atom PDF