[LU-15316] sanity test_255a: dmidecode: command not found Created: 03/Dec/21  Updated: 09/Mar/22

Status: Open
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.15.0
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Maloo Assignee: WC Triage
Resolution: Unresolved Votes: 0
Labels: None
Environment:

SLES15 SP2


Issue Links:
Duplicate
duplicates LU-13977 sanity test_255a uses integer compari... Resolved
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

This issue was created by maloo for jianyu <yujian@whamcloud.com>

This issue relates to the following test suite run: https://testing.whamcloud.com/test_sets/4c203f3a-8cc4-4cea-b56e-a9d46c8222ec

test_255a failed with the following error:

/usr/lib64/lustre/tests/sanity.sh: line 21421: [: -lt: unary operator expected
/usr/lib64/lustre/tests/test-framework.sh: line 1385: dmidecode: command not found
 sanity test_255a: @@@@@@ FAIL: Speedup with willread is less than  .29%, got .58% 

VVVVVVV DO NOT REMOVE LINES BELOW, Added by Maloo for auto-association VVVVVVV
sanity test_255a - Speedup with willread is less than .29%, got .58%



 Comments   
Comment by Andreas Dilger [ 28/Jan/22 ]

+1 https://testing.whamcloud.com/test_sets/2a1d1b6b-9cd7-4b69-8360-c38c83b162de

Average uncached read: 23.47
Average speedup with OSS cached read:  30.55 = +30.16%
Average speedup with ladvise willread:  30.92 = +31.74%
/usr/lib64/lustre/tests/sanity.sh: line 19619: [: 15.27: integer expression expected
/usr/lib64/lustre/tests/test-framework.sh: line 1349: dmidecode: command not found
 sanity test_255a: @@@@@@ FAIL: Speedup with willread is less than  15.27%, got 30.92% 

It looks like the math is failing because of the use of decimal numbers, even though the test itself is passing.

The test is then trying to use either "virt-what" or "dmidecode" to decide if this is a VM or not. Either or both of the virt-what or dmidecode RPMs needs to be installed for that, but this is secondary to the actual failure.

Not sure why this started failing now. It looks like it has always been failing, but "dmidecode" or "virt-what" were causing the error to be ignored:

Average uncached read: 15.93
Average speedup with OSS cached read:  22.10 = +38.73%
Average speedup with ladvise willread:  21.49 = +34.90%
/usr/lib64/lustre/tests/sanity.sh: line 19613: [: 11.05: integer expression expected
running in VM 'kvm', ignore error
 sanity test_255a: @@@@@@ IGNORE (env=kvm): Speedup with willread is less than  11.05%, got 21.49% 
Comment by Gerrit Updater [ 28/Jan/22 ]

"Andreas Dilger <adilger@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/46350
Subject: LU-15316 tests: use integers in sanity test_255a
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: a96a4a5894bef714b19086fa09918080f05a7674

Comment by Gerrit Updater [ 05/Mar/22 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/46350/
Subject: LU-15316 tests: use integers in sanity test_255a
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: c185410b0007f841962979f8d6c367db9c48c2a3

Comment by Andreas Dilger [ 09/Mar/22 ]

There likely also needs to be a "dmidecode" package installed on some of the test nodes/images to solve this completely, but it is worthwhile to fix the actual test cases first if this isn't too disruptive.

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