Bug 2270237 - [CephFS - Snap Scheduler UI] - Retention field available during snap schedule create, but using it generates an error.
Summary: [CephFS - Snap Scheduler UI] - Retention field available during snap schedule...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Ceph-Dashboard
Version: 7.1
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
: 7.1
Assignee: Ivo Almeida
QA Contact: sumr
Akash Raj
URL:
Whiteboard:
Depends On:
Blocks: 2267614 2298578 2298579
TreeView+ depends on / blocked
 
Reported: 2024-03-19 07:38 UTC by sumr
Modified: 2024-11-16 04:25 UTC (History)
6 users (show)

Fixed In Version: ceph-18.2.1-78.el9cp
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2024-06-13 14:29:50 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHCEPH-8555 0 None None None 2024-03-19 07:47:18 UTC
Red Hat Issue Tracker RHCSDASH-1317 0 None None None 2024-03-19 07:49:16 UTC
Red Hat Product Errata RHSA-2024:3925 0 None None None 2024-06-13 14:29:56 UTC

Description sumr 2024-03-19 07:38:07 UTC
Created attachment 2022468 [details]
snap_sched_ui_create_retention_both_fails

Description of problem:
'Add retention policy' box exists in Snapshot schedule Create. It is enabled, so can be used to add retention policy during snap schedule create. But if used, upon 'Create Snapshot Schedule' button click, generates an error as in attached screenshot.

Error : "Failed to add retention policy.....:No schedule found"

This error could be expected. Because even in CLI, we need to first create schedule, and then for same path we can apply retention policy that gets applied to all existing schedules of same path.

But as we have 'Add retention policy' enabled for use, during create, any user can use it and face above circumstances. So, we should with either support use of this retention button or remove it or disable it, as appropriate.

Also, when "Failed to add retention policy.....:No schedule found" appears with 'Create snapshot schedule' click, if 'Add retention policy' was used, we also notice that, schedule gets created in background and an entry is made in list of schedules(refer screenshot). 

But for user, considering error seen as '"Failed to add retention policy.....:No schedule found"' , he may remove retention policies and try again 'Create snapshot schedule' button click, which generates error stating 'Path already exists'.

So we displayed error as '"Failed to add retention policy.....:No schedule found"' but have created the schedule in background, no notification for creation either.



Version-Release number of selected component (if applicable): 18.2.1-70.el9cp


How reproducible:


Steps to Reproduce:
1. In Snapshot schedules UI tab, Select create.
2. Add schedule for subvolume. Click 'Add retention policy'
3. Add retention policies, click 'Create snapshot schedule'

Actual results: 
mentioned in 'Description' section.

Expected results: 'Add retention policy' should not be available or disabled for create

Additional info:

Comment 16 errata-xmlrpc 2024-06-13 14:29:50 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 (Critical: Red Hat Ceph Storage 7.1 security, enhancements, and 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/RHSA-2024:3925

Comment 17 Red Hat Bugzilla 2024-11-16 04:25:30 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days


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