Ceph - rbd image cannot be deleted with "rbd: error: image still has watchers"

Solution Verified - Updated -

Issue

Deleting and rbd image fails with the following error:

# rbd rm rbdtest/testimage1
2021-02-25 03:30:32.543 7f9be77fe700 -1 librbd::image::PreRemoveRequest: 0x56251d7efa10 check_image_watchers: 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.

Environment

  • Red Hat Ceph Storage (RHCS)
    • 4
    • 5

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content