Before we try anything with IPMI (if provided) or the PDU, try
rebooting with ssh.
I think this will dramatically reduce the rate at which we power cycle
our test hosts.
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
# to work. $setup and $await should tolerate this situation; in
# particular $await must only succeed if the host really did reboot
# into the boot environment that $await expects.
- foreach my $approach (@{ $ho->{PowerApproaches} }) {
- logm("power: rebooting $ho->{Name} (using $approach->{Name})");
+ my $ssh = {
+ Name => 'SSH',
+ MethObjs => power_cycle_parse_method($ho, 'ssh'),
+ };
+ foreach my $approach ($ssh, @{ $ho->{PowerApproaches} }) {
+ logm("power: trying to reboot $ho->{Name} (using $approach->{Name})");
if (eval {
power_approach_invoke($ho, $approach, 0);
$setup->();