[LU-14797] lfs setquota should be nodemap aware Created: 29/Jun/21  Updated: 28/Jul/22  Resolved: 10/Oct/21

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.15.0
Fix Version/s: Lustre 2.15.0

Type: Bug Priority: Minor
Reporter: Sebastien Buisson Assignee: Sebastien Buisson
Resolution: Fixed Votes: 0
Labels: nodemap, patch, sec

Issue Links:
Cloners
Related
is related to LUDOC-493 Update nodemap section to reflect rec... Resolved
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

When nodemap is used in conjunction with project quota to restrict clients to a given fileset, it should not be possible to alter other project quotas with lfs setquota.



 Comments   
Comment by Sebastien Buisson [ 29/Jun/21 ]

In order to address this requirement, we could add the ability to create id maps of a new type projid, in addition to the already existing uid and gid types. That would also require adding a new value to map_mode. Currently it only groks uid_only, gid_only or both, but we could add a projid_only value. Finally, a new property named squash_projid could be used to map all project ID to a default one.

The common case of one projid allowed per nodemap would consist in having a map that just has the projid mapped to itself, the map_mode to projid_only, and deny_unknown set to 1.

Comment by Gerrit Updater [ 29/Jun/21 ]

Sebastien Buisson (sbuisson@ddn.com) uploaded a new patch: https://review.whamcloud.com/44108
Subject: LU-14797 sec: add projid to nodemap
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 26742cff80aa1bc278e487623e00281f9c25cd3e

Comment by Gerrit Updater [ 30/Jun/21 ]

Sebastien Buisson (sbuisson@ddn.com) uploaded a new patch: https://review.whamcloud.com/44119
Subject: LU-14797 nodemap: map project id
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 7e88416dcb6c99c40cc9f9e4f35a1b8c87f7132d

Comment by Gerrit Updater [ 10/Oct/21 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/44108/
Subject: LU-14797 sec: add projid to nodemap
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 8a770616a5ad21360ecba63c3643cadd245a2a50

Comment by Gerrit Updater [ 10/Oct/21 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/44119/
Subject: LU-14797 nodemap: map project id
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 0daeebcbdc4e89d59221299f2687cfd3c4f00b5b

Comment by Peter Jones [ 10/Oct/21 ]

Landed for 2.15

Generated at Sat Feb 10 03:12:52 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.