Have kvm update vm.memory if chvm is called
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16538 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
aba2b94d5c
commit
aedb671f1b
@ -1786,6 +1786,10 @@ sub chvm {
|
||||
if ($@ =~ /cannot set memory higher/) {
|
||||
xCAT::SvrUtils::sendmsg([1,"Unable to increase memory beyond current capacity (requires VM to be powered down to change)"],$callback,$node);
|
||||
}
|
||||
} else {
|
||||
if ($confdata->{vm}->{$node}->[0]->{memory} and $confdata->{vm}->{$node}->[0]->{memory} != $memory) {
|
||||
$updatetable->{vm}->{$node}->{memory}=$memory;
|
||||
}
|
||||
}
|
||||
$vmxml=$dom->get_xml_description();
|
||||
if ($vmxml) {
|
||||
@ -1803,6 +1807,9 @@ sub chvm {
|
||||
foreach (@currmem) {
|
||||
$_->setData(getUnits($memory,"M",1024));
|
||||
}
|
||||
if ($confdata->{vm}->{$node}->[0]->{memory} and $confdata->{vm}->{$node}->[0]->{memory} != $memory) {
|
||||
$updatetable->{vm}->{$node}->{memory}=$memory;
|
||||
}
|
||||
|
||||
}
|
||||
$vmxml=$parsed->toString;
|
||||
|
Loading…
Reference in New Issue
Block a user