[LU-13019] sanity test_60g: usleep: command not found Created: 26/Nov/19  Updated: 19/Sep/20  Resolved: 19/Sep/20

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

Type: Bug Priority: Minor
Reporter: Maloo Assignee: Andreas Dilger
Resolution: Fixed Votes: 0
Labels: easy, tests

Issue Links:
Related
is related to LU-10997 Ubuntu 18 support Resolved
is related to LU-13740 Ubuntu 20.04 LTS release Resolved
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

This issue was created by maloo for Andreas Dilger <adilger@whamcloud.com>

This issue relates to the following test suite run: https://testing.whamcloud.com/test_sets/cbeb78f8-0978-11ea-bbc3-52540065bddc

test_60g failed with the following error:

usleep: command not found

It seems that "usleep" is a command specific to RHEL and does not exist in any package in Ubuntu. It is instead possible to replace "usleep 100" with "sleep 0.0001" (which is available in Ubuntu) to get the same effect (note overhead in calling sleep times this short is the same for both commands):

$ time for i in {0..1000}; do usleep 5000; done

real	0m7.732s
user	0m0.776s
sys	0m1.766s

$ time for i in {0..1000}; do sleep 0.005; done

real	0m7.888s
user	0m0.841s
sys	0m1.937s

VVVVVVV DO NOT REMOVE LINES BELOW, Added by Maloo for auto-association VVVVVVV
sanity test_60g - mkdir failed



 Comments   
Comment by Gerrit Updater [ 11/Sep/20 ]

Andreas Dilger (adilger@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/39889
Subject: LU-13019 tests: replace usleep in test scripts
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 2f6eddf2d6d854ef0d659e5eb7132c501869260f

Comment by Gerrit Updater [ 19/Sep/20 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/39889/
Subject: LU-13019 tests: replace usleep in test scripts
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: ca754ec8b43416d41bbd401bad7d9f93746fb867

Comment by Peter Jones [ 19/Sep/20 ]

Landed for 2.14

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