]> xenbits.xensource.com Git - osstest.git/commit
PDU/IPMI: Be less aggressive with IPMI commands
authorAnthony PERARD <anthony.perard@citrix.com>
Fri, 10 Mar 2023 17:07:21 +0000 (17:07 +0000)
committerAnthony PERARD <anthony.perard@citrix.com>
Wed, 15 Mar 2023 17:49:54 +0000 (17:49 +0000)
commited1d8de4f57deb5a04d28de36420346c6eb0c8d1
tree5fadb03178aecd75dda2cca0f2699d4bac72fbcd
parenteae5fb4bcbdb1a7f26b7836700f63781c76fa9cf
PDU/IPMI: Be less aggressive with IPMI commands

The machine rimava0 doesn't power off or power on when we keep doing
"power status" then "power off" ipmi command without waiting.

Currently, osstest does:
    loop
ipmitool power status
ipmitool power off
sleep 1

This loop goes on forever, the machine never change power state.
Adding some wait in between both command works.

While here, test for timeout just after a status check instead of
sending the `power off` command again which we would never check the
result of.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Reviewed-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Osstest/PDU/ipmi.pm