Project

General

Profile

Actions

Bug #64042

open

mgr/snap_schedule: Adding retention which already exists gives improper error message

Added by Milind Changire 4 months ago. Updated about 2 months ago.

Status:
Fix Under Review
Priority:
Normal
Category:
Administration/Usability
Target version:
% Done:

0%

Source:
Tags:
Backport:
quincy,reef,squid
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
Labels (FS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

This is a message formatting error along with an incorrect errno error.

Snap Schedule Retention add for value which already exists generates error as expected but with improper message.

Error message "Error ENOENT: Retention for M is already present with value10. Please remove first" in below example mentions retention value 10 for M interval already exists, but represent existing value as 'value10'. There is space missing in 'value10', it had to be 'value 10' instead.

Example cmd:
[root@ceph-sumar-regression-5ohzjt-node6 ~]# ceph fs snap-schedule retention add /volumes/svg_1/sv1 M 10 --fs cephfs
Retention added to path /volumes/svg_1/sv1
[root@ceph-sumar-regression-5ohzjt-node6 ~]# ceph fs snap-schedule retention add /volumes/svg_1/sv1 M 10 --fs cephfs
Error ENOENT: Retention for M is already present with value10. Please remove first

Actions #1

Updated by Milind Changire 4 months ago

  • Pull request ID set to 55193
Actions #2

Updated by Venky Shankar 4 months ago

  • Category set to Administration/Usability
  • Status changed from New to Triaged
  • Assignee set to Milind Changire
  • Target version set to v19.0.0
  • Backport set to quincy, reef
Actions #3

Updated by Venky Shankar about 2 months ago

  • Status changed from Triaged to Fix Under Review
  • Backport changed from quincy, reef to quincy,reef,squid
Actions

Also available in: Atom PDF