cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Murali Reddy (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CLOUDSTACK-9548) PVLAN: VM migrate commands fails due to wrong casting
Date Tue, 18 Oct 2016 10:34:59 GMT
Murali Reddy created CLOUDSTACK-9548:
----------------------------------------

             Summary: PVLAN: VM migrate commands fails due to wrong casting
                 Key: CLOUDSTACK-9548
                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9548
             Project: CloudStack
          Issue Type: Bug
      Security Level: Public (Anyone can view this level - this is the default.)
            Reporter: Murali Reddy


In VirtualRouterElement, prepareMigration, rollbackMigration, commitMigration methods cast
VirtualMachineV0 to DomainRouterVO/UserVmVO resulting in below excpetion.

2016-10-18 09:08:16,806 INFO  [c.c.v.VirtualMachineManagerImpl] (Work-Job-Executor-4:ctx-106e3bb4
job-64/job-65 ctx-a9571590) Migrating VM[User|i-2-10-VM] to Dest[Zone(Id)-Pod(Id)-Cluster(Id)-Host(Id)-Storage(Volume(Id|Type-->Pool(Id))]
: Dest[Zone(1)-Pod(1)-Cluster(1)-Host(1)-Storage()]
2016-10-18 09:08:16,817 DEBUG [c.c.n.NetworkModelImpl] (Work-Job-Executor-4:ctx-106e3bb4 job-64/job-65
ctx-a9571590) Service SecurityGroup is not supported in the network id=205
2016-10-18 09:08:16,827 DEBUG [c.c.n.NetworkModelImpl] (Work-Job-Executor-4:ctx-106e3bb4 job-64/job-65
ctx-a9571590) Service SecurityGroup is not supported in the network id=205
2016-10-18 09:08:16,831 ERROR [c.c.v.VmWorkJobHandlerProxy] (Work-Job-Executor-4:ctx-106e3bb4
job-64/job-65 ctx-a9571590) Invocation exception, caused by: java.lang.ClassCastException:
com.cloud.vm.VMInstanceVO$$EnhancerByCGLIB$$b0e71f6 cannot be cast to com.cloud.vm.UserVmVO
2016-10-18 09:08:16,836 INFO  [c.c.v.VmWorkJobHandlerProxy] (Work-Job-Executor-4:ctx-106e3bb4
job-64/job-65 ctx-a9571590) Rethrow exception java.lang.ClassCastException: com.cloud.vm.VMInstanceVO$$EnhancerByCGLIB$$b0e71f6
cannot be cast to com.cloud.vm.UserVmVO
2016-10-18 09:08:16,836 DEBUG [c.c.v.VmWorkJobDispatcher] (Work-Job-Executor-4:ctx-106e3bb4
job-64/job-65) Done with run of VM work job: com.cloud.vm.VmWorkMigrate for VM 10, job origin:
64
2016-10-18 09:08:16,836 ERROR [c.c.v.VmWorkJobDispatcher] (Work-Job-Executor-4:ctx-106e3bb4
job-64/job-65) Unable to complete AsyncJobVO {id:65, userId: 2, accountId: 2, instanceType:
null, instanceId: null, cmd: com.cloud.vm.VmWorkMigrate, cmdInfo: rO0ABXNyABpjb20uY2xvdWQudm0uVm1Xb3JrTWlncmF0ZRdxQXtPtzYqAgAGSgAJc3JjSG9zdElkTAAJY2x1c3RlcklkdAAQTGphdmEvbGFuZy9Mb25nO0wABmhvc3RJZHEAfgABTAAFcG9kSWRxAH4AAUwAB3N0b3JhZ2V0AA9MamF2YS91dGlsL01hcDtMAAZ6b25lSWRxAH4AAXhyABNjb20uY2xvdWQudm0uVm1Xb3Jrn5m2VvAlZ2sCAARKAAlhY2NvdW50SWRKAAZ1c2VySWRKAAR2bUlkTAALaGFuZGxlck5hbWV0ABJMamF2YS9sYW5nL1N0cmluZzt4cAAAAAAAAAACAAAAAAAAAAIAAAAAAAAACnQAGVZpcnR1YWxNYWNoaW5lTWFuYWdlckltcGwAAAAAAAAAAnNyAA5qYXZhLmxhbmcuTG9uZzuL5JDMjyPfAgABSgAFdmFsdWV4cgAQamF2YS5sYW5nLk51bWJlcoaslR0LlOCLAgAAeHAAAAAAAAAAAXEAfgAJcQB-AAlwcQB-AAk,
cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: null, initMsid:
7607964207021, completeMsid: null, lastUpdated: null, lastPolled: null, created: Tue Oct 18
09:08:16 BST 2016}, job origin:64
java.lang.ClassCastException: com.cloud.vm.VMInstanceVO$$EnhancerByCGLIB$$b0e71f6 cannot be
cast to com.cloud.vm.UserVmVO
        at com.cloud.network.element.VirtualRouterElement.prepareMigration(VirtualRouterElement.java:1159)
        at org.apache.cloudstack.engine.orchestration.NetworkOrchestrator.prepareNicForMigration(NetworkOrchestrator.java:1413)
        at com.cloud.vm.VirtualMachineManagerImpl.migrate(VirtualMachineManagerImpl.java:1930)
        at com.cloud.vm.VirtualMachineManagerImpl.orchestrateMigrate(VirtualMachineManagerImpl.java:1882)
        at com.cloud.vm.VirtualMachineManagerImpl.orchestrateMigrate(VirtualMachineManagerImpl.java:4604)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message