Bug 2256573 - [7.x Backport ] [CephFS - Subvolume] Improper output for subvolume create cmd with max chars in subvol name
Summary: [7.x Backport ] [CephFS - Subvolume] Improper output for subvolume create cmd...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: CephFS
Version: 5.3
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
: 7.1z5
Assignee: Rishabh Dave
QA Contact: Hemanth Kumar
Rivka Pollack
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-01-03 07:08 UTC by sumr
Modified: 2025-06-23 02:51 UTC (History)
12 users (show)

Fixed In Version: ceph-18.2.1-337
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2025-06-23 02:51:38 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Ceph Project Bug Tracker 69865 0 None None None 2025-02-07 19:08:08 UTC
Github ceph ceph pull 61706 0 None open mgr/vol: print proper message when subvolume metadata filename is too long 2025-02-07 19:08:08 UTC
Red Hat Issue Tracker RHCEPH-8131 0 None None None 2024-01-03 07:09:40 UTC
Red Hat Product Errata RHBA-2025:9335 0 None None None 2025-06-23 02:51:42 UTC

Description sumr 2024-01-03 07:08:51 UTC
Description of problem:
Subvolume create with maximum characters in subvolume name throws a Traceback and Exception that is improper.

Error EINVAL: Traceback (most recent call last):
  File "/usr/share/ceph/mgr/volumes/fs/operations/versions/subvolume_base.py", line 298, in discover
    self.fs.stat(self.base_path)
  File "cephfs.pyx", line 1889, in cephfs.LibCephFS.stat
cephfs.ObjectNotFound: error in stat: /volumes/svg/sv1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111: No such file or directory [Errno 2]

Version-Release number of selected component (if applicable):
16.2.10-225.el8cp

How reproducible:
consistent

Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:
Command output should print Error similar to "ENAMETOOLONG: error accessing subvolume"

Additional info:

Comment 19 errata-xmlrpc 2025-06-23 02:51:38 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:9335


Note You need to log in before you can comment on or make changes to this bug.