[LU-3070] sanity-sec should not use UID as user Created: 29/Mar/13  Updated: 03/Apr/13

Status: Open
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.4.0
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Minh Diep Assignee: Minh Diep
Resolution: Unresolved Votes: 0
Labels: None

Severity: 3
Rank (Obsolete): 7471

 Description   

sanity-sec should not depend on UID

ID0=${ID0:-500}
ID1=${ID1:-501}
USER0=`cat /etc/passwd|grep :$ID0:$ID0:|cut -d: -f1`
USER1=`cat /etc/passwd|grep :$ID1:$ID1:|cut -d: -f1`

[ -z "$USER0" ] && \
echo "Please add user0 (uid=$ID0 gid=$ID0)! Skip sanity-sec" && exit 0

[ -z "$USER1" ] && \
echo "Please add user1 (uid=$ID1 gid=$ID1)! Skip sanity-sec" && exit 0

check_and_setup_lustre

sec_cleanup() {
if [ "$I_MOUNTED" = "yes" ]; then
cleanupall -f || error "sec_cleanup"
fi
}

This test will not run on system with the same username but different uid such as Rosso

https://maloo.whamcloud.com/test_sets/7e7d3d52-9212-11e2-b7d5-52540035b04c



 Comments   
Comment by Minh Diep [ 03/Apr/13 ]

TT-1191 filed related to this issue. This could be just an inconsistency between the labs on user id. I think we should still fix this hardcode check, but it's lower priority

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