Project

General

Profile

Actions

action #110392

closed

o3 logreports - Can't open file "/var/lib/openqa/testresults/.../vars.json" size:M

Added by tinita over 2 years ago. Updated over 2 years ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
Regressions/Crashes
Target version:
Start date:
Due date:
2022-05-13
% Done:

0%

Estimated time:

Description

We see the following errors on o3:

# /var/log/openqa
[2022-04-27T14:10:35.439009Z] [error] [mYElw9YAf65U] Can't open file
"/var/lib/openqa/testresults/02319/02319342-opensuse-Tumbleweed-DVD-x86_64-Buildilausuch_os-autoinst-distri-opensuse
_14706-containers_host_helm@ilausuch_os-autoinst-distri-opensuse_unify_helm_tests@64bit/vars.json": No such file or
directory at /usr/share/openqa/script/../lib/OpenQA/Schema/Result/Jobs.pm line 1871.

Acceptance criteria

  • AC1: Investigation results doesn't throw any errors (or log any messages) if vars.json doesn't exist

Suggestions

  • The problem happens in the code my @files = map { Mojo::File->new($_->result_dir(), 'vars.json')->slurp } ($prev, $self); within the "investigate" subroutine. openQA should simply gracefully handle non-existance of vars.json
  • Handle error gracefully, e.g. catching exception and skip all parts of investigation which requires data from vars.json. Likely as simple as wrapping the line in an eval, same as the next line
Actions

Also available in: Atom PDF