incubator-tashi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mry...@apache.org
Subject svn commit: r750513 - /incubator/tashi/trunk/src/tashi/agents/primitive.py
Date Thu, 05 Mar 2009 17:13:30 GMT
Author: mryan3
Date: Thu Mar  5 17:13:28 2009
New Revision: 750513

URL: http://svn.apache.org/viewvc?rev=750513&view=rev
Log:
Bug fix in the primitive scheduler.  If multiple VMs came in simultaneous before, they would
be placed on the same host.


Modified:
    incubator/tashi/trunk/src/tashi/agents/primitive.py

Modified: incubator/tashi/trunk/src/tashi/agents/primitive.py
URL: http://svn.apache.org/viewvc/incubator/tashi/trunk/src/tashi/agents/primitive.py?rev=750513&r1=750512&r2=750513&view=diff
==============================================================================
--- incubator/tashi/trunk/src/tashi/agents/primitive.py (original)
+++ incubator/tashi/trunk/src/tashi/agents/primitive.py Thu Mar  5 17:13:28 2009
@@ -90,6 +90,7 @@
 									hook.preCreate(inst)
 								self.log.info("Scheduling instance %s on host %s" % (inst.name, minHost.name))	
 								self.client.activateVm(i, minHost)
+								load[minHost.id] = load[minHost.id] + [i]
 							else:
 								self.log.info("Failed to find a suitable place to schedule %s" % (inst.name))
 						except Exception, e:



Mime
View raw message