Details
Description
The Hyper-V agent is never asked whether a VM is running. E.g. it is only asked the VmStats:
2013-12-11 06:28:08,544 [32] INFO HypervResource.HypervResourceController [7bbebc6a-400a-4d9f-832a-06924b823ba4] - com.cloud.agent.api.GetVmStatsCommand{
"vmNames": [
"i-2-3-VM"
],
"hostGuid": "700b99d8-36e7-3f0c-b362-44f1c773241b-HypervResource",
"hostName": "10.70.176.29",
"contextMap": {},
"wait": 0
}
2013-12-11 06:28:08,716 [32] DEBUG HypervResource.WmiCallsV2 [7bbebc6a-400a-4d9f-832a-06924b823ba4] - VM 20E0665F-4EE0-42A5-AC94-03DC9D3B5E8C(elementName i-2-3-VM) has 1 CPUs, and load of 0
2013-12-11 06:28:08,717 [32] INFO HypervResource.HypervResourceController [7bbebc6a-400a-4d9f-832a-06924b823ba4] - {
"com.cloud.agent.api.GetVmStatsAnswer": {
"vmStatsMap": {
"i-2-3-VM":
},
"result": true,
"contextMap": {}
}
}
Therefore, if the VM shut itself down, the management server thinks it is still running.