Bug 2166708 - [dashboard] block/rbd : images -> edit -> disable checkboxes for layering and deef-flatten on pre-created image
Summary: [dashboard] block/rbd : images -> edit -> disable checkboxes for layering and...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Ceph-Dashboard
Version: 6.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 7.0
Assignee: avan
QA Contact: Sunil Angadi
Rivka Pollack
URL:
Whiteboard:
Depends On:
Blocks: 2237662
TreeView+ depends on / blocked
 
Reported: 2023-02-02 17:21 UTC by Vasishta
Modified: 2023-12-13 15:20 UTC (History)
9 users (show)

Fixed In Version: ceph-18.2.0-19.el9cp
Doc Type: Bug Fix
Doc Text:
.Edit layering and deep-flatten features disabled on the Dashboard. Previously, in the Ceph dashboard, it was possible to allow editing the layering & deep-flatten features, which are immutable, resulting in an error - `rbd: failed to update image features: (22) Invalid argument`. With this fix, editing the layering & deep-flatten features are disabled and everything works as expected.
Clone Of:
Environment:
Last Closed: 2023-12-13 15:20:06 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github ceph ceph pull 53071 0 None open mgr/dashboard: images -> edit -> disable checkboxes for layering and deef-flatten 2023-08-21 16:56:12 UTC
Red Hat Issue Tracker RHCEPH-6073 0 None None None 2023-02-02 17:24:09 UTC
Red Hat Issue Tracker RHCSDASH-924 0 None None None 2023-02-02 17:24:43 UTC
Red Hat Product Errata RHBA-2023:7780 0 None None None 2023-12-13 15:20:10 UTC

Description Vasishta 2023-02-02 17:21:01 UTC
Description of problem:
layering and deep-flatten features are immutable (cannot be enabled after creating the image)

# rbd feature enable MCzUHjMhPw_tier_1_rbd_mirror_pool/OLjakajjEA_tier_1_rbd_mirror_image layering
rbd: failed to update image features: 2023-02-02T17:13:35.254+0000 7fcf0f1fca00 -1 librbd::Operations: cannot update immutable features
(22) Invalid argument

# rbd feature enable MCzUHjMhPw_tier_1_rbd_mirror_pool/OLjakajjEA_tier_1_rbd_mirror_image deep-flatten
rbd: failed to update image features: (22) Invalid argument
2023-02-02T17:14:49.922+0000 7fa1afc2ba00 -1 librbd::Operations: cannot update immutable features

Dashboard not only allows to click on these checkboxes but returns green (success) notification when users click on edit RBD

Version-Release number of selected component (if applicable):
6.0 latest

How reproducible:
Always

Steps to Reproduce:
1. Create an rbd image without layering, deepflatten feature
2. edit rbd image on dashboard
3. select layering and deep-flatted and click on edit rbd

Actual results:
Dashboard not only allows to click on these checkboxes but returns green (success) notification when users click on edit RBD

Expected results:
Either disable checkboxes for them to edit or return error message as in CLI

Additional info:

Comment 1 Scott Ostapovicz 2023-07-12 13:05:18 UTC
Missed the 6.1 z1 window.  Retargeted to 6.1 z2.

Comment 8 errata-xmlrpc 2023-12-13 15:20:06 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Red Hat Ceph Storage 7.0 Bug Fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:7780


Note You need to log in before you can comment on or make changes to this bug.