Project

General

Profile

Bug #49837

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

Added by Sébastien Han about 1 month ago. Updated about 1 month ago.

Status:
Fix Under Review
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

History

#1 Updated by Sébastien Han about 1 month ago

  • Pull request ID set to 40157

#2 Updated by Patrick Donnelly about 1 month ago

  • Project changed from mgr to CephFS
  • Subject changed from snap_schedule: do not fail when no fs snapshots are available to mgr/pybind/snap_schedule: do not fail when no fs snapshots are available
  • Status changed from New to Fix Under Review
  • Target version set to v17.0.0
  • Source set to Development
  • Backport set to pacific,octopus
  • Component(FS) mgr/snap_schedule added

#3 Updated by Patrick Donnelly about 1 month ago

  • Assignee set to Sébastien Han

Also available in: Atom PDF