Bug 2166705

Summary: [dashboard] block/rbd : images -> snapshots : disable protect option if layering feature is not enabled on the image
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Vasishta <vashastr>
Component: Ceph-DashboardAssignee: avan <athakkar>
Status: CLOSED ERRATA QA Contact: Sunil Angadi <sangadi>
Severity: medium Docs Contact: Rivka Pollack <rpollack>
Priority: unspecified    
Version: 6.0CC: akraj, athakkar, ceph-eng-bugs, cephqe-warriors, kdreyer, nia, rpollack, sangadi, sostapov, tserlin
Target Milestone: ---   
Target Release: 7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-18.2.0-74.el9cp Doc Type: Bug Fix
Doc Text:
.Protecting snapshot is enabled only if layering for its parent image is enabled Previously, protecting snapshot was enabled even if layering was disabled for its parent image. This caused errors when trying to protect the snapshot of an image for which layering was disabled. With this fix, protecting snapshot is disabled if layering for an image is disabled. Protecting snapshot is enabled only if layering for its parent image is enabled.
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-12-13 15:20:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2237662    
Attachments:
Description Flags
dashboard snapshot none

Description Vasishta 2023-02-02 17:10:17 UTC
Created attachment 1941884 [details]
dashboard snapshot

Description of problem:
attempt to protect a snapshot of which layering is not enabled for image fails without giving much clue to user in dashboard.

(when tried in cli it throws error message saying layering needs to be enabled on the image)

So disable the option in dashboard if layering is not enabled.

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

How reproducible:
Alwasy

Steps to Reproduce:
1. Create an rbd image without layering feature.
2. create a snapshot
3. Try to protect snapshot from dashboard

Actual results:
error notification comes without giving clue

Expected results:
Disable protect option or ask users to enable layering feature

Additional info:

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

Comment 11 errata-xmlrpc 2023-12-13 15:20:03 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