Project

General

Profile

Bug #61506

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

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 

 !cff8c7310aad991c7bb33b36044ed008.png!

Back