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: ASSIGNED --- QA Contact: Sayalee <saraut>
Severity: medium Docs Contact: Anjana Suparna Sriram <asriram>
Priority: unspecified    
Version: 6.0CC: ceph-eng-bugs, cephqe-warriors, nia, sostapov
Target Milestone: ---   
Target Release: 7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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:
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.