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 15, 2024
1 parent 8c79e02 commit 985d7c5
Showing 1 changed file with 2 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

0 comments on commit 985d7c5

Please sign in to comment.