parselogs.py: ignore rdrand initialization failure
PATCH 1/1 parselogs.py: ignore rdrand initialization failure
From: Mingli Yu <[email protected]>
On the system whose cpu doesn't support rdrand,
there comes below message when start rngd service
#systemctl status rngd
[snip]
Feb 25 05:08:14 qemux86-64 rngd[133]: [rdrand]: Initialization Failed [snip]
Actually the failed message doesn't matter as it
only indicates one entropy source as rdrand fails
to initialize and won't affect rngd function.
So add to ignore the failure message to fix below
error during do_testimage:
NOTE: ======================================================================
NOTE: FAIL: test_parselogs (parselogs.ParseLogsTest)
NOTE: ----------------------------------------------------------------------
NOTE: Traceback (most recent call last):
File "/buildarea/layers/oe-core/meta/lib/oeqa/core/decorator/__init__.py", line 36, in wrapped_f
return func(*args, **kwargs)
File "/buildarea/layers/oe-core/meta/lib/oeqa/runtime/cases/parselogs.py", line 370, in test_parselogs
self.assertEqual(errcount, 0, msg=self.msg)
AssertionError: 1 != 0 : Log: /buildarea/tmp/work/qemux86-64-wrs-linux/wrlinux-image-std/1.0-r5/target_logs/daemon.log Central error: 2020-03-06T09:45:12.774286+00:00 qemux86-64 rngd[134]: [rdrand]: Initialization Failed
Reference: https://github.com/nhorman/rng-tools/pull/84
--- meta/lib/oeqa/runtime/cases/parselogs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
meta/lib/oeqa/runtime/cases/parselogs.py +2 -1
@@ -56,7 +56,8 @@ common_errors = [ "error retry time-out =", "logind: cannot setup systemd-logind helper (-61), using legacy fallback", "Error changing net interface name 'eth0' to ", - "Cannot find a map file" + "Cannot find a map file", + "[rdrand]: Initialization Failed" ] video_related = [
Signature · 1 line
2.7.4
qemux86_64 is used extensively on the autobuilder, so what are the circumstances where this issue arises?
Alex
Quoted 66 lines · On Fri, 6 Mar 2020 at 12:25, <[email protected]> wrote:
From: Mingli Yu <[email protected]>
On the system whose cpu doesn't support rdrand, there comes below message when start rngd service
#systemctl status rngd
[snip]Feb 25 05:08:14 qemux86-64 rngd[133]: [rdrand]: Initialization Failed [snip]Actually the failed message doesn't matter as it only indicates one entropy source as rdrand fails to initialize and won't affect rngd function.
So add to ignore the failure message to fix below
error duringdo_testimage:
NOTE:
======================================================================
NOTE: FAIL:test_parselogs(parselogs.ParseLogsTest)
NOTE:
----------------------------------------------------------------------
NOTE: Traceback (most recent call last):
File
"/buildarea/layers/oe-core/meta/lib/oeqa/core/decorator/__init__.py", line 36, inwrapped_f
returnfunc(*args, **kwargs)
File
"/buildarea/layers/oe-core/meta/lib/oeqa/runtime/cases/parselogs.py", line 370, intest_parselogs
self.assertEqual(errcount, 0, msg=self.msg)
AssertionError: 1 != 0 : Log:
/buildarea/tmp/work/qemux86-64-wrs-linux/wrlinux-image-std/1.0-r5/target_logs/daemon.log Central error: 2020-03-06T09:45:12.774286+00:00 qemux86-64 rngd[134]:
[rdrand]: Initialization FailedReference: https://github.com/nhorman/rng-tools/pull/84
Signed-off-by Mingli Yu <[email protected]>--- meta/lib/oeqa/runtime/cases/parselogs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)meta/lib/oeqa/runtime/cases/parselogs.py +2
-1@@ -56,7 +56,8 @@ common_errors = [ "error retry time-out =", "logind: cannot setup systemd-logind helper (-61), using legacy fallback", "Error changing net interface name 'eth0' to ", - "Cannot find a map file" + "Cannot find a map file", + "[rdrand]: Initialization Failed" ]
video_related= [
--
2.7.4--
_______________________________________________
Openembedded-core mailing list [email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core