Roland Kool created CLOUDSTACK-429:
--------------------------------------
Summary: Agent rebalancing is broken
Key: CLOUDSTACK-429
URL: https://issues.apache.org/jira/browse/CLOUDSTACK-429
Project: CloudStack
Issue Type: Bug
Components: Hypervisor Controller, Management Server
Affects Versions: pre-4.0.0
Environment: KVM, Cloudstack 3.0.2
Reporter: Roland Kool
Priority: Minor
After setting agent.lb.enabled to true and restarting my management servers,
the agent rebalancing gets stuck after trying to rebalance the first 16
machines.
The error from the management log is:
2012-07-05 15:09:43,643 DEBUG [agent.manager.ClusteredAgentManagerImpl]
(AgentTaskPool-6:null) Rebalancing host id=9
2012-07-05 15:09:43,646 WARN [agent.manager.ClusteredAgentManagerImpl]
(AgentTaskPool-6:null) Unable to rebalance host id=9
java.lang.ClassCastException: com.cloud.agent.manager.ClusteredAgentAttache
cannot be cast to com.cloud.agent.manager.ClusteredDirectAgentAttache
at
com.cloud.agent.manager.ClusteredAgentManagerImpl.startRebalance(ClusteredAgentManagerImpl.java:1014)
at
com.cloud.agent.manager.ClusteredAgentManagerImpl.rebalanceHost(ClusteredAgentManagerImpl.java:905)
at
com.cloud.agent.manager.ClusteredAgentManagerImpl$RebalanceTask.run(ClusteredAgentManagerImpl.java:1070)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:679)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira