You are viewing a plain text version of this content. The canonical link for it is here.
Posted to tashi-commits@incubator.apache.org by mr...@apache.org on 2009/03/05 17:13:30 UTC
svn commit: r750513 - /incubator/tashi/trunk/src/tashi/agents/primitive.py
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: