Expanded `removexattr` support for CephFS virtual extended attributes
Previously, `removexattr` was not supported on all appropriate Ceph virtual extended attributes, resulting in attempts to remove an extended attribute failing with a "No such attribute" error.
With this fix, support for `removexattr` has been expanded to cover all pertinent CephFS virtual extended attributes. You can now properly use `removexattr` to remove attributes. You can also remove the layout on the root inode. Removing the layout restores the configuration to the default layout.
Description of problem:
setfattr -x option is not working for ceph.quota.maxfiles
added extended attribute to directory. when we did get it worked but when we did setfattr -x it fails with "No such attribute"
[root@ceph-amk-regression-oz3229-node7 ceph_kernel]# getfattr -n ceph.quota.max_files /mnt/ceph_kernel/file_srcdir/ceph-amk-regression-oz3229-node7/thrd_00/d_000
getfattr: Removing leading '/' from absolute path names
# file: mnt/ceph_kernel/file_srcdir/ceph-amk-regression-oz3229-node7/thrd_00/d_000
ceph.quota.max_files="100"
[root@ceph-amk-regression-oz3229-node7 ceph_kernel]# setfattr -x ceph.quota.max_files /mnt/ceph_kernel/file_srcdir/ceph-amk-regression-oz3229-node7/thrd_00/d_000
setfattr: /mnt/ceph_kernel/file_srcdir/ceph-amk-regression-oz3229-node7/thrd_00/d_000: No such attribute
This is happening on both fuse and kernel mounts
Version-Release number of selected component (if applicable):
[root@ceph-amk-regression-oz3229-node7 ceph_kernel]# ceph versions
{
"mon": {
"ceph version 18.2.1-215.el9cp (07fe9c7b0b710d1ee1e5a4a796a70d32bdb8664e) reef (stable)": 3
},
"mgr": {
"ceph version 18.2.1-215.el9cp (07fe9c7b0b710d1ee1e5a4a796a70d32bdb8664e) reef (stable)": 2
},
"osd": {
"ceph version 18.2.1-215.el9cp (07fe9c7b0b710d1ee1e5a4a796a70d32bdb8664e) reef (stable)": 12
},
"mds": {
"ceph version 18.2.1-215.el9cp (07fe9c7b0b710d1ee1e5a4a796a70d32bdb8664e) reef (stable)": 4
},
"overall": {
"ceph version 18.2.1-215.el9cp (07fe9c7b0b710d1ee1e5a4a796a70d32bdb8664e) reef (stable)": 21
}
}
How reproducible:
Steps to Reproduce:
1.
2.
3.
Actual results:
Expected results:
Additional info:
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 (Important: Red Hat Ceph Storage 8.1 security, bug fix, and enhancement 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/RHSA-2025:9775
Comment 18Red Hat Bugzilla
2025-10-25 04:25:12 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days
Description of problem: setfattr -x option is not working for ceph.quota.maxfiles added extended attribute to directory. when we did get it worked but when we did setfattr -x it fails with "No such attribute" [root@ceph-amk-regression-oz3229-node7 ceph_kernel]# getfattr -n ceph.quota.max_files /mnt/ceph_kernel/file_srcdir/ceph-amk-regression-oz3229-node7/thrd_00/d_000 getfattr: Removing leading '/' from absolute path names # file: mnt/ceph_kernel/file_srcdir/ceph-amk-regression-oz3229-node7/thrd_00/d_000 ceph.quota.max_files="100" [root@ceph-amk-regression-oz3229-node7 ceph_kernel]# setfattr -x ceph.quota.max_files /mnt/ceph_kernel/file_srcdir/ceph-amk-regression-oz3229-node7/thrd_00/d_000 setfattr: /mnt/ceph_kernel/file_srcdir/ceph-amk-regression-oz3229-node7/thrd_00/d_000: No such attribute This is happening on both fuse and kernel mounts Version-Release number of selected component (if applicable): [root@ceph-amk-regression-oz3229-node7 ceph_kernel]# ceph versions { "mon": { "ceph version 18.2.1-215.el9cp (07fe9c7b0b710d1ee1e5a4a796a70d32bdb8664e) reef (stable)": 3 }, "mgr": { "ceph version 18.2.1-215.el9cp (07fe9c7b0b710d1ee1e5a4a796a70d32bdb8664e) reef (stable)": 2 }, "osd": { "ceph version 18.2.1-215.el9cp (07fe9c7b0b710d1ee1e5a4a796a70d32bdb8664e) reef (stable)": 12 }, "mds": { "ceph version 18.2.1-215.el9cp (07fe9c7b0b710d1ee1e5a4a796a70d32bdb8664e) reef (stable)": 4 }, "overall": { "ceph version 18.2.1-215.el9cp (07fe9c7b0b710d1ee1e5a4a796a70d32bdb8664e) reef (stable)": 21 } } How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info: