From fb0410e5d389c36f5a15d9bce06960ba54a54ba2 Mon Sep 17 00:00:00 2001 From: Prasanna Santhanam Date: Mon, 19 Sep 2011 16:46:34 +0530 Subject: [PATCH] bug 11463: userVms and routers being stopped by the simulator status 11463: resolved fixed reviewed-by: Kishan.Kavala@citrix.com When the management server restarts and does a full vmSync we need to send back the state of the simulator VMs in the StartCommand for management server to restore the states. Or HA will mark them as stopped. --- .../src/com/cloud/resource/AgentRoutingResource.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent-simulator/src/com/cloud/resource/AgentRoutingResource.java b/agent-simulator/src/com/cloud/resource/AgentRoutingResource.java index e946b38d4b0..009e4165881 100644 --- a/agent-simulator/src/com/cloud/resource/AgentRoutingResource.java +++ b/agent-simulator/src/com/cloud/resource/AgentRoutingResource.java @@ -104,7 +104,7 @@ public class AgentRoutingResource extends AgentStorageResource { synchronized (_vms) { _vms.clear(); } - Map changes = sync(); + Map changes = _simMgr.getVmStates(this.hostGuid); List info = getHostInfo(); StartupRoutingCommand cmd = new StartupRoutingCommand((Integer) info.get(0), (Long) info.get(1), (Long) info.get(2), (Long) info.get(4), (String) info.get(3), HypervisorType.Simulator,