Bug 1956619

Summary: mgr/pybind/snap_schedule: do not fail when no fs snapshots are available
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Venky Shankar <vshankar>
Component: CephFSAssignee: Sébastien Han <shan>
Status: CLOSED ERRATA QA Contact: Hemanth Kumar <hyelloji>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.0CC: ceph-eng-bugs, dfuller, hyelloji, pdonnell, shan, sweil, tserlin, vereddy
Target Milestone: ---   
Target Release: 5.0   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: ceph-16.2.0-70.el8cp Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-08-30 08:30:12 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:

Description Venky Shankar 2021-05-04 05:17:31 UTC
When calling the json output, we should not return any error but just an empty dict:

# ceph fs snap-schedule list / format=json
Error ENOENT: SnapSchedule for / not found
# echo $?
2

Comment 1 RHEL Program Management 2021-05-04 05:17:37 UTC
Please specify the severity of this bug. Severity is defined here:
https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity.

Comment 9 Sébastien Han 2021-07-07 15:05:08 UTC
It's expected, the patch was only for the json output.

Comment 10 Sébastien Han 2021-07-07 16:05:34 UTC
Removing Venky's needinfo. Hemanth please move this to VERIFIED based on https://bugzilla.redhat.com/show_bug.cgi?id=1956619#c9. Thanks!

Comment 12 Hemanth Kumar 2021-07-09 08:53:08 UTC
Moving to verified based on Comment#9

Comment 14 errata-xmlrpc 2021-08-30 08:30:12 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 5.0 bug fix and enhancement), 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-2021:3294