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 #1

Updated by tinita over 2 years ago

  • Copied from action #110389: o3 logreports - fatal: ambiguous argument: unknown revision or path not in the working tree size:M added
Actions #2

Updated by livdywan over 2 years ago

  • Subject changed from o3 logreports - Can't open file "/var/lib/openqa/testresults/.../vars.json" to o3 logreports - Can't open file "/var/lib/openqa/testresults/.../vars.json" size:M
  • Description updated (diff)
  • Status changed from New to Workable
Actions #3

Updated by livdywan over 2 years ago

  • Copied from deleted (action #110389: o3 logreports - fatal: ambiguous argument: unknown revision or path not in the working tree size:M)
Actions #4

Updated by livdywan over 2 years ago

  • Blocks action #110389: o3 logreports - fatal: ambiguous argument: unknown revision or path not in the working tree size:M added
Actions #5

Updated by tinita over 2 years ago

  • Status changed from Workable to In Progress
  • Assignee set to tinita
Actions #6

Updated by openqa_review over 2 years ago

  • Due date set to 2022-05-13

Setting due date based on mean cycle time of SUSE QE Tools

Actions #7

Updated by tinita over 2 years ago

https://github.com/os-autoinst/openQA/pull/4628 Deal with cleaned up vars.json on investigation tab

Actions #8

Updated by tinita over 2 years ago

  • Status changed from In Progress to Feedback
Actions #10

Updated by tinita over 2 years ago

  • Status changed from Feedback to Resolved

Should be resolved then

Actions #11

Updated by livdywan over 2 years ago

  • Blocks deleted (action #110389: o3 logreports - fatal: ambiguous argument: unknown revision or path not in the working tree size:M)
Actions

Also available in: Atom PDF