Project

General

Profile

Actions

action #58127

closed

[functional][y][timeboxed:16h] Fix shutdown from GUI on s390x backend

Added by oorlov about 5 years ago. Updated almost 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Bugs in existing tests
Target version:
SUSE QA (private) - Milestone 29
Start date:
2019-10-14
Due date:
2019-11-05
% Done:

0%

Estimated time:
Difficulty:

Description

Observation

shutdown module is marked as failed while shutting down with GUI on machine with s390x backend (e.g. https://openqa.suse.de/tests/3458377), though according to logs the system is shut down.

At the same time the test module passes correctly while shutting down with console. The appropriate workaround is applied for s390x backend in power_action_utils.pm module:

if (check_var('BACKEND', 's390x')) {
   record_soft_failure('poo##58127 - Temporary workaround, because shutdown module is marked as failed on s390x backend when shutting down from GUI.');
   select_console 'root-console';
   type_string "$action\n";
}

Task

  1. Investigate why the test module is marked as 'failed';
  2. Apply the solution to shut down from GUI without having errors;
  3. Remove the workaround.

Main goal is to assure that VM is off and finish the test, we should check the old code (ask Matthias for the support).
Here is PR with temporary solution https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/8635/files

NOTE: The solution may require adding is_shutdown function to os-autoinst/backend/s390x.pm as it does not exist currently for the backend, though it is implemented for almost all other backends. This is the right way to check whether the system is shut down or not.
One of the possible ways to check the system to be shutdown is to check logs in x3270 console:

console('x3270')->expect_3270(  
   output_delim => qr/.*SIGP stop.*/,   
   timeout      => 30   
);

Related issues 1 (0 open1 closed)

Related to openQA Tests (public) - action #57743: [functional][y][timeboxed:8h] test tries to reboot when poweroff is given in shutdownResolvedoorlov2019-10-072019-10-22

Actions
Actions

Also available in: Atom PDF