From 1198621b600435b4410197f4fd16061bc29e215d Mon Sep 17 00:00:00 2001 From: Victor Hu Date: Tue, 16 Feb 2016 22:29:44 -0500 Subject: [PATCH] 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. --- xCAT-server/lib/xcat/plugins/kvm.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/kvm.pm b/xCAT-server/lib/xcat/plugins/kvm.pm index 45fbf727b..d8c86f2d0 100755 --- a/xCAT-server/lib/xcat/plugins/kvm.pm +++ b/xCAT-server/lib/xcat/plugins/kvm.pm @@ -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};