Actions
Feature #39451
closedmgr/dashboard: Interlock `fast-diff` and `object-map`
Status:
Resolved
Priority:
Normal
Assignee:
Category:
Component - RBD
Target version:
% Done:
90%
Source:
Tags:
Backport:
nautilus
Description
Original title: Can't create RBD image without fast-diff feature
Steps to reproduce:
1. When creating an image, unselect the `fast-diff` flag
2. Create the image
3. Click on the newly created image to check the flags enabled on that image
Additional information:
The POST request of the frontend to the backend did not contain the fast-diff flag, it could be a backend issue.
Updated by Patrick Seidensal almost 5 years ago
- Status changed from New to In Progress
Updated by Patrick Seidensal almost 5 years ago
- Status changed from In Progress to 4
- Assignee deleted (
Patrick Seidensal)
It seems that both, backend and frontend work correctly. The backend does not receive the fast-diff feature flag if it wasn't set on the frontend. Nevertheless, the image is create with the fast-diff feature enabled.
user@ceph-1 /ceph (wip-pna-fix-rbd-image-fast-diff*) $ nc localhost 55555 > /ceph/src/pybind/mgr/dashboard/controllers/rbd.py(246)_create() -> feature_bitmask = format_features(features) (Pdb) ll > /ceph/src/pybind/mgr/dashboard/controllers/rbd.py(37)_rbd_call() -> func(ioctx, *args, **kwargs) > /ceph/src/pybind/mgr/dashboard/controllers/rbd.py(246)_create() -> feature_bitmask = format_features(features) 241 if obj_size and obj_size > 0: 242 l_order = int(round(math.log(float(obj_size), 2))) 243 244 import rpdb; debugger = rpdb.Rpdb(port=55555); debugger.set_trace() 245 # Set features 246 -> feature_bitmask = format_features(features) 247 248 rbd_inst.create(ioctx, name, size, order=l_order, old_format=False, 249 features=feature_bitmask, stripe_unit=stripe_unit, 250 stripe_count=stripe_count, data_pool=data_pool) 251 RbdConfiguration(pool_ioctx=ioctx, image_name=name).set_configuration(configuration) (Pdb) rbd <module 'rbd' from '/ceph/build/lib/cython_modules/lib.3/rbd.cpython-37m-x86_64-linux-gnu.so'> (Pdb) features ['deep-flatten', 'layering', 'exclusive-lock', 'object-map'] (Pdb) n > /ceph/src/pybind/mgr/dashboard/controllers/rbd.py(248)_create() -> rbd_inst.create(ioctx, name, size, order=l_order, old_format=False, (Pdb) feature_bitmask 45 (Pdb) c user@ceph-1 /ceph (wip-pna-fix-rbd-image-fast-diff*) $
Updated by Patrick Seidensal almost 5 years ago
- Related to Feature #24065: [fast-diff] interlock object-map/fast-diff features together added
Updated by Lenz Grimmer almost 5 years ago
- Related to Bug #39521: Fast-diff can be disabled w/o disabling object-map added
Updated by Patrick Seidensal almost 5 years ago
- Status changed from 4 to In Progress
- Assignee set to Patrick Seidensal
Updated by Patrick Seidensal almost 5 years ago
- Tracker changed from Bug to Feature
- Subject changed from mgr/dashboard: Can't create RBD image without fast-diff flag to mgr/dashboard: Interlock `fast-diff` and `object-map`
Updated by Patrick Seidensal almost 5 years ago
- Status changed from In Progress to Fix Under Review
- % Done changed from 0 to 90
- Pull request ID set to 28076
Updated by Patrick Seidensal almost 5 years ago
- Related to Bug #39933: mgr/dashboard: inconsistent result when editing a RBD image's features added
Updated by Lenz Grimmer almost 5 years ago
- Status changed from Fix Under Review to Pending Backport
- Target version set to v15.0.0
- Backport set to nautilus
Updated by Nathan Cutler almost 5 years ago
- Copied to Backport #40659: nautilus: mgr/dashboard: Interlock `fast-diff` and `object-map` added
Updated by Ricardo Marques over 4 years ago
- Status changed from Pending Backport to Resolved
Updated by Ernesto Puerta about 3 years ago
- Project changed from mgr to Dashboard
- Category changed from 139 to Component - RBD
Actions