Project

General

Profile

Actions

action #26886

closed

[tools][s390x-kvm] investigate and improve 'assert_shutdown' function in testapi

Added by mgriessmeier over 6 years ago. Updated over 6 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Feature requests
Target version:
-
Start date:
2017-10-19
Due date:
% Done:

0%

Estimated time:

Description

[Observation]

In testapi.pm, 1481 sub assert_shutdown behaves weird on s390x-kvm and can probably also cause race-conditions on other architectures
On s390x-kvm we see following behaviour:

  • After typing 'poweroff', we execute query_isotovideo('backend_is_shutdown') once, which then establishes a ssh connection to our hypervisor (s390p8) and run some virsh command to find out the state of the vm
  • This is done once during the shutdown and returns 0 which is fine because the machine is not shut down yet, therefore the while-loop
  • however, after the system has "reached target shutdown", it is stuck and there is no additional iteration in this loop done (it should actually check once every second), it times out after two hours

s390x-kvm: https://openqa.suse.de/tests/1224632

Weird thing is, that it works on zkvm, which is basically identically to s390x-kvm...

zkvm: https://openqa.suse.de/tests/1224633

After some debugging together with riafarov, we decided to do a simple workaround in the tests and leave this backend improvement to the tools team
If you have any further questions on this, let us know


Related issues 1 (0 open1 closed)

Related to openQA Tests - action #25638: [sles][functional][s390x] test fails in shutdown: VNC stall detected, needs to be investigatedResolvedmgriessmeier2017-09-282017-10-25

Actions
Actions

Also available in: Atom PDF