action #58871
Updated by pcervinka over 5 years ago
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.