Project

General

Profile

Bug #42944

mgr/dashboard: sometimes an error occurs when performing actions on RBD images

Added by Kiefer Chang 4 months ago. Updated 4 months ago.

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

0%

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

Description

Steps to reproduce:
1. Create some RBD images
2. Move (the last) image to trash, sometimes there is an error.
NOTE: the `Move to Trash` operation for the image succeeds.

Screenshot:

See full GIF here: https://imgur.com/a/DqEjiQa

Traceback in backend:

Traceback (most recent call last):
  File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 100, in handle_rbd_error
    yield
  File "/usr/lib64/python3.7/contextlib.py", line 74, in inner
    return func(*args, **kwds)
  File "/usr/lib64/python3.7/contextlib.py", line 74, in inner
    return func(*args, **kwds)
  File "/ceph/src/pybind/mgr/dashboard/controllers/rbd.py", line 99, in list
    return self._rbd_list(pool_name)
  File "/ceph/src/pybind/mgr/dashboard/controllers/rbd.py", line 92, in _rbd_list
    pool, image['namespace'], image['name']).list()
  File "/ceph/src/pybind/mgr/dashboard/services/rbd.py", line 113, in list
    return _list(ioctx)
  File "/ceph/src/pybind/mgr/dashboard/services/rbd.py", line 101, in _list
    with rbd.Image(ioctx, self._image_name) as image:
  File "rbd.pyx", line 3193, in rbd.Image.__init__
rbd.ImageNotFound: [errno 2] RBD image not found (error opening image b'd' at snapshot None)

A possible cause might be that frontend keeps polling image list and the trashed image is removed during image iteration calls in backend:
https://github.com/ceph/ceph/blob/4c3127d28279510a5117bd5ab11374ad3f5559d4/src/pybind/mgr/dashboard/controllers/rbd.py#L89-L92

Screenshot_20191122_140122.png View (143 KB) Kiefer Chang, 11/22/2019 06:02 AM


Related issues

Duplicates mgr - Bug #42330: nautilus: mgr/dashboard: Error getting image configuration during deletion Fix Under Review

History

#1 Updated by Ricardo Marques 4 months ago

  • Duplicates Bug #42330: nautilus: mgr/dashboard: Error getting image configuration during deletion added

#2 Updated by Ricardo Marques 4 months ago

  • Status changed from New to Duplicate

Also available in: Atom PDF