Project

General

Profile

Actions

Feature #39451

closed

mgr/dashboard: Interlock `fast-diff` and `object-map`

Added by Patrick Seidensal about 5 years ago. Updated about 3 years ago.

Status:
Resolved
Priority:
Normal
Category:
Component - RBD
Target version:
% Done:

90%

Source:
Tags:
Backport:
nautilus
Reviewed:
Affected Versions:
Pull request ID:

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.


Related issues 4 (0 open4 closed)

Related to rbd - Feature #24065: [fast-diff] interlock object-map/fast-diff features togetherResolved05/09/2018

Actions
Related to rbd - Bug #39521: Fast-diff can be disabled w/o disabling object-mapResolvedJason Dillaman04/29/2019

Actions
Related to Dashboard - Bug #39933: mgr/dashboard: inconsistent result when editing a RBD image's featuresResolvedKiefer Chang

Actions
Copied to Dashboard - Backport #40659: nautilus: mgr/dashboard: Interlock `fast-diff` and `object-map`ResolvedPrashant DActions
Actions #1

Updated by Patrick Seidensal about 5 years ago

  • Category set to 139
Actions #2

Updated by Patrick Seidensal almost 5 years ago

  • Status changed from New to In Progress
Actions #3

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*) $
Actions #4

Updated by Patrick Seidensal almost 5 years ago

  • Related to Feature #24065: [fast-diff] interlock object-map/fast-diff features together added
Actions #5

Updated by Lenz Grimmer almost 5 years ago

  • Related to Bug #39521: Fast-diff can be disabled w/o disabling object-map added
Actions #6

Updated by Patrick Seidensal almost 5 years ago

  • Status changed from 4 to In Progress
  • Assignee set to Patrick Seidensal
Actions #7

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`
Actions #8

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
Actions #9

Updated by Patrick Seidensal almost 5 years ago

  • Description updated (diff)
Actions #10

Updated by Patrick Seidensal almost 5 years ago

  • Related to Bug #39933: mgr/dashboard: inconsistent result when editing a RBD image's features added
Actions #11

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
Actions #12

Updated by Nathan Cutler almost 5 years ago

  • Copied to Backport #40659: nautilus: mgr/dashboard: Interlock `fast-diff` and `object-map` added
Actions #13

Updated by Ricardo Marques over 4 years ago

  • Status changed from Pending Backport to Resolved
Actions #14

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