-fix bug where default memory usage in kvm caused imbalanced orphan vm adoption
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4417 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
fa59c39e4d
commit
fa90949bd1
@ -823,7 +823,11 @@ sub adopt {
|
||||
unless ($target) {
|
||||
next;
|
||||
}
|
||||
$addmemory{$target}+=getUnits($vmhash->{$node}->[0]->{memory},"M",1024);
|
||||
if ($vmhash->{$node}->[0]->{memory}) {
|
||||
$addmemory{$target}+=getUnits($vmhash->{$node}->[0]->{memory},"M",1024);
|
||||
} else {
|
||||
$addmemory{$target}+=getUnits("512","M",1024);
|
||||
}
|
||||
$hyphash{$target}->{nodes}->{$node}=1;
|
||||
delete $orphash->{$node};
|
||||
push @{$hypsethash{$target}},$node;
|
||||
|
Loading…
Reference in New Issue
Block a user