Hi, Dev Team

I play with cloudstack 4.4.2 + centos 6.5 kvm. It is ok that I deploy an
instance to kvm host, and the console is ok too.

When I directly add a vdisk via virsh command to this instance, it is ok and
the disk is recongnised but the console in CS UI is fail.

After I remove the vdisk via virsh command from this instance, the console
in CS UI is ok.

How to debug this issue ? Thanks.

My Env:

I attache disk:
virsh# attach-disk 2 /dev/iscsi-pool-sdb/volume01 vdc
Disk attached successfully

And then I open the console of this instance, but I got fail with notice:
"Server Internal Error"

catalina.out:

DEBUG [c.c.a.t.Request] (AgentManager-Handler-10:null) Seq
3-2832482690639331409: Processing:  { Ans: , MgmtId: 13557697424736, via:
3, Ver: v1, Flags: 10,
[{"com.cloud.agent.api.Answer":{"result":false,"details":"No enum constant
com.cloud.hypervisor.kvm.resource.LibvirtVMDef.DiskDef.diskCacheMode.","wait":0}}]
}
DEBUG [c.c.a.t.Request] (catalina-exec-19:null) Seq 3-2832482690639331409:
Received:  { Ans: , MgmtId: 13557697424736, via: 3, Ver: v1, Flags: 10, {
Answer } }
DEBUG [c.c.a.m.AgentManagerImpl] (catalina-exec-19:null) Details from
executing class com.cloud.agent.api.GetVncPortCommand: No enum constant
com.cloud.hypervisor.kvm.resource.LibvirtVMDef.DiskDef.diskCacheMode.
ERROR [c.c.s.ConsoleProxyServlet] (catalina-exec-19:null) Unexepected
exception in ConsoleProxyServlet
java.lang.ClassCastException: com.cloud.agent.api.Answer cannot be cast to
com.cloud.agent.api.GetVncPortAnswer

Is possible to develop a iscsi storage plugin to guest instances for  kvm
hypervisor ?


Best Regards,

Reply via email to