Details
-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
None
-
None
-
3
-
9223372036854775807
Description
We have a client accessing a file system via a nodemap.
ubuntu@lus2526-tcp1:~$ cat /sys/fs/lustre/version
2.14.0_2_gb280f22
ubuntu@lus2526-tcp1:~$ df /lustre/scratch12{5..6}
Filesystem 1K-blocks Used Available Use% Mounted on
10.160.40.37@tcp1:10.160.40.36@tcp1:/lus25 5161226796192 21176 5109139362568 1% /lustre/scratch125
10.160.42.37@tcp1:10.160.42.36@tcp1:/lus26 4301022330160 17604 4257616135516 1% /lustre/scratch126
ubuntu@lus2526-tcp1:~$ id
uid=1000(ubuntu) gid=1000(ubuntu) groups=1000(ubuntu),4(adm),20(dialout),24(cdrom),25(floppy),27(sudo),29(audio),30(dip),44(video),46(plugdev),117(netdev),118(lxd)
ubuntu@lus2526-tcp1:~$ echo > /lustre/scratch125/$(uname -n) ; echo > /lustre/scratch126/$(uname -n)
ubuntu@lus2526-tcp1:~$ ls -l /lustre/scratch12*/*
-rw-rw-r-- 1 ubuntu ubuntu 1 Jul 28 07:45 /lustre/scratch125/lus2526-tcp1
-rw-rw-r-- 1 ubuntu ubuntu 1 Jul 28 07:45 /lustre/scratch126/lus2526-tcp1
The external default client sees:
jb23@gen3-os0000011:~$ id jb23 uid=12296(jb23) gid=1105(team94) groups=1105(team94),15283(sag-secure-fileshare),1415(ssg-confluence),1400(www-pagesmith),15016(isg-dcim),4999(jb23test),15141(sag-mfa),1533(ssg-isg),1490(docker),706(ssg),15404(dir-admins),15456(IDS),15264(sag-mso365-apps) jb23@gen3-os0000011:~$ find /lustre/scratch12[56]/admin/team94/jb23/tcp* -type f -ls 144115339507007490 4 -rw-rw-r-- 1 99 acedbdoc 1 Jul 28 08:45 /lustre/scratch125/admin/team94/jb23/tcp1/lus2526-tcp1 144115406599094274 4 -rw-rw-r-- 1 99 acedbdoc 1 Jul 28 08:45 /lustre/scratch126/admin/team94/jb23/tcp1/lus2526-tcp1 jb23@gen3-os0000011:~$ ls -l /lustre/scratch12*/admin/team94/jb23/tcp1/lus2526-tcp1 -rw-rw-r-- 1 99 acedbdoc 1 Jul 28 08:45 /lustre/scratch125/admin/team94/jb23/tcp1/lus2526-tcp1 -rw-rw-r-- 1 99 acedbdoc 1 Jul 28 08:45 /lustre/scratch126/admin/team94/jb23/tcp1/lus2526-tcp1 jb23@gen3-os0000011:~$ getent group acedbdoc acedbdoc:*:99:image jb23@gen3-os0000011:~$ ls -l .bashrc -rw-r--r-- 1 jb23 team94 1130 May 26 12:47 .bashrc
The nodemap is configured
[root@lus25-mds1 ~]# cat /sys/fs/lustre/version 2.12.6_ddn66 [root@lus25-mds1 lustre_casm16]# for i in * > do > echo $i $(cat $i ) > done admin_nodemap 0 audit_mode 1 deny_unknown 0 exports [ { nid: 10.177.127.35@tcp1, uuid: 720c5dc0-efbf-4d55-9340-8a2bde26d039 }, ] fileset /admin/team94/jb23/tcp1 id 1 idmap [ { idtype: uid, client_id: 1000, fs_id: 12296 }, { idtype: gid, client_id: 1000, fs_id: 1105 } ] map_mode all ranges [ { id: 1, start_nid: 10.177.126.0@tcp1, end_nid: 10.177.127.255@tcp1 } ] sepol squash_gid 1105 squash_projid squash_uid 12296 trusted_nodemap 0