[LU-14804] Moving a directory to lustre reports Operation not permitted when nodemap is set Created: 01/Jul/21  Updated: 30/Jul/21  Resolved: 22/Jul/21

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.12.6, 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: None

Issue Links:
Related
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

When a nodemap is set, moving a directory from outside of Lustre to inside Lustre reports "Operation not permitted" error.

This can be reproduced with a nodemap like the one below, where admin and trusted properties are set to 1.

[root@s20 ~]# lctl get_param nodemap.s20.*
nodemap.s20.admin_nodemap=1
nodemap.s20.audit_mode=1
nodemap.s20.deny_unknown=0
nodemap.s20.exports=
[
 
]
nodemap.s20.fileset=

nodemap.s20.id=5
nodemap.s20.idmap=[

]
nodemap.s20.map_mode=both
nodemap.s20.ranges=
[
 { id: 5, start_nid: 10.128.8.171@tcp, end_nid: 10.128.8.171@tcp }
]
nodemap.s20.sepol=

nodemap.s20.squash_gid=99
nodemap.s20.squash_uid=99
nodemap.s20.trusted_nodemap=1
[root@s20 ~]# mkdir /tmp/s20_test
[root@s20 ~]# mv /tmp/s20_test /lustre
mv: preserving permissions for ‘/lustre/s20_test’: Operation not permitted

Error is returned from mdt_reint_setxattr().



 Comments   
Comment by Gerrit Updater [ 01/Jul/21 ]

Sebastien Buisson (sbuisson@ddn.com) uploaded a new patch: https://review.whamcloud.com/44127
Subject: LU-14804 nodemap: do not return error for improper ACL
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: d0980c42a970f51a89483a63696f91fc65f11f14

Comment by Gerrit Updater [ 22/Jul/21 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/44127/
Subject: LU-14804 nodemap: do not return error for improper ACL
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 601c48f3ecaefcb644f236344e139088f76a2a07

Comment by Peter Jones [ 22/Jul/21 ]

Landed for 2.15

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