[LU-14281] sanity-sec test 56 fails with 'filefrag /mnt/lustre/d56.sanity-sec/f56.sanity-sec failed' Created: 29/Dec/20  Updated: 12/Jan/21  Resolved: 12/Jan/21

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

Type: Bug Priority: Minor
Reporter: James Nunez (Inactive) Assignee: Sebastien Buisson
Resolution: Fixed Votes: 0
Labels: rhel8.3
Environment:

RHEL8.3, ZFS, DNE


Issue Links:
Related
is related to LU-14149 FIEMAP should set FIEMAP_EXTENT_DATA_... Resolved
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

The patch https://review.whamcloud.com/#/c/40852/LU-14149 llite: fiemap set flags for encrypted files” adds test_56 to sanity-sec. We are seeing this test fail, so far, only for RHEL8.3, ZFS, and DNE.

Looking at the suite_log for the failure at https://testing.whamcloud.com/test_sets/55445adc-5706-47c6-a6ea-9f5df56a0fe4, we see

== sanity-sec test 56: FIEMAP on encrypted file ====================================================== 23:45:05 (1609199105)
10.9.4.110@tcp:/lustre /mnt/lustre lustre rw,flock,user_xattr,lazystatfs,encrypt 0 0
CMD: trevis-10vm1.trevis.whamcloud.com grep -c /mnt/lustre' ' /proc/mounts
Stopping client trevis-10vm1.trevis.whamcloud.com /mnt/lustre (opts:)
CMD: trevis-10vm1.trevis.whamcloud.com lsof -t /mnt/lustre
CMD: trevis-10vm1.trevis.whamcloud.com umount  /mnt/lustre 2>&1
Starting client: trevis-10vm1.trevis.whamcloud.com:  -o user_xattr,flock,test_dummy_encryption trevis-10vm4@tcp:/lustre /mnt/lustre
CMD: trevis-10vm1.trevis.whamcloud.com mkdir -p /mnt/lustre
CMD: trevis-10vm1.trevis.whamcloud.com mount -t lustre -o user_xattr,flock,test_dummy_encryption trevis-10vm4@tcp:/lustre /mnt/lustre
3+0 records in
3+0 records out
3145728 bytes (3.1 MB, 3.0 MiB) copied, 1.26556 s, 2.5 MB/s
/mnt/lustre/d56.sanity-sec/f56.sanity-sec: FIBMAP unsupported
Filesystem type is: bd00bd0
File size of /mnt/lustre/d56.sanity-sec/f56.sanity-sec is 3145728 (3072 blocks of 1024 bytes)
 sanity-sec test_56: @@@@@@ FAIL: filefrag /mnt/lustre/d56.sanity-sec/f56.sanity-sec failed 
  Trace dump:
  = /usr/lib64/lustre/tests/test-framework.sh:6273:error()
  = /usr/lib64/lustre/tests/sanity-sec.sh:4162:test_56()

Logs for more failures at
https://testing.whamcloud.com/test_sets/4c131661-0929-415f-8d4a-71d2c47f97cb
https://testing.whamcloud.com/test_sets/31562510-3417-4b4e-b272-80499b2d4d3a



 Comments   
Comment by Andreas Dilger [ 30/Dec/20 ]

Is there somewhere in that test which is showing the e2fsprogs version installed? It needs to be the Lustre version if the file has anything other than a 1-stripe file.

Since all we care about is whether the "encrypted" flag is set at all, the "lfs setstripe" should be changed to just use "lfs setstripe -c 1 $DIR/$tfile" and then the count of "encrypted" and "encoded" should be ">= 1".

Comment by James Nunez (Inactive) [ 30/Dec/20 ]

The e2fsprogs version looks correct. In node-provisioning for this test session, we see

Package e2fsprogs-1.45.6.wc3-0.el8.x86_64 is already installed.
Comment by Peter Jones [ 04/Jan/21 ]

Sébastien

Could you please advise?

Peter

Comment by Gerrit Updater [ 05/Jan/21 ]

Sebastien Buisson (sbuisson@ddn.com) uploaded a new patch: https://review.whamcloud.com/41130
Subject: LU-14281 tests: fix sanity-sec test_56
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 1937eb9954778bc49fd097ce3db1120b5e769df8

Comment by Gerrit Updater [ 12/Jan/21 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/41130/
Subject: LU-14281 tests: fix sanity-sec test_56 for ZFS
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 98b7df0be162581a143bfd4e60ac921b5d0b7394

Comment by Peter Jones [ 12/Jan/21 ]

Landed for 2.14

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