[LU-15484] sanity-pcc test_101a: could not map uid 500 to root in namespace Created: 05/Jan/22  Updated: 05/Jul/22  Resolved: 11/Jun/22

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

Type: Bug Priority: Minor
Reporter: Maloo Assignee: Patrick Farrell
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Related
is related to LU-15170 PCC cache re-attach does not work in ... Resolved
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

This issue was created by maloo for S Buisson <sbuisson@ddn.com>

This issue relates to the following test suite run: https://testing.whamcloud.com/test_sets/6dc80157-47d4-4055-9907-0ee99e3974b7

test_101a failed with the following error:

could not map uid 500 to root in namespace

It seems the error is due to 'newuidmap':

== sanity-pcc test 101a: Test auto attach in mount namespace (simulated container) =================== 13:07:40 (1641388060)
CMD: onyx-41vm2 cat /proc/sys/user/max_user_namespaces
CMD: onyx-41vm2 echo 10 > /proc/sys/user/max_user_namespaces
creating user namespace for 500
CMD: onyx-41vm2 runas -u 500 -g 500 unshare -Um sleep 600
CMD: onyx-41vm2 pgrep sleep
onyx-41vm2: running as uid/gid/euid/egid 500/500/500/500, groups:
onyx-41vm2:  [unshare] [-Um] [sleep] [600]
Created NS: child (sleep) pid 
CMD: onyx-41vm2 runas -u 500 -g 500 newuidmap 0 500 1
onyx-41vm2: running as uid/gid/euid/egid 500/500/500/500, groups:
onyx-41vm2:  [newuidmap] [0] [500] [1]
onyx-41vm2: newuidmap: Could not open proc directory for target 0
 sanity-pcc test_101a: @@@@@@ FAIL: could not map uid 500 to root in namespace

VVVVVVV DO NOT REMOVE LINES BELOW, Added by Maloo for auto-association VVVVVVV
sanity-pcc test_101a - could not map uid 500 to root in namespace



 Comments   
Comment by Jian Yu [ 14/Jan/22 ]

+1 on master: https://testing.whamcloud.com/test_sets/37c6fe04-c7a8-48b2-ab6d-00fcbfec3390

Comment by Gerrit Updater [ 09/Mar/22 ]

"Patrick Farrell <pfarrell@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/46764
Subject: LU-15484 tests: Increase timeout to wait for child
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 83de6008eb2c641ba64f2931bd6a264bf8cd3a38

Comment by Andreas Dilger [ 16/May/22 ]

It looks like this problem goes all the way back to the original patch https://review.whamcloud.com/45436"LU-15170 llite: Switch pcc to lookup_one_len", since it failed once in review testing before it landed.

Comment by Minh Diep [ 09/Jun/22 ]

newuidmap is from rootlesskit and it does not exist in ubuntu 20.04, can we fix the test?

Comment by James A Simmons [ 09/Jun/22 ]

Install uidmap package for Ubuntu. It has newuidmap. Works for both Ubuntu 20 and 22. Is this a Ubuntu issue only?

Comment by Gerrit Updater [ 11/Jun/22 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/46764/
Subject: LU-15484 tests: Increase timeout to wait for child
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 94925be0ff6af31aa396d39265a5252de5557897

Comment by Peter Jones [ 11/Jun/22 ]

Landed for 2.16

Comment by Gerrit Updater [ 24/Jun/22 ]

"Jian Yu <yujian@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/47733
Subject: LU-15484 tests: Increase timeout to wait for child
Project: fs/lustre-release
Branch: b2_15
Current Patch Set: 1
Commit: b94bed644f7b3dddaa4130f235a019b943a4cb3c

Comment by Gerrit Updater [ 05/Jul/22 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/47733/
Subject: LU-15484 tests: Increase timeout to wait for child
Project: fs/lustre-release
Branch: b2_15
Current Patch Set:
Commit: e0dabb76edd76110ad9bbda9c5312107569a3f47

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