Updated Branches:
  refs/heads/4.1 6dbf3e7b3 -> 15c791d7f

CLOUDSTACK-2158: 'userconcentratedpod_firstfit failed to find alternate host to 
run VM

In the applicationContext .xml , the context of the 
'UserConcentratedPodPlanner' needs to include the list of allocators.
This will ensure that when this component is loaded by Spring, the allocators 
gets initialized.


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/15c791d7
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/15c791d7
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/15c791d7

Branch: refs/heads/4.1
Commit: 15c791d7f55561ab9f345217405114e3048d7732
Parents: 6dbf3e7
Author: Prachi Damle <[email protected]>
Authored: Thu Apr 25 14:47:59 2013 -0700
Committer: Chip Childers <[email protected]>
Committed: Fri Apr 26 01:15:05 2013 +0100

----------------------------------------------------------------------
 client/tomcatconf/applicationContext.xml.in |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/15c791d7/client/tomcatconf/applicationContext.xml.in
----------------------------------------------------------------------
diff --git a/client/tomcatconf/applicationContext.xml.in 
b/client/tomcatconf/applicationContext.xml.in
index bd95bb4..849c0bc 100644
--- a/client/tomcatconf/applicationContext.xml.in
+++ b/client/tomcatconf/applicationContext.xml.in
@@ -512,10 +512,14 @@
   -->
   <bean id="UserDispersingPlanner" 
class="com.cloud.deploy.UserDispersingPlanner">
     <property name="name" value="UserDispersing"/>
+       <property name="StoragePoolAllocators" 
value="#{storagePoolAllocators.Adapters}" />
+    <property name="HostAllocators" value="#{hostAllocators.Adapters}" />
   </bean>
   
   <bean id="UserConcentratedPodPlanner" 
class="com.cloud.deploy.UserConcentratedPodPlanner">
     <property name="name" value="UserConcentratedPod"/>
+       <property name="StoragePoolAllocators" 
value="#{storagePoolAllocators.Adapters}" />
+    <property name="HostAllocators" value="#{hostAllocators.Adapters}" />
   </bean>
 
   <bean id="clusterBasedAgentLoadBalancerPlanner" 
class="com.cloud.cluster.agentlb.ClusterBasedAgentLoadBalancerPlanner">

Reply via email to