[LU-10344] sanity-hsm test_24a: atime is not less than mtime Created: 07/Dec/17  Updated: 07/May/19  Resolved: 26/Feb/18

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

Type: Bug Priority: Critical
Reporter: Mikhail Pershin Assignee: John Hammond
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Related
is related to LU-8950 tests: sanity-hsm: use make_custom_fi... Resolved
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

this test is failing time to time in Maloo:

sanity-hsm test_24a: @@@@@@ FAIL: atime 1512175765 is not less than mtime 1512175765 

https://testing.hpdd.intel.com/sub_tests/71f642c0-d7a6-11e7-8027-52540065bddc
https://testing.hpdd.intel.com/sub_tests/99484bf4-d7e0-11e7-9840-52540065bddc
https://testing.hpdd.intel.com/sub_tests/cfab05ee-d5f4-11e7-9840-52540065bddc

Info required for matching: sanity-hsm 24a



 Comments   
Comment by John Hammond [ 07/Dec/17 ]

First seen on 2017-11-29 14:53:15 when testing in a full session on
v2_10_55_0-70-g35531ce. This is almost certainly due to patch https://review.whamcloud.com/24704 "LU-8950 tests: standardize file creation in sanity-hsm". Files in the /mnt/lustre are now being created on the CT node (via do_facet $SINGLEAGT dd ...) whereas before they were created on the first client node (via dd ...). This breaks the timing logic in sanity-hsm test_24a() and possibly others.

Comment by Gerrit Updater [ 07/Dec/17 ]

John L. Hammond (john.hammond@intel.com) uploaded a new patch: https://review.whamcloud.com/30433
Subject: LU-10344 test: create files on local node in sanity-hsm
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 5aaad227a1030228827d97795f19a60654a7c8c5

Comment by Quentin Bouget [ 07/Dec/17 ]

What if there is no client locally availalbe?
create_file() was implemented so that it would be easy to create files on remote clients (not just the local one), if the interest of not having any local client is arguable, being able to easily create files on remote client is definitely valuable.

I believe the issue lies in the test itself. One shouldn't use:

sleep 1
echo >> file

to change the atime/ctime/mtime of a file to begin with. touch provides options just to do that, without the unreliable delay.

Comment by John Hammond [ 07/Dec/17 ]

> What if there is no client locally availalbe?

Every sanity* test script assumes that it is running on a Lustre client.

Comment by Bob Glossman (Inactive) [ 12/Dec/17 ]

another on master:
https://testing.hpdd.intel.com/test_sets/fc1f2ab2-df07-11e7-9c63-52540065bddc

Comment by Gerrit Updater [ 12/Dec/17 ]

Quentin Bouget (quentin.bouget@cea.fr) uploaded a new patch: https://review.whamcloud.com/30496
Subject: LU-10344 tests: fix atime in sanity-hsm/test_24a
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: b8a884c642802b0f15788defb5b230957809d6c2

Comment by Jinshan Xiong (Inactive) [ 12/Dec/17 ]

another one: https://testing.hpdd.intel.com/test_sets/7f7214fe-df4b-11e7-9c63-52540065bddc

Comment by Gerrit Updater [ 13/Dec/17 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/30433/
Subject: LU-10344 test: create files on local node in sanity-hsm
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 11aae875be5fb30a88281ab47e491b75447b299b

Comment by Gerrit Updater [ 26/Feb/18 ]

Minh Diep (minh.diep@intel.com) uploaded a new patch: https://review.whamcloud.com/31421
Subject: LU-10344 test: create files on local node in sanity-hsm
Project: fs/lustre-release
Branch: b2_10
Current Patch Set: 1
Commit: 77cd481a16f266e0b49793315c20b12d07711a3a

Comment by Minh Diep [ 26/Feb/18 ]

reopen for LTS port

Comment by Gerrit Updater [ 02/Mar/19 ]

James Simmons (uja.ornl@yahoo.com) uploaded a new patch: https://review.whamcloud.com/34365
Subject: LU-10344 test: re-enable sanity test 103a for Ubuntu
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 4e7396e327ceea2b7cdd43fcf1ec353b7d785e9b

Comment by James A Simmons [ 02/Mar/19 ]

Typo with last patch. Sorry.

Comment by Gerrit Updater [ 07/May/19 ]

James Simmons (uja.ornl@yahoo.com) uploaded a new patch: https://review.whamcloud.com/34819
Subject: LU-10344 test: re-enable sanity test 103a for Ubuntu
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: bf2f093f3a4892467781da0494d4d69256cdc33f

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