Project

General

Profile

Actions

action #169915

open

coordination #154768: [saga][epic][ux] State-of-art user experience for openQA

coordination #154771: [epic] Improved test developer user experience

Inconsistent console state in os-autoinst after snapshot reload size:S

Added by ph03nix about 1 month ago. Updated 9 days ago.

Status:
Workable
Priority:
Normal
Assignee:
-
Category:
Feature requests
Target version:
Start date:
2024-11-14
Due date:
% Done:

0%

Estimated time:

Description

Observation

Restoring from snapshot while being in the svirt serial terminal fails with "backend died: Virtio terminal and svirt serial terminal do not support send_key". See e.g.

Steps to reproduce

(untested), extracted from https://openqa.suse.de/tests/15938629/logfile?filename=autoinst-log.txt

  • Cause a test failure while being in select_user_serial_terminal (and possibly also select_serial_terminal)
  • When openQA loads from snapshot the error above should occur

Impact

  • A already failing test will terminate catastrophically
  • Reduces test coverage and would not reveal more test failures in the same test run

Problem

  • openQA terminates prematurely

Suggestions

Workaround

  • No workaround known

Further information


Related issues 2 (1 open1 closed)

Related to openQA Project (public) - action #123664: os-autoinst does not flush serial console buffer on snapshot reloadNew2023-01-25

Actions
Related to Containers and images - action #80776: [jeos] job incomplete auto_review:"(?s)(podman|docker).*Virtio terminal and svirt serial terminal do not support send_key":retryResolvedybonatakis

Actions
Actions #1

Updated by ph03nix about 1 month ago

  • Description updated (diff)
Actions #2

Updated by ph03nix about 1 month ago

Duplicate of #123664

Actions #3

Updated by okurz about 1 month ago

  • Category set to Feature requests
  • Target version set to Ready
Actions #4

Updated by okurz about 1 month ago

  • Related to action #123664: os-autoinst does not flush serial console buffer on snapshot reload added
Actions #5

Updated by okurz about 1 month ago

  • Target version changed from Ready to Tools - Next
Actions #6

Updated by okurz 16 days ago

  • Related to action #80776: [jeos] job incomplete auto_review:"(?s)(podman|docker).*Virtio terminal and svirt serial terminal do not support send_key":retry added
Actions #7

Updated by mkittler 16 days ago

  • Subject changed from inconsistent console state in os-autoinst after snapshot reload to Inconsistent console state in os-autoinst after snapshot reload size:S
  • Description updated (diff)
  • Status changed from New to Workable
Actions #8

Updated by cfconrad 16 days ago ยท Edited

Relation to https://github.com/os-autoinst/os-autoinst/pull/2580

Only my assumptions I did not run any verifications on it... ping me directly if I could help more.

Looks similar as we have a reboot plus snapshot, with an active last_snapshot. But I think it's a different problem.

I think it could be solved with:

  • Moving the select_serial_terminal() at the top of the run function in tests/containers/secret.pm.
  • Or with this patch
diff --git a/autotest.pm b/autotest.pm
index b6fa6717..9cbd71a9 100644
--- a/autotest.pm
+++ b/autotest.pm
@@ -487,6 +487,7 @@ sub rollback_activated_consoles () {
         my $ret = autotest::query_isotovideo('backend_select_console',
             {testapi_console => $last_milestone_console});
         die $ret->{error} if $ret->{error};
+        $selected_console = $last_milestone_console;
     }
     return;
 }

The reason is, that in script_run() we check if the console is serial or not. And it seems that the active console duo the last milestone was one. But the last console in the previous test didn't. So we have some inconsistency here and script_run() calls this Key+XXX thing.
I currently don't have time to dig into it... so plz take it!

Actions #9

Updated by okurz 15 days ago

  • Parent task set to #154771
Actions #10

Updated by okurz 9 days ago

  • Target version changed from Tools - Next to future
Actions

Also available in: Atom PDF