Bug #54121
closedmgr/volumes: File Quota attributes not getting inherited to the cloned volume
100%
Description
File Quota attributes not getting inherited to the cloned volume
Version-Release number of selected component (if applicable):
ceph version 16.2.0-146.el8cp (56f5e9cfe88a08b6899327eca5166ca1c4a392aa) pacific (stable)
How reproducible:
Steps to Reproduce:
1.Create a subvolume and mount it on directory using kernel mount
2.Setfattr to the mounted directory both file and byte quotas
3.create snapshot
4.create a clone of the subvolume
5.mount the cloned volume using fusemount
6.check the quota attributes of the mounted directory
Actual results:
bytes quota is getting inherited where as file quota not getting inherited
Expected results:
both the quotas should get inherited
Additional info:
commands executed:
[root@ceph-amk4-4nfp05-node7 ~]# ceph fs subvolume create cephfs subvol_clone_attr_vol --size 5368706371 --group_name subvolgroup_clone_attr_vol_1
[root@ceph-amk4-4nfp05-node7 ~]# ceph fs subvolume getpath cephfs subvol_clone_attr_vol subvolgroup_clone_attr_vol_1
/volumes/subvolgroup_clone_attr_vol_1/subvol_clone_attr_vol/4f8e849f-c82c-4aac-8ecc-8269f719d68b
[root@ceph-amk4-4nfp05-node7 ~]# mkdir /mnt/cephfs_kernel/
[root@ceph-amk4-4nfp05-node7 ~]# mount -t ceph 10.0.208.79,10.0.209.15,10.0.211.154:/volumes/subvolgroup_clone_attr_vol_1/subvol_clone_attr_vol/4f8e849f-c82c-4aac-8ecc-8269f719d68b /mnt/cephfs_kernel/ -o name=ceph-amk4-4nfp05-node7,secretfile=/etc/ceph/ceph-amk4-4nfp05-node7.secret
[root@ceph-amk4-4nfp05-node7 ~]# setfattr -n ceph.quota.max_bytes -v 9999 /mnt/cephfs_kernel
[root@ceph-amk4-4nfp05-node7 ~]# ceph fs subvolume snapshot create cephfs subvol_clone_attr_vol snap_1 --group_name subvolgroup_clone_attr_vol_1
[root@ceph-amk4-4nfp05-node7 ~]# ceph fs subvolume snapshot clone cephfs subvol_clone_attr_vol snap_1 clone_attr_vol_1 --group_name subvolgroup_clone_attr_vol_1
[root@ceph-amk4-4nfp05-node7 ~]# ceph fs clone status cephfs clone_attr_vol_1 {
"status": {
"state": "complete"
}
}
[root@ceph-amk4-4nfp05-node7 ~]# ceph fs subvolume getpath cephfs clone_attr_vol_1
/volumes/_nogroup/clone_attr_vol_1/66565653-1e50-4fdf-85ae-417ff479f5df
[root@ceph-amk4-4nfp05-node7 ~]# mkdir /mnt/fuse_mount
[root@ceph-amk4-4nfp05-node7 ~]# ceph-fuse -n client.ceph-amk4-4nfp05-node7 /mnt/fuse_mount/ -r /volumes/_nogroup/clone_attr_vol_1/66565653-1e50-4fdf-85ae-417ff479f5df
2021-12-02T05:55:52.903-0500 7f05fc87b200 -1 init, newargv = 0x55a185b6da50 newargc=15
ceph-fuse21919: starting ceph client
ceph-fuse21919: starting fuse
[root@ceph-amk4-4nfp05-node7 ~]# getfattr -n ceph.quota.max_files /mnt/fuse_mount/
getfattr: Removing leading '/' from absolute path names
- file: mnt/fuse_mount/
ceph.quota.max_files="0"
getfattr: Removing leading '/' from absolute path names
- file: mnt/cephfs_kernel
ceph.quota.max_files="99"
getfattr: Removing leading '/' from absolute path names
- file: mnt/cephfs_kernel
ceph.quota.max_bytes="9999"
getfattr: Removing leading '/' from absolute path names
- file: mnt/fuse_mount/
ceph.quota.max_bytes="9999"
Updated by Kotresh Hiremath Ravishankar about 2 years ago
- Status changed from New to In Progress
- Assignee set to Kotresh Hiremath Ravishankar
Updated by Kotresh Hiremath Ravishankar about 2 years ago
- Status changed from In Progress to Fix Under Review
- Pull request ID set to 44873
Updated by Kotresh Hiremath Ravishankar about 2 years ago
- Backport set to pacific,octopus,quincy
Updated by Venky Shankar about 2 years ago
- Status changed from Fix Under Review to Pending Backport
Updated by Backport Bot about 2 years ago
- Copied to Backport #54331: octopus: mgr/volumes: File Quota attributes not getting inherited to the cloned volume added
Updated by Backport Bot about 2 years ago
- Copied to Backport #54332: pacific: mgr/volumes: File Quota attributes not getting inherited to the cloned volume added
Updated by Backport Bot about 2 years ago
- Copied to Backport #54333: quincy: mgr/volumes: File Quota attributes not getting inherited to the cloned volume added
Updated by Konstantin Shalygin over 1 year ago
- Status changed from Pending Backport to Resolved
- % Done changed from 0 to 100
- Tags deleted (
backport_processed)