Project

General

Profile

action #80474

Implement check for emergency shell in case bootloader is stuck

Added by syrianidou_sofia 11 months ago. Updated 11 months ago.

Status:
New
Priority:
Low
Assignee:
-
Target version:
Start date:
2020-11-26
Due date:
% Done:

0%

Estimated time:

Description

In the scenario where the bootloader screen is stuck, the worker will detect stall and enter post_fail_hook. During post_fail_hook, it has occurred that select_console('root') induced the emergency shell. In this case, there is no check that will redirect any logs to the serial console, like handle_emergency function.

We cannot add the check in activate_console , as the function is called repeatedly in many tests.

A solution would be to find out which step of the activate_console function is triggering the emergency shell and see if we can implement a check for stuck bootloader screen in wait_boot_past_bootloader or post_fail_hook, try to trigger emergency shell and if successful, collect logs.

Failure example:
https://openqa.suse.de/tests/4922078

It may not be easy to reproduce the scenario, as it is sporadic for SUTs with RAID0 root partition, during firstboot.
https://bugzilla.suse.com/show_bug.cgi?id=1178515

History

#1 Updated by riafarov 11 months ago

  • Target version set to future

Also available in: Atom PDF