Project

General

Profile

Bug #36404

mgr/dashboard: Can not delete RBD with snapshots

Added by Volker Theile 2 months ago. Updated 16 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
dashboard/rbd
Target version:
Start date:
10/11/2018
Due date:
% Done:

0%

Source:
Development
Tags:
low-hanging-fruit
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:

Description

If there are snapshot sassigned to a RBD, then it is not possible to delete them. In my opinion the deletion should be forced automatically if it is moved to trash and the trash is purged then.
Otherwise it is necessary to explicitely delete every snapshot manually before i can delete a RBD.

screenshot.gif View (990 KB) Volker Theile, 10/11/2018 11:50 AM

History

#1 Updated by Patrick Nawracay 2 months ago

It might be a good idea to tell the user that the RBD, which is about to be deleted still has some associated snapshots which will also be deleted if the user proceeds.

edit

Or maybe even show the snapshots in the deletion dialog, so that the user knows which and how many snapshots will be removed.

#2 Updated by Ricardo Marques about 2 months ago

  • Priority changed from Normal to High

#3 Updated by Ricardo Marques about 2 months ago

  • Tags set to low-hanging-fruit

#4 Updated by Ricardo Marques about 2 months ago

  • Priority changed from High to Normal

#5 Updated by Ricardo Marques about 2 months ago

  • Assignee deleted (Ricardo Marques)

#6 Updated by Laura Paduano 16 days ago

Traceback from the mgr.log:

2018-11-28 11:44:01.824 7f126de33700 -1 librbd::image::RemoveRequest: 0x55fc7e529340 check_image_snaps: image has snapshots - not removing
2018-11-28 11:44:01.848 7f126b62e700 -1 librbd::api::Trash: remove: error removing image 10cb672ee0af, which is pending deletion
2018-11-28 11:44:01.856 7f126b62e700  0 mgr[dashboard] Error while calling Task(ns=rbd/trash/purge, md={'pool_name': u'test'})
Traceback (most recent call last):
  File "/ceph/src/pybind/mgr/dashboard/tools.py", line 530, in _run
    val = self.task.fn(*self.task.fn_args, **self.task.fn_kwargs)
  File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 44, in wrapper
    return f(*args, **kwargs)
  File "/usr/lib64/python2.7/contextlib.py", line 35, in __exit__
    self.gen.throw(type, value, traceback)
  File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 102, in handle_rbd_error
    raise DashboardException(e, component='rbd')
DashboardException: [errno 39] error deleting image from trash

Also available in: Atom PDF