[LU-15235] sanity test_56od: '/usr/bin/lfs find /mnt/lustre/d56od.sanity -newerbb /mnt/lustre/f56od.sanity.ref ! -newerbb /mnt/lustre/f56od.sanity.negref -type d' wrong: found 5, expected 4 Created: 16/Nov/21  Updated: 24/Aug/23  Resolved: 24/Aug/23

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

Type: Bug Priority: Minor
Reporter: Maloo Assignee: Andreas Dilger
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Related
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/730cff32-7cca-48db-b3a5-45e1abf75c4e

test_56od failed with the following error:

'/usr/bin/lfs find /mnt/lustre/d56od.sanity -newerbb /mnt/lustre/f56od.sanity.ref ! -newerbb /mnt/lustre/f56od.sanity.negref -type d' wrong: found 5, expected 4

VVVVVVV DO NOT REMOVE LINES BELOW, Added by Maloo for auto-association VVVVVVV
sanity test_56od - '/usr/bin/lfs find /mnt/lustre/d56od.sanity -newerbb /mnt/lustre/f56od.sanity.ref ! -newerbb /mnt/lustre/f56od.sanity.negref -type d' wrong: found 5, expected 4



 Comments   
Comment by Cliff White (Inactive) [ 19/Apr/22 ]

Appear to have hit this again in 2.15 testing. Not much data available in the test logs, is this a possible clean-up issue? 

Comment by Andreas Dilger [ 27/Oct/22 ]

This test is exercising functionality that does not exist in older branches. The patch was landed to master in commit v2_13_53-145-g186b97e68a, and never ported to b2_12. It looks like it has an appropriate MDS version check, but it looks like the "btime_supported" check is broken in some way so it is still being run against unsupported servers (i.e. 2.12.9 or 2.10.8):
https://testing.whamcloud.com/test_sets/7325910f-1ac5-4762-bfeb-1abe5069c8dc
https://testing.whamcloud.com/test_sets/f8522b34-7bc2-48ce-ab9a-1d624bb96203
https://testing.whamcloud.com/test_sets/37d33000-82b7-4db7-ab63-0f5545df344c
https://testing.whamcloud.com/test_sets/c89556e1-3d0e-4819-8467-f321b8098dc4
https://testing.whamcloud.com/test_sets/01403241-7b5e-48fe-889e-502108f874e1
https://testing.whamcloud.com/test_sets/1b89faae-8df3-4c23-8963-1957b0f8a6e6

It looks like the "btime_supported" function is only verifying that the client's "lfs find" command has the -btime option, and not really checking if it returns something useful, so I think that whole function should be removed and just stick with the MDS version check. I don't think the client version check is useful either at this point, since any client that is running this test will have this patch, so it can also be removed.

Also note that test_56oc was "correctly" skipping old MDS versions because it was trying to run the btime_supported() function that was defined after test_56oc, so this would always return false and depend only on the version check. That bug-that-is-fixing-the-test will also be addressed by removing this check from test_56oc.

Comment by Gerrit Updater [ 05/Jul/23 ]

"Andreas Dilger <adilger@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/51580
Subject: LU-15235 tests: skip sanity/56od in interop
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 8add332bda0c58d9908478b9263e8aea46edc135

Comment by Gerrit Updater [ 24/Aug/23 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/51580/
Subject: LU-15235 tests: skip sanity/56od in interop
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: be8865ee16b97866d1ee9b9f644295dafa19461c

Comment by Peter Jones [ 24/Aug/23 ]

Landed for 2.16

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