Project

General

Profile

Actions

Bug #42330

closed

nautilus: mgr/dashboard: Error getting image configuration during deletion

Added by Ricardo Marques over 4 years ago. Updated about 3 years ago.

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

0%

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

Description

Sometimes, when deleting or moving an image to trash:

I get the following error:

This happens because "Ceph Dashboard" is trying to get the image configuration, but the image was already moved to trash.

"Ceph Dashboard" should gracefully handle the case where the image was already deleted or moved to trash.

Full traceback:

Traceback (most recent call last):
  File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 88, in dashboard_exception_handler
    return handler(*args, **kwargs)
  File "/usr/lib/python3.7/site-packages/cherrypy/_cpdispatch.py", line 54, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 657, in inner
    ret = func(*args, **kwargs)
  File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 850, in wrapper
    return func(*vpath, **params)
  File "/usr/lib64/python3.7/contextlib.py", line 74, in inner
    return func(*args, **kwds)
  File "/usr/lib64/python3.7/contextlib.py", line 130, 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')
dashboard.exceptions.DashboardException: [errno 2] RBD image not found (error opening image b'img3' at snapshot None)

Files

config-error-1.png (59.1 KB) config-error-1.png Ricardo Marques, 10/15/2019 03:10 PM
config-error-2.png (80.3 KB) config-error-2.png Ricardo Marques, 10/15/2019 03:10 PM

Related issues 2 (0 open2 closed)

Related to Dashboard - Bug #36404: mgr/dashboard: Can not delete RBD with snapshotsResolvedTiago Melo

Actions
Has duplicate Dashboard - Bug #42944: mgr/dashboard: sometimes an error occurs when performing actions on RBD imagesDuplicate

Actions
Actions #1

Updated by Ricardo Marques over 4 years ago

  • Target version set to v15.0.0
Actions #2

Updated by Patrick Seidensal over 4 years ago

  • Assignee set to Patrick Seidensal
Actions #3

Updated by Patrick Seidensal over 4 years ago

  • Backport set to nautilus
Actions #4

Updated by Ricardo Marques over 4 years ago

I add a similar issue on iSCSI, here is the fix for reference:
https://github.com/ceph/ceph/pull/30349

Actions #5

Updated by Ricardo Marques over 4 years ago

  • Has duplicate Bug #42944: mgr/dashboard: sometimes an error occurs when performing actions on RBD images added
Actions #6

Updated by Patrick Seidensal over 4 years ago

  • Assignee deleted (Patrick Seidensal)
Actions #7

Updated by Lenz Grimmer about 4 years ago

  • Priority changed from Normal to High
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

  • Subject changed from mgr/dashboard: Error getting image configuration during deletion to nautilus: mgr/dashboard: Error getting image configuration during deletion
  • Status changed from New to Fix Under Review
  • Target version changed from v15.0.0 to v14.2.9
  • Backport deleted (nautilus)

This error no longer occurs in master and octopus.
https://github.com/ceph/ceph/pull/33067 fixed it.

I will create a PR directly to nautilus to fix it there.

Actions #10

Updated by Tiago Melo about 4 years ago

  • Pull request ID set to 34120
Actions #11

Updated by Nathan Cutler about 4 years ago

  • Related to Bug #36404: mgr/dashboard: Can not delete RBD with snapshots added
Actions #13

Updated by Lenz Grimmer about 4 years ago

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

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