Skip to content

Commit

Permalink
virt_autotest: Set up the 2 new purchased machines in OSD as ipmi worker
Browse files Browse the repository at this point in the history
poo#167890
  • Loading branch information
guoxuguang committed Nov 14, 2024
1 parent 8c79e02 commit 56de9d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/ipmi_backend_utils.pm
Original file line number Diff line number Diff line change
Expand Up @@ -358,8 +358,9 @@ sub set_grub_on_vh {
#ipmitool to perform server management
sub ipmitool {
my ($cmd) = @_;
my $ipmi_options = $bmwqemu::vars{IPMI_OPTIONS} // '-I lanplus';

my @cmd = ('ipmitool', '-I', 'lanplus', '-H', $bmwqemu::vars{IPMI_HOSTNAME}, '-U', $bmwqemu::vars{IPMI_USER}, '-P', $bmwqemu::vars{IPMI_PASSWORD});
my @cmd = ('ipmitool', split(' ', $ipmi_options), '-H', $bmwqemu::vars{IPMI_HOSTNAME}, '-U', $bmwqemu::vars{IPMI_USER}, '-P', $bmwqemu::vars{IPMI_PASSWORD});
push(@cmd, split(/ /, $cmd));

my ($stdin, $stdout, $stderr, $ret);
Expand Down
1 change: 1 addition & 0 deletions tests/virt_autotest/login_console.pm
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#
# Summary: virt_autotest: the initial version of virtualization automation test in openqa, with kvm and xen support fully
# Maintainer: alice <[email protected]>
# poo#167890

package login_console;
use base 'y2_installbase';
Expand Down

0 comments on commit 56de9d2

Please sign in to comment.