[LU-11503] ha.sh defects: ha.sh: line 399: (1476438773 - start_time) / nr_loops: division by 0 Created: 11/Oct/18  Updated: 04/Jan/19  Resolved: 04/Jan/19

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

Type: Bug Priority: Minor
Reporter: Elena Gryaznova Assignee: Elena Gryaznova
Resolution: Fixed Votes: 0
Labels: None

Epic/Theme: patch
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

several ha.sh defects found during wide ha testing :
1.
I.e. if stop file is created before ha_repeat_mpi_load() "while" is started – we have :

ha.sh: line 399: (1476438773 - start_time) / nr_loops: division by 0 (error token is "nr_loops")

2.
in hard failover mode (pm -0 <node>) some node could be down at the time when ha.sh collects the lustre logs.
In this case we have test passed but returns 255 at the end :
stdout :

/usr/lib64/lustre/tests/ha.sh: 23:18:01 1476487081: ---------------8<---------------
/usr/lib64/lustre/tests/ha.sh: 23:18:01 1476487081: Summary:
/usr/lib64/lustre/tests/ha.sh: 23:18:01 1476487081:     Duration: 44887s
/usr/lib64/lustre/tests/ha.sh: 23:18:01 1476487081:     Loops: 20

stderr :

redpill00: failback: Operation performed successfully.
pdsh@redpill-client08: redpill16: ssh exited with exit code 255
/usr/lib64/lustre/tests/ha.sh: 23:18:05 1476487085: not all logs are dumped! Some nodes are unreachable.
pdsh@redpill-client08: redpill16: ssh exited with exit code 255
/usr/lib64/lustre/tests/ha.sh: 00:45:57 1476492357: Trap ERR triggered by:
/usr/lib64/lustre/tests/ha.sh: 00:45:57 1476492357:     return $rc


 Comments   
Comment by Gerrit Updater [ 04/Jan/19 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/33350/
Subject: LU-11503 tests: fix "division by 0" defect
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: c6928f0e479f1eed7b4c3f2373ac1e71bb812d59

Comment by Peter Jones [ 04/Jan/19 ]

Landed for 2.13

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