Project

General

Profile

Actions

action #58871

closed

[spvm][kernel][functional] Shutdown check not implemented for spvm backend

Added by pcervinka over 4 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
Spike/Research
Target version:
QE Kernel - QE Kernel Done
Start date:
2019-10-30
Due date:
% Done:

0%

Estimated time:
Difficulty:
medium

Description

spvm doesn't fully support poweroff action.
When is called power_action('poweroff') it will fail on assert_shutdown($args->{timeout} - $args->{soft_timeout}).

Example:
http://10.100.12.105/tests/3383#step/shutdown_ltp/39

It is using backend function is_shutdown with placebo effect:
https://github.com/os-autoinst/os-autoinst/blob/447dab862096c5fb871fe06f61c3e5249ec0d5c1/backend/spvm.pm#L90

sub is_shutdown {
    my ($self) = @_;
    # TODO
    return 0;
}

Implement backend state check:

padmin@vugava:~$ pvmctl  lpar list -i id=3
Logical Partitions
+----------+----+---------+----------+-----------+---------------+--------+-----+-----+
|   Name   | ID |  State  |   RMC    |    Env    |    Ref Code   |  Mem   | CPU | Ent |
+----------+----+---------+----------+-----------+---------------+--------+-----+-----+
| vugava-1 | 3  | running | inactive | AIX/Linux | Linux ppc64le | 125952 |  1  |     |
+----------+----+---------+----------+-----------+---------------+--------+-----+-----+
padmin@vugava:~$ pvmctl  lpar list -i id=3
Logical Partitions
+----------+----+---------------+----------+-----------+----------+--------+-----+-----+
|   Name   | ID |     State     |   RMC    |    Env    | Ref Code |  Mem   | CPU | Ent |
+----------+----+---------------+----------+-----------+----------+--------+-----+-----+
| vugava-1 | 3  | not activated | inactive | AIX/Linux | 00000000 | 125952 |  1  |     |
+----------+----+---------------+----------+-----------+----------+--------+-----+-----+

Expected result:
It is possible to shutdown and check lpar state.

Actions #1

Updated by pcervinka over 4 years ago

  • Project changed from 46 to openQA Tests
  • Category set to Spike/Research
  • Difficulty set to medium
Actions #4

Updated by pcervinka over 4 years ago

  • Description updated (diff)
Actions #5

Updated by pcervinka over 4 years ago

  • Status changed from New to In Progress
  • Priority changed from Normal to High
  • Target version changed from 454 to 445
Actions #7

Updated by pcervinka over 4 years ago

  • Status changed from In Progress to New

PR merged.

Actions #8

Updated by jlausuch over 4 years ago

  • Status changed from New to Resolved
Actions #9

Updated by jlausuch over 4 years ago

  • Target version changed from 445 to 457
Actions #10

Updated by pcervinka over 3 years ago

  • Target version changed from 457 to QE Kernel Done
Actions

Also available in: Atom PDF