Project

General

Profile

Actions

Bug #49837

closed

mgr/pybind/snap_schedule: do not fail when no fs snapshots are available

Added by Sébastien Han about 3 years ago. Updated almost 3 years ago.

Status:
Resolved
Priority:
Normal
Category:
-
Target version:
% Done:

0%

Source:
Development
Tags:
Backport:
pacific,octopus
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
mgr/snap_schedule
Labels (FS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

When calling the json output, we should not return any error but just an empty dict:

[root@rook-ceph-tools-78cdfd976c-xltx5 /]# ceph fs snap-schedule list / format=json
Error ENOENT: SnapSchedule for / not found
[root@rook-ceph-tools-78cdfd976c-xltx5 /]# echo $?
2

Related issues 2 (0 open2 closed)

Copied to CephFS - Backport #50538: pacific: mgr/pybind/snap_schedule: do not fail when no fs snapshots are availableResolvedSébastien HanActions
Copied to CephFS - Backport #50539: octopus: mgr/pybind/snap_schedule: do not fail when no fs snapshots are availableRejectedActions
Actions

Also available in: Atom PDF