[LU-9476] sanity tests 102d, f, j skipped looking for ‘lustre-aware’ tar Created: 09/May/17  Updated: 07/Oct/17  Resolved: 07/Oct/17

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.10.0
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: James Nunez (Inactive) Assignee: Bob Glossman (Inactive)
Resolution: Fixed Votes: 0
Labels: test

Issue Links:
Related
is related to LU-10047 sanity test_102d: mkdir -i 2 -c2 /mnt... Resolved
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

sanity tests 102d, 102f, and 102j are skipped looking for a lustre-aware version of tar:

SKIP: sanity test_102d lustre-aware tar is not installed

According to Andreas Dilger:

… this test should be changed to specify the "lustre" and "trusted" xattrs should be restored explicitly rather than assuming tar will do this automatically. The test can safely assume that all versions of tar being tested have xattr support. Lustre silently ignores all xattrs that cannot actually be restored from userspace.

Thus, we need to
1. remove the calls to find_lustre_tar() from each test and can remove the find_lustre_tar() routine
2. explicitly request the lustre xattrs are restored with ‘tar --xattrs-include=”lustre.*” -xf <tar_file>.tar’



 Comments   
Comment by Andreas Dilger [ 18/May/17 ]

... and the Lustre User Manual needs to be updated to also include --xattrs-inlude="lustre.*" in the "restore" part of the directions.

Comment by ZhangWei [ 03/Aug/17 ]

Hi Nunez and Dilger,
I found this skip issue in my test,and how can I doing this test ?
Do I need install the tar which support lustre ? Or I need include the lustre by excute "tar --xattrs-include" ?

Comment by Andreas Dilger [ 05/Aug/17 ]

All new resigns of tar can handle xattrs, but only the RHEL 6.x version explicitly requested that "lustre.*" xattrs be restored (hence the "lustre" string was in the binary). With very old tar versions (e.g. RHEL 5.x) there was no xattr support, so these tests were skipped if the "lustre" string was not found in the binary.

It would be great if you could fix the tests themselves to explicitly request that lustre xattrs are restored, as written in the original bug description. This should work for any version of tar that is being tested today, so there shouldn't need to be a conditional check for the tar version in the test.

Comment by Bob Glossman (Inactive) [ 07/Oct/17 ]

fixed by mod for LU-10047

Generated at Sat Feb 10 02:26:31 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.