Project

General

Profile

Actions

Bug #36404

closed

mgr/dashboard: Can not delete RBD with snapshots

Added by Volker Theile over 5 years ago. Updated about 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Component - RBD
Target version:
% Done:

0%

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

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.


Files

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

Related issues 2 (0 open2 closed)

Related to Dashboard - Bug #42330: nautilus: mgr/dashboard: Error getting image configuration during deletionResolvedTiago Melo

Actions
Blocked by rbd - Feature #43958: librbd: Add support for RBD Snapshot purge in python bindingsRejected

Actions
Actions #1

Updated by Patrick Seidensal over 5 years 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.

Actions #2

Updated by Ricardo Marques over 5 years ago

  • Priority changed from Normal to High
Actions #3

Updated by Ricardo Marques over 5 years ago

  • Tags set to low-hanging-fruit
Actions #4

Updated by Ricardo Marques over 5 years ago

  • Priority changed from High to Normal
Actions #5

Updated by Ricardo Marques over 5 years ago

  • Assignee deleted (Ricardo Marques)
Actions #6

Updated by Laura Paduano over 5 years 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

Actions #7

Updated by Lenz Grimmer over 4 years ago

  • Translation missing: en.field_tag_list set to low-hanging-fruit, usability, management
  • Target version changed from v14.0.0 to v15.0.0
  • Tags deleted (low-hanging-fruit)
Actions #8

Updated by Lenz Grimmer about 4 years ago

  • Assignee set to Tiago Melo
Actions #9

Updated by Tiago Melo about 4 years ago

  • Blocked by Feature #43958: librbd: Add support for RBD Snapshot purge in python bindings added
Actions #10

Updated by Tiago Melo about 4 years ago

  • Status changed from New to In Progress
Actions #11

Updated by Tiago Melo about 4 years ago

  • Pull request ID set to 33067
Few questions regarding this:
  1. If there are protected snapshots, should we disable the deletion or unprotect it automatically and delete everything?
  2. If there are protected snapshots and the RBD is in the Trash how should we proceed?
    Unprotect automatically and then delete?
    The user no longer has access to the snapshot list and can't unprotect them.
  3. Should it be allowed to move an RBD to trash if it has protected snapshots?
Actions #12

Updated by Tiago Melo about 4 years ago

After discussing this at this mornings standup, we decided to display a warning regarding the unprotected snapshots and if the user confirms he wants to delete, we unprotect the snapshots automatically and delete the rbd and all snapshots.

Actions #13

Updated by Tiago Melo about 4 years ago

  • Status changed from In Progress to Fix Under Review
Actions #14

Updated by Lenz Grimmer about 4 years ago

  • Status changed from Fix Under Review to Resolved
Actions #15

Updated by Nathan Cutler about 4 years ago

  • Related to Bug #42330: nautilus: mgr/dashboard: Error getting image configuration during deletion added
Actions #16

Updated by Nathan Cutler about 4 years ago

Backporting note: a manual (non-cherry-pick) backport to nautilus has been undertaken via #42330

Actions #17

Updated by Ernesto Puerta about 3 years ago

  • Project changed from mgr to Dashboard
  • Category changed from 139 to Component - RBD
Actions

Also available in: Atom PDF