Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP virt_autotest: Set up the 2 new purchased machines in OSD as ipmi worker #20613

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

guoxuguang
Copy link
Contributor

@guoxuguang guoxuguang commented Nov 12, 2024

Copy link

Great PR! Please pay attention to the following items before merging:

Files matching lib/**.pm:

  • Consider adding or extending unit tests in t/

This is an automatically generated QA checklist based on modified files.

Comment on lines 359 to 364
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));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, that would fix the one specific issue. But I strongly suggest to not replicate this code from os-autoinst but rather use the functions from there directly and as required extend the backend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants