Project

General

Profile

Actions

action #64854

closed

coordination #39719: [saga][epic] Detection of "known failures" for stable tests, easy test results review and easy tracking of known issues

coordination #62420: [epic] Distinguish all types of incompletes

qemu-img error message is incorrectly tried to be parsed as JSON auto_review:"malformed JSON string"

Added by okurz about 4 years ago. Updated about 4 years ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
Regressions/Crashes
Target version:
Start date:
2020-03-26
Due date:
% Done:

0%

Estimated time:

Description

Observation

https://openqa.opensuse.org/tests/1214224 is incomplete with

[2020-03-26T10:30:40.005 CET] [debug] running /usr/bin/qemu-img info --output=json openSUSE_Krypton.x86_64-5.12.80-Build16.72.iso
[2020-03-26T10:30:40.013 CET] [debug] qemu-img: Could not open 'openSUSE_Krypton.x86_64-5.12.80-Build16.72.iso': Could not open 'openSUSE_Krypton.x86_64-5.12.80-Build16.72.iso': No such file or directory
[2020-03-26T10:30:40.013 CET] [debug] Backend process died, backend errors are reported below in the following lines:
malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "qemu-img: Could not ...") at /usr/lib/perl5/vendor_perl/5.26.1/Mojo/JSON.pm line 39.

while the root cause of the iso image not being existant is one issue this ticket should focus on incorrect parsing of a simple error string as JSON.

Acceptance criteria

  • AC1: An error string from qemu-img is not causing an error trying to parse as JSON

Suggestions

  • Check where the output of qemu-img is gathered and how it could end up being parsed as JSON
  • Ensure that only valid JSON output if any is tried to be parsed as JSON, probably in the qemu backend
  • Ensure the error message is output in a way that is readable by human: As the output of qemu-img is already correctly shown in the output maybe it is as easy as not trying to parse anything and return with an error code without trying to do more
Actions

Also available in: Atom PDF