Bug 2268036

Summary: [CephFS - Snap Scheduler UI] - Error for incorrect ISO format start string
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: sumr
Component: Ceph-DashboardAssignee: Ivo Almeida <ialmeida>
Status: CLOSED ERRATA QA Contact: sumr
Severity: high Docs Contact: Akash Raj <akraj>
Priority: unspecified    
Version: 7.1CC: akraj, ceph-eng-bugs, cephqe-warriors, ialmeida, ngangadh, nia, tserlin
Target Milestone: ---   
Target Release: 7.1   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: ceph-18.2.1-74.el9cp Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-06-13 14:28:47 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: 2267614, 2298578, 2298579    

Description sumr 2024-03-06 05:15:59 UTC
Created attachment 2020308 [details]
minutes_not_handled_in_start_field

Description of problem:

With BZ2266530 fix, we handled string formatting for month field, but not for minutes field, so if time is 11:01:26, API sends it as 11:1:26 instead of 11:01:26, and ISO format error is again seen.(screenshot attached)

CLI logs:
[root@ceph-sumar-7-1-test-zio5q8-node7 ~]# ceph fs snap-schedule add / 1h --start 2024-03-05T06:8:07
Error ENOENT: Invalid isoformat string: '2024-03-05T06:8:07'
[root@ceph-sumar-7-1-test-zio5q8-node7 ~]# ceph fs snap-schedule add / 1h --start 2024-03-05T06:08:07
Schedule set for path /
[root@ceph-sumar-7-1-test-zio5q8-node7 ~]# ceph version
ceph version 18.2.1-43.el9cp (83150de4e108c4d496fdaec1ef48a72d441614e0) reef (stable)
[root@ceph-sumar-7-1-test-zio5q8-node7 ~]#



Version-Release number of selected component (if applicable):ceph version 18.2.1-43.el9cp


How reproducible:5/5


Steps to Reproduce:
1. Go to Snapshot schedules type of cephfs filesystem
2. Create schedule with start time having '01-09' for minutes field


Actual results: Schedule creation fails with incorrect ISO format start string


Expected results: Schedule creation fails.


Additional info:

Comment 10 errata-xmlrpc 2024-06-13 14:28:47 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 11 Red Hat Bugzilla 2024-11-16 04:25:27 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days