Re: cephfs quota setfattr permission denied

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Nathan,

Indeed that was the reason. With your hint I was able to find the
relevant documentation:

https://docs.ceph.com/docs/master/cephfs/client-auth/

that is completely absent from:

https://docs.ceph.com/docs/master/cephfs/quota/#configuration

I will send a pull request to include the link to client-auth in the
CephFS quota page.

thanks
Mattia

On 7/31/19 2:45 PM, Nathan Fish wrote:
> The client key which is used to mount the FS needs the 'p' permission
> to set xattrs. eg:
> 
> ceph fs authorize cephfs client.foo / rwsp
> 
> That might be your problem.
> 
> On Wed, Jul 31, 2019 at 5:43 AM Mattia Belluco <mattia.belluco@xxxxxx> wrote:
>>
>> Dear ceph users,
>>
>> We have been recently trying to use the two quota attributes:
>>
>> - ceph.quota.max_files
>> - ceph.quota.max_bytes
>>
>> to prepare for quota enforcing.
>>
>> While the idea is quite straightforward we found out we cannot set any
>> additional file attribute (we tried with the directory pinning, too): we
>> get a straight "permission denied" each time.
>>
>> We are running the latest version of Mimic on a cluster used exclusively
>> for cephfs.
>>
>> This is the output of a "ceph fs dump"
>>
>> Filesystem 'spindlefs' (4)
>> fs_name spindlefs
>> epoch   18062
>> flags   12
>> created 2019-02-21 17:53:48.240659
>> modified        2019-07-30 16:52:13.141688
>> tableserver     0
>> root    0
>> session_timeout 60
>> session_autoclose       300
>> max_file_size   1099511627776
>> min_compat_client       -1 (unspecified)
>> last_failure    0
>> last_failure_osd_epoch  31203
>> compat  compat={},rocompat={},incompat={1=base v0.20,2=client writeable
>> ranges,3=default file layouts on dirs,4=dir inode in separate
>> object,5=mds uses versioned encoding,6=dirfrag is stored in omap,8=no
>> anchor table,9=file layout v2,10=snaprealm v2}
>> max_mds 1
>> in      0
>> up      {0=10744488}
>> failed
>> damaged
>> stopped
>> data_pools      [11]
>> metadata_pool   10
>> inline_data     disabled
>> balancer
>> standby_count_wanted    1
>> 10744488:       10.129.48.46:6800/549232138 'mds-l15-34' mds.0.18058 up:active
>> seq 49
>>
>> and the command we are trying to use:
>>
>> setfattr -n ceph.quota.max_bytes -v 100000000 /user/dir
>>
>> It should be all pretty much default and we could find no reference
>> online regarding settings to allow the setfattr to succeed.
>>
>> Any hint is welcome.
>>
>> Kind regards
>> mattia
>> _______________________________________________
>> ceph-users mailing list
>> ceph-users@xxxxxxxxxxxxxx
>> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com


-- 
Mattia Belluco
S3IT Services and Support for Science IT
Office Y11 F 52
University of Zürich
Winterthurerstrasse 190, CH-8057 Zürich (Switzerland)
Tel: +41 44 635 42 22
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com




[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux