Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
This project is now read‑only. Starting Monday, February 2, please use https://ibm-ceph.atlassian.net/ for all bug tracking management.

Bug 2258568

Summary: [CephFS - SnapSchedule] Adding retention which already exists gives improper error message
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: sumr
Component: CephFSAssignee: Milind Changire <mchangir>
Status: CLOSED ERRATA QA Contact: sumr
Severity: low Docs Contact: Rivka Pollack <rpollack>
Priority: low    
Version: 6.1CC: amk, ceph-eng-bugs, cephqe-warriors, gfarnum, hyelloji, mchangir, ngangadh, rpollack, tserlin, vshankar
Target Milestone: ---   
Target Release: 7.1z8   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: ceph-18.2.1-347.el9cp Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-09-30 15:02:56 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 sumr 2024-01-16 10:14:32 UTC
Description of problem:

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


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

How reproducible:consistent


Steps to Reproduce:
1.
2.
3.

Actual results:
"Error ENOENT: Retention for M is already present with value10. Please remove first"

Expected results:
"Error ENOENT: Retention for M is already present with value 10. Please remove first"

Additional info:

Comment 14 errata-xmlrpc 2025-09-30 15:02:56 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 7.1 security and bug fix updates), 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-2025:17059