Project

General

Profile

Actions

Bug #54121

closed

mgr/volumes: File Quota attributes not getting inherited to the cloned volume

Added by Kotresh Hiremath Ravishankar about 2 years ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Normal
Category:
-
Target version:
-
% Done:

100%

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

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_files -v 99 /mnt/cephfs_kernel
[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
  1. file: mnt/fuse_mount/
    ceph.quota.max_files="0"
[root@ceph-amk4-4nfp05-node7 ~]# getfattr -n ceph.quota.max_files /mnt/cephfs_kernel
getfattr: Removing leading '/' from absolute path names
  1. file: mnt/cephfs_kernel
    ceph.quota.max_files="99"
[root@ceph-amk4-4nfp05-node7 ~]# getfattr -n ceph.quota.max_bytes /mnt/cephfs_kernel
getfattr: Removing leading '/' from absolute path names
  1. file: mnt/cephfs_kernel
    ceph.quota.max_bytes="9999"
[root@ceph-amk4-4nfp05-node7 ~]# getfattr -n ceph.quota.max_bytes /mnt/fuse_mount/
getfattr: Removing leading '/' from absolute path names
  1. file: mnt/fuse_mount/
    ceph.quota.max_bytes="9999"

Related issues 3 (0 open3 closed)

Copied to CephFS - Backport #54331: octopus: mgr/volumes: File Quota attributes not getting inherited to the cloned volumeRejectedActions
Copied to CephFS - Backport #54332: pacific: mgr/volumes: File Quota attributes not getting inherited to the cloned volumeResolvedKotresh Hiremath RavishankarActions
Copied to CephFS - Backport #54333: quincy: mgr/volumes: File Quota attributes not getting inherited to the cloned volumeResolvedKotresh Hiremath RavishankarActions
Actions #1

Updated by Kotresh Hiremath Ravishankar about 2 years ago

  • Status changed from New to In Progress
  • Assignee set to Kotresh Hiremath Ravishankar
Actions #2

Updated by Kotresh Hiremath Ravishankar about 2 years ago

  • Status changed from In Progress to Fix Under Review
  • Pull request ID set to 44873
Actions #3

Updated by Kotresh Hiremath Ravishankar about 2 years ago

  • Backport set to pacific,octopus,quincy
Actions #4

Updated by Venky Shankar about 2 years ago

  • Status changed from Fix Under Review to Pending Backport
Actions #5

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
Actions #6

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
Actions #7

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
Actions #8

Updated by Backport Bot over 1 year ago

  • Tags set to backport_processed
Actions #9

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)
Actions

Also available in: Atom PDF