Skip to contentSkip to conversation

parselogs.py: update network interface related messages

PATCH In review [email protected] 2 participants 4 messages Mar 11, 2020 – Mar 13, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 parselogs.py: update network interface related messages

From: Changqing Li <[email protected]>

along with systemd upgrade, error message related change network interface have changed, update it.

---
 meta/lib/oeqa/runtime/cases/parselogs.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta/lib/oeqa/runtime/cases/parselogs.py +2 -1
index 6444fe8..6e22520 100644
@@ -55,7 +55,8 @@ common_errors = [
     "Failed to read /var/lib/nfs/statd/state: Success",
     "error retry time-out =",
     "logind: cannot setup systemd-logind helper (-61), using legacy fallback",
-    "Error changing net interface name 'eth0' to ",
+    "Failed to rename network interface",
+    "Failed to process device, ignoring: Device or resource busy",
     "Cannot find a map file",
     "[rdrand]: Initialization Failed"
     ]
Signature · 1 line
2.7.4
#1 lore raw

PATCH 2/2 parselogs.py: whitelist more xserver related error

From: Changqing Li <[email protected]>

With default config, these errors always exist for core-image-sato, and xserver-nodm.server start successfully, these errors are not critially.

If set default syslog to rsyslog, all these errors will go into daemon.log and user.log, then test_parselog will fail, so whitelist these errors

---
 meta/lib/oeqa/runtime/cases/parselogs.py | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)
meta/lib/oeqa/runtime/cases/parselogs.py +11 -1
index 6e22520..2a5e5c6 100644
@@ -58,7 +58,15 @@ common_errors = [
     "Failed to rename network interface",
     "Failed to process device, ignoring: Device or resource busy",
     "Cannot find a map file",
-    "[rdrand]: Initialization Failed"
+    "[rdrand]: Initialization Failed",
+    "libGL error:",
+    "[pulseaudio] authkey.c: Failed to open cookie file",
+    "[pulseaudio] authkey.c: Failed to load authentication key",
+    "FBIOPUT_VSCREENINFO failed, double buffering disabled",
+    "xserver-nodm.service: Failed with result 'exit-code'",
+    "xinit: server error",
+    "matchbox-wm: X error warning",
+    "X11 cannot support keycodes above 255"
     ]
 
 video_related = [
@@ -86,6 +94,8 @@ qemux86_common = [
     'tsc: HPET/PMTIMER calibration failed',
     "modeset(0): Failed to initialize the DRI2 extension",
     "glamor initialization failed",
+    "xf86OpenConsole: Switching VT failed",
+    "Fatal server error:",
 ] + common_errors
 
 ignore_errors = {
Signature · 1 line
2.7.4
#2 lore raw

Re: [PATCH 2/2] parselogs.py: whitelist more xserver related error

Quoted 38 lines · On Wed, 2020-03-11 at 10:13 +0800, [email protected] wrote:

From: Changqing Li <[email protected]>

With default config, these errors always exist for core-image-sato, and xserver-nodm.server start successfully, these errors are not critially.

If set default syslog to rsyslog, all these errors will go into daemon.log and user.log, then test_parselog will fail, so whitelist these errors

---
 meta/lib/oeqa/runtime/cases/parselogs.py | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)
meta/lib/oeqa/runtime/cases/parselogs.py +9 -1
index 6e22520..2a5e5c6 100644
@@ -58,7 +58,15 @@ common_errors = [
     "Failed to rename network interface",
     "Failed to process device, ignoring: Device or resource busy",
     "Cannot find a map file",
-    "[rdrand]: Initialization Failed"
+    "[rdrand]: Initialization Failed",
+    "libGL error:",
+    "[pulseaudio] authkey.c: Failed to open cookie file",
+    "[pulseaudio] authkey.c: Failed to load authentication key",
+    "FBIOPUT_VSCREENINFO failed, double buffering disabled",
+    "xserver-nodm.service: Failed with result 'exit-code'",
+    "xinit: server error",
+    "matchbox-wm: X error warning",
+    "X11 cannot support keycodes above 255"
     ]
 
 video_related = [

meta/lib/oeqa/runtime/cases/parselogs.py qemux86_common = [ · line 98

Quoted 5 lines
meta/lib/oeqa/runtime/cases/parselogs.py +2 -0
@@ -86,6 +94,8 @@ qemux86_common = [
     'tsc: HPET/PMTIMER calibration failed',
     "modeset(0): Failed to initialize the DRI2 extension",
     "glamor initialization failed",
+    "xf86OpenConsole: Switching VT failed",
+    "Fatal server error:",

"Fatal server error" means the server didn't start correctly? I doubt we want to whitelist that one.

With several of these you're right, they have been on the console for a while and I'm worried that a) we don't see them in the logs and b) the errors are occurring at all, we should really fix some of them, not "hide" them.

Can we fix any of them rather than whitelisting?

If we really do want to "hide" them, I think at the very least we need open bugs for some of them so we can track and fix the underlying problems. We need the bugs open before any patch can merge.

Cheers,

Richard

#3 lore raw

Re: [PATCH 2/2] parselogs.py: whitelist more xserver related error

Quoted 54 lines · Richard Purdie
Quoted 38 lines · On Wed, 2020-03-11 at 10:13 +0800, [email protected] wrote:

From: Changqing Li <[email protected]>

With default config, these errors always exist for core-image-sato, and xserver-nodm.server start successfully, these errors are not critially.

If set default syslog to rsyslog, all these errors will go into daemon.log and user.log, then test_parselog will fail, so whitelist these errors

---
  meta/lib/oeqa/runtime/cases/parselogs.py | 12 +++++++++++-
  1 file changed, 11 insertions(+), 1 deletion(-)
meta/lib/oeqa/runtime/cases/parselogs.py +9 -1
index 6e22520..2a5e5c6 100644
@@ -58,7 +58,15 @@ common_errors = [
      "Failed to rename network interface",
      "Failed to process device, ignoring: Device or resource busy",
      "Cannot find a map file",
-    "[rdrand]: Initialization Failed"
+    "[rdrand]: Initialization Failed",
+    "libGL error:",
+    "[pulseaudio] authkey.c: Failed to open cookie file",
+    "[pulseaudio] authkey.c: Failed to load authentication key",
+    "FBIOPUT_VSCREENINFO failed, double buffering disabled",
+    "xserver-nodm.service: Failed with result 'exit-code'",
+    "xinit: server error",
+    "matchbox-wm: X error warning",
+    "X11 cannot support keycodes above 255"
      ]
 
  video_related = [

meta/lib/oeqa/runtime/cases/parselogs.py qemux86_common = [ · line 98

Quoted 5 lines
meta/lib/oeqa/runtime/cases/parselogs.py +2 -0
@@ -86,6 +94,8 @@ qemux86_common = [
      'tsc: HPET/PMTIMER calibration failed',
      "modeset(0): Failed to initialize the DRI2 extension",
      "glamor initialization failed",
+    "xf86OpenConsole: Switching VT failed",
+    "Fatal server error:",

"Fatal server error" means the server didn't start correctly? I doubt we want to whitelist that one.

With several of these you're right, they have been on the console for a while and I'm worried that a) we don't see them in the logs and b) the errors are occurring at all, we should really fix some of them, not "hide" them.

Can we fix any of them rather than whitelisting?

Quoted 7 lines

If we really do want to "hide" them, I think at the very least we need open bugs for some of them so we can track and fix the underlying problems. We need the bugs open before any patch can merge.

Cheers,

Richard

Thanks. I will do more research about this.

Quoted 5 lines