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: ASSIGNED
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
Anjana Suparna Sriram
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-02-02 17:21 UTC by Vasishta
Modified: 2023-08-09 10:22 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
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

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.


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