Project

General

Profile

Actions

Bug #42944

closed

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

Added by Kiefer Chang over 4 years ago. Updated about 3 years ago.

Status:
Duplicate
Priority:
Normal
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

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


Files

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

Related issues 1 (0 open1 closed)

Is duplicate of Dashboard - Bug #42330: nautilus: mgr/dashboard: Error getting image configuration during deletionResolvedTiago Melo

Actions
Actions #1

Updated by Ricardo Marques over 4 years ago

  • Is duplicate of Bug #42330: nautilus: mgr/dashboard: Error getting image configuration during deletion added
Actions #2

Updated by Ricardo Marques over 4 years ago

  • Status changed from New to Duplicate
Actions #3

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