Bug 2166705 - [dashboard] block/rbd : images -> snapshots : disable protect option if layering feature is not enabled on the image
Summary: [dashboard] block/rbd : images -> snapshots : disable protect option if layer...
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:10 UTC by Vasishta
Modified: 2023-12-13 15:20 UTC (History)
10 users (show)

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.
Clone Of:
Environment:
Last Closed: 2023-12-13 15:20:03 UTC
Embargoed:


Attachments (Terms of Use)
dashboard snapshot (154.36 KB, image/png)
2023-02-02 17:10 UTC, Vasishta
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github ceph ceph pull 53066 0 None open mgr/dashboard: disable protect if layering is not enabled on the image 2023-08-21 16:26:02 UTC
Github ceph ceph pull 53671 0 None open mgr/dashboard: enable protect option if layering enabled 2023-09-26 11:07:07 UTC
Red Hat Issue Tracker RHCEPH-6072 0 None None None 2023-02-02 17:12:06 UTC
Red Hat Issue Tracker RHCSDASH-923 0 None None None 2023-02-02 17:12:44 UTC
Red Hat Product Errata RHBA-2023:7780 0 None None None 2023-12-13 15:20:08 UTC

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


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