Project

General

Profile

Actions

Bug #61506

closed

mgr/dashboard: rbd mirror failing when creating image before enabling mirroring on pool

Added by Pedro González Gómez 11 months ago. Updated 7 months ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

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

Description

Steps to reproduce:

Create image on pool without mirroring enabled > enable mirroring on pool > edit image and set mirroring

The field `Mirroring` is enabled even before selecting the pool."

Then it fails as seen when updating it to mirror journaling:

2023-05-30T11:22:26.541+0000 7f17cbc4f700 0 [dashboard DEBUG taskexec] executing task Task(ns=rbd/edit, md={'image_spec': 'rbd/image1', 'name': 'image1'})
2023-05-30T11:22:26.554+0000 7f17cbc4f700 0 [dashboard ERROR taskexec] Error while calling Task(ns=rbd/edit, md={'image_spec': 'rbd/image1', 'name': 'image1'})
Traceback (most recent call last):
File "/ceph/src/pybind/mgr/dashboard/tools.py", line 550, in run
val = self.task.fn(*self.task.fn_args, **self.task.fn_kwargs) # type: ignore
File "/usr/lib64/python3.6/contextlib.py", line 52, in inner
return func(*args, **kwds)
File "/usr/lib64/python3.6/contextlib.py", line 52, in inner
return func(*args, **kwds)
File "/ceph/src/pybind/mgr/dashboard/controllers/rbd.py", line 248, in set
return rbd_image_call(pool_name, namespace, image_name, _edit)
File "/ceph/src/pybind/mgr/dashboard/services/rbd.py", line 114, in rbd_image_call
return rbd_call(pool_name, namespace, _ioctx_func, image_name, func, *args, **kwargs)
File "/ceph/src/pybind/mgr/dashboard/services/rbd.py", line 106, in rbd_call
return func(ioctx, *args, **kwargs)
File "/ceph/src/pybind/mgr/dashboard/services/rbd.py", line 112, in _ioctx_func
return func(ioctx, img, *args, **kwargs)
File "/ceph/src/pybind/mgr/dashboard/controllers/rbd.py", line 201, in _edit
MIRROR_IMAGE_MODE[mirror_mode])
File "/usr/lib64/python3.6/enum.py", line 329, in getitem
return cls._member_map
[name]
KeyError: None
2023-05-30T11:22:26.554+0000 7f17cbc4f700 0 [dashboard DEBUG taskexec] task finished with exception: Task(ns=rbd/edit, md={'image_spec': 'rbd/image1', 'name': 'image1'})
2023-05-30T11:22:26.555+0000 7f17cbc4f700 0 [dashboard DEBUG task] execution of Task(ns=rbd/edit, md={'image_spec': 'rbd/image1', 'name': 'image1'}) finished in: 0.013919591903686523 s


Files

cff8c7310aad991c7bb33b36044ed008.png (130 KB) cff8c7310aad991c7bb33b36044ed008.png Pedro González Gómez , 05/30/2023 11:28 AM
Actions #1

Updated by Pedro González Gómez 11 months ago

  • Subject changed from mgr/dashboard: rbd mirror returning 500 error on enabling mirroring to mgr/dashboard: rbd mirror failing when creating image before enabling mirroring on pool
  • Description updated (diff)
Actions #2

Updated by Pedro González Gómez 7 months ago

  • Status changed from New to Closed

Doesn't seem to keep happening, closing it for now.
Reopen it if needed.

Actions

Also available in: Atom PDF