[LU-425] SANITYN sanity_mount_check_clients fails if $MOUNT is a substring of $MOUNT2 Created: 16/Jun/11  Updated: 25/May/12  Resolved: 23/May/12

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 1.8.6
Fix Version/s: Lustre 2.3.0, Lustre 2.1.2, Lustre 1.8.8

Type: Bug Priority: Minor
Reporter: Jay Lan (Inactive) Assignee: Jian Yu
Resolution: Fixed Votes: 0
Labels: None
Environment:

My test environment is from git tree with tag 1.8.5.51. The OS should be irrelevant, but I am running sles11sp1 on client.


Severity: 3
Rank (Obsolete): 4633

 Description   

The SANITYN passed all its tests but failed in pre-test
setup at sanity_mount_check_clients.

I defined MOUNT=/mnt/nbp0 and MOUNT2=/mnt/nbp0-2. Bad idea!!!

The sanity_mount_check* scripts use `grep -c` to search for
$MOUNT and $MOUNT2. Since $MOUNT is a substring
of $MOUNT2, `grep` on situations return wrong count!

Changing $MOUNT definition to /mnt/nbp0-1 passed the sanityN.sh test.



 Comments   
Comment by Peter Jones [ 16/Jun/11 ]

Thanks Jay. Could you please upload this change into gerrit as per the instructions here - http://wiki.whamcloud.com/display/PUB/Submitting+Changes ? Thanks.

Comment by Jay Lan (Inactive) [ 05/Jul/11 ]

Hi Peter,

I am not sure what information you asked for. The change I mentioned was done in my
version of ncli_jlan.sh, not in the lustre/tests/ scripts. Thanks.

Comment by Peter Jones [ 29/Aug/11 ]

yujian

Are you able to assist with this matter?

Thanks

Peter

Comment by Jian Yu [ 13/Apr/12 ]

Patch for b1_8 branch is in http://review.whamcloud.com/2528.
Patch for master branch is in http://review.whamcloud.com/2529.

Comment by Jian Yu [ 16/May/12 ]

Patch for b2_1 branch is in http://review.whamcloud.com/2801.
Patch for b2_2 branch is in http://review.whamcloud.com/2802.

Comment by Jian Yu [ 23/May/12 ]

Landed for 2.1.2 and 2.3.

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