mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 11:22:27 +00:00 
			
		
		
		
	-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:
		| @@ -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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user