环境是CS4.2+KVM(Ubuntu12.04) all-in-one的基础网络模式,在VM关机状态下创建快照时可以看到 VM快照 中状态一直是creating。但存储中并无文件生成。而且在日志中会有 2013-09-29 09:35:23,600 WARN [agent.manager.AgentManagerImpl] (Job-Executor-2:job-84 = [ 538f1c49-f0fc-425c-a1c8-f2216cfad797 ]) Unsupported Command: Unsupported command issued:com.cloud.agent.api.CreateVMSnapshotCommand. Are you sure you got the right type of server? 但是在https://cwiki.apache.org/confluence/display/CLOUDSTACK/VM+Snapshots 中看到是支持此种快照的,大家有遇到过的没?该怎么解决呢[image: 内嵌图片 1]
完整日志如下: 2013-09-29 09:35:22,968 DEBUG [cloud.api.ApiServlet] (catalina-exec-24:null) ===START=== 192.168.0.9 -- GET command=createVMSnapshot&virtualmachineid=8c2fe24d-1d43-46d4-8bf2-1167a49c1f3b&snapshotmemory=false&name=i-2-7&response=json&sessionkey=I2ZLCc9lxhI5d6QBDr1m1KqCrvU%3D&_=1380418530189 2013-09-29 09:35:23,302 DEBUG [cloud.async.AsyncJobManagerImpl] (catalina-exec-24:null) submit async job-84 = [ 538f1c49-f0fc-425c-a1c8-f2216cfad797 ], details: AsyncJobVO {id:84, userId: 2, accountId: 2, sessionKey: null, instanceType: None, instanceId: 3, cmd: org.apache.cloudstack.api.command.user.vmsnapshot.CreateVMSnapshotCmd, cmdOriginator: null, cmdInfo: {"id":"3","response":"json","sessionkey":"I2ZLCc9lxhI5d6QBDr1m1KqCrvU\u003d","virtualmachineid":"8c2fe24d-1d43-46d4-8bf2-1167a49c1f3b","cmdEventType":"VMSNAPSHOT.CREATE","ctxUserId":"2","snapshotmemory":"false","name":"i-2-7","httpmethod":"GET","_":"1380418530189","ctxAccountId":"2","ctxStartEventId":"309"}, cmdVersion: 0, callbackType: 0, callbackAddress: null, status: 0, processStatus: 0, resultCode: 0, result: null, initMsid: 152831914162318, completeMsid: null, lastUpdated: null, lastPolled: null, created: null} 2013-09-29 09:35:23,303 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-2:job-84 = [ 538f1c49-f0fc-425c-a1c8-f2216cfad797 ]) Executing org.apache.cloudstack.api.command.user.vmsnapshot.CreateVMSnapshotCmd for job-84 = [ 538f1c49-f0fc-425c-a1c8-f2216cfad797 ] 2013-09-29 09:35:23,305 DEBUG [cloud.api.ApiServlet] (catalina-exec-24:null) ===END=== 192.168.0.9 -- GET command=createVMSnapshot&virtualmachineid=8c2fe24d-1d43-46d4-8bf2-1167a49c1f3b&snapshotmemory=false&name=i-2-7&response=json&sessionkey=I2ZLCc9lxhI5d6QBDr1m1KqCrvU%3D&_=1380418530189 2013-09-29 09:35:23,554 DEBUG [agent.transport.Request] (Job-Executor-2:job-84 = [ 538f1c49-f0fc-425c-a1c8-f2216cfad797 ]) Seq 1-763887735: Sending { Cmd , MgmtId: 152831914162318, via: 1, Ver: v1, Flags: 100011, [{"com.cloud.agent.api.CreateVMSnapshotCommand":{"vmState":"Stopped","volumeTOs":[{"id":6,"name":"ROOT-4","path":"78c2cd2b-9aef-4de3-8bdd-96d2219cac0a","size":17179869184,"type":"ROOT","storagePoolType":"NetworkFilesystem","storagePoolUuid":"99f05403-3762-35b9-9adc-de8dfa648fd0","deviceId":0}],"target":{"id":3,"snapshotName":"i-2-4-VM_VS_20130929013522","type":"Disk","current":false},"vmName":"i-2-4-VM","guestOSType":"Windows Server 2003 Enterprise Edition(32-bit)","wait":1800}}] } 2013-09-29 09:35:23,599 DEBUG [agent.transport.Request] (AgentManager-Handler-14:null) Seq 1-763887735: Processing: { Ans: , MgmtId: 152831914162318, via: 1, Ver: v1, Flags: 10, [{"com.cloud.agent.api.UnsupportedAnswer":{"result":false,"details":"Unsupported command issued:com.cloud.agent.api.CreateVMSnapshotCommand. Are you sure you got the right type of server?","wait":0}}] } 2013-09-29 09:35:23,600 DEBUG [agent.transport.Request] (Job-Executor-2:job-84 = [ 538f1c49-f0fc-425c-a1c8-f2216cfad797 ]) Seq 1-763887735: Received: { Ans: , MgmtId: 152831914162318, via: 1, Ver: v1, Flags: 10, { UnsupportedAnswer } } 2013-09-29 09:35:23,600 WARN [agent.manager.AgentManagerImpl] (Job-Executor-2:job-84 = [ 538f1c49-f0fc-425c-a1c8-f2216cfad797 ]) Unsupported Command: Unsupported command issued:com.cloud.agent.api.CreateVMSnapshotCommand. Are you sure you got the right type of server? 2013-09-29 09:35:23,600 ERROR [vm.snapshot.VMSnapshotManagerImpl] (Job-Executor-2:job-84 = [ 538f1c49-f0fc-425c-a1c8-f2216cfad797 ]) Create vm snapshot i-2-4-VM_VS_20130929013522 failed for vm: i-2-4-VM due to com.cloud.agent.api.UnsupportedAnswer cannot be cast to com.cloud.agent.api.CreateVMSnapshotAnswer 2013-09-29 09:35:23,721 ERROR [cloud.async.AsyncJobManagerImpl] (Job-Executor-2:job-84 = [ 538f1c49-f0fc-425c-a1c8-f2216cfad797 ]) Unexpected exception while executing org.apache.cloudstack.api.command.user.vmsnapshot.CreateVMSnapshotCmd com.cloud.utils.exception.CloudRuntimeException: com.cloud.agent.api.UnsupportedAnswer cannot be cast to com.cloud.agent.api.CreateVMSnapshotAnswer at com.cloud.vm.snapshot.VMSnapshotManagerImpl.createVmSnapshotInternal(VMSnapshotManagerImpl.java:406)