Project

General

Profile

Bug #42330

mgr/dashboard: Error getting image configuration during deletion

Added by Ricardo Marques 4 months ago. Updated about 2 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
dashboard/rbd
Target version:
% Done:

0%

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

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)

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

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


Related issues

Duplicated by mgr - Bug #42944: mgr/dashboard: sometimes an error occurs when performing actions on RBD images Duplicate 11/22/2019

History

#1 Updated by Ricardo Marques 4 months ago

  • Target version set to v15.0.0

#2 Updated by Patrick Seidensal 4 months ago

  • Assignee set to Patrick Seidensal

#3 Updated by Patrick Seidensal 4 months ago

  • Backport set to nautilus

#4 Updated by Ricardo Marques 4 months ago

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

#5 Updated by Ricardo Marques 3 months ago

  • Duplicated by Bug #42944: mgr/dashboard: sometimes an error occurs when performing actions on RBD images added

#6 Updated by Patrick Seidensal about 2 months ago

  • Assignee deleted (Patrick Seidensal)

Also available in: Atom PDF