2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-07-29 07:41:31 +00:00

When doing rpower for kvm hosts, need to call the get_node_info()

function to get properties of the hypervisor.

This is to address the issue when running diskless VMs on power.
In the build_oshash() function, if the properties are not set
then the cpumodel will be undefined and useserial will be set,
causing problems when powering on diskless VMs.
This commit is contained in:
Victor Hu
2016-02-16 22:29:44 -05:00
parent f65a71b310
commit 1198621b60

View File

@@ -3873,7 +3873,7 @@ sub dohyp {
return 1, "General error establishing libvirt communication";
}
}
if (($command eq 'mkvm' or $command eq 'chvm') and $hypconn) {
if (($command eq 'mkvm' or $command eq 'chvm' or $command eq 'rpower') and $hypconn) {
my $nodeinfo = $hypconn->get_node_info();
if (exists($nodeinfo->{model})) {
$confdata->{$hyp}->{cpumodel} = $nodeinfo->{model};