[LU-7301] change test-framework to exclude the cleanup between the tests suites Created: 15/Oct/15  Updated: 22/Jun/16  Resolved: 22/Jun/16

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

Type: Bug Priority: Major
Reporter: Chennaiah Palla (Inactive) Assignee: Jian Yu
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Related
is related to LU-7094 object UID not being set correctly fo... Resolved
is related to LU-7548 Missing --mods option of e2fsck in te... Resolved
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

each test suite runs check_and_cleanup_lustre () at the end;
check_and_cleanup () does the cleanup in the following manner :

[ -n "$DIR" ] && rm -rf $DIR/[Rdfs][0-9]*

The idea is to split "check" and "cleanup" and force test-framework to do "check" by lfsck, and exclude cleanup if required.



 Comments   
Comment by Andreas Dilger [ 15/Oct/15 ]

There is a patch I submitted to run LFSCK after every subtest: http://review.whamcloud.com/16237

Note that this isn't wholly implementing your idea, but could be used as a starting point for this. It only runs the LFSCK checking of the filesystem. After unmount the filesystems it should also run a local fsck check on each device.

Comment by Gerrit Updater [ 20/Oct/15 ]

Chennaiah Palla (chennaiah.palla@seagate.com) uploaded a new patch: http://review.whamcloud.com/16887
Subject: LU-7301 test: do cleanup only if required
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 5df479747f12af3d2bcb17bc37aca9032fe7d8c2

Comment by Gerrit Updater [ 21/Dec/15 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/16237/
Subject: LU-7301 tests: delete old lfsck tests
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 5a3dfc2b5d9027ec04774cda69ef01d5026f1740

Comment by Peter Jones [ 10/Jun/16 ]

Jian

Could you please review this change?

Thanks

Peter

Comment by Gerrit Updater [ 22/Jun/16 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/16887/
Subject: LU-7301 test: do cleanup only if required
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: ef50ce8496e4ead67c795c9db11fa9c0d58ef844

Comment by Jian Yu [ 22/Jun/16 ]

Patch landed to master branch for Lustre 2.9.0.

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