.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.
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:
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
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: