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.
This commit is contained in:
Prasanna Santhanam 2011-09-19 16:46:34 +05:30
parent 2615848b80
commit fb0410e5d3
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ public class AgentRoutingResource extends AgentStorageResource {
synchronized (_vms) {
_vms.clear();
}
Map<String, State> changes = sync();
Map<String, State> changes = _simMgr.getVmStates(this.hostGuid);
List<Object> 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,