Project

General

Profile

Actions

action #10806

closed

Opening needle editor on a screenshot where an already deleted needle is part of candidate needles gives error 500

Added by lnussel about 8 years ago. Updated over 7 years ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
Regressions/Crashes
Target version:
-
Start date:
2016-02-18
Due date:
% Done:

0%

Estimated time:
1.00 h

Description

observation

Opening needle editor from
https://openqa.opensuse.org/tests/242805#step/grub_test/1
yields puking trex and error messages in log:

[Mon Aug 15 14:15:49 2016] [885:debug] GET "/tests/242805/modules/grub_test/steps/1/edit"
[Mon Aug 15 14:15:49 2016] [885:debug] Routing to controller "OpenQA::WebAPI::Controller::Step" and action "edit"
[Mon Aug 15 14:15:49 2016] [885:debug] reading /var/lib/openqa/testresults/00242805-opensuse-42.2-DVD-ppc64le-Build0107-boot_to_snapshot@ppc64le/details-grub_test.json
[Mon Aug 15 14:15:49 2016] [885:warn] /var/lib/openqa/share/tests/opensuse/products/opensuse/needles/grub_test-grub2-OWF-20160815.json: No such file or directory
[Mon Aug 15 14:15:49 2016] [885:error] Could not find needle: grub_test-grub2-OWF-20160815 for opensuse 42.2
[Mon Aug 15 14:15:49 2016] [885:error] fileparse(): need a valid pathname at /usr/share/openqa/script/../lib/OpenQA/WebAPI/Controller/Step.pm line 179.

[Mon Aug 15 14:15:49 2016] [885:debug] Template "exception.production.html.ep" not found
[Mon Aug 15 14:15:49 2016] [885:debug] Template "exception.html.ep" not found
[Mon Aug 15 14:15:49 2016] [885:debug] Rendering template "mojo/exception.html.ep"
[Mon Aug 15 14:15:49 2016] [885:debug] 500 Internal Server Error (0.029532s, 33.862/s)
[Mon Aug 15 14:15:50 2016] [886:debug] POST "/api/v1/jobs/242883/status"

steps to reproduce

problem

The needle got deleted after the test ran. The needle editor should not crash but probably just ignore this needle from being parsed.

suggestions

  • Handle non-existing needles gracefully

further details

related to https://progress.opensuse.org/issues/13192

original content from lnussel:
Looks like needles that got cleaned up are not shown at all in such screens:
https://openqa.opensuse.org/tests/97538/modules/bootloader/steps/1

The needle editor even throws. The no longer available needles should be listed but marked as no longer existing instead

workaround

Retrigger job which should cause the current set of needles loaded and then again open the needle editor on only present candidates.


Related issues 1 (0 open1 closed)

Has duplicate openQA Project - action #13194: Opening needle editor on a screenshot where an already deleted needle is part of candidate needles gives error 500Resolvedmkittler2016-08-15

Actions
Actions

Also available in: Atom PDF