You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Likitha Shetty (JIRA)" <ji...@apache.org> on 2014/06/04 07:49:01 UTC

[jira] [Commented] (CLOUDSTACK-6710) [Automation] VM snapshot failing with NPE in vmware

    [ https://issues.apache.org/jira/browse/CLOUDSTACK-6710?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14017395#comment-14017395 ] 

Likitha Shetty commented on CLOUDSTACK-6710:
--------------------------------------------

As part of the fix for [https://issues.apache.org/jira/browse/CLOUDSTACK-6437], guest_os_hypervisor table was inserted with guest OS entries for each of the supported Xenserver hypervisor version. But the same wasn't done for VMware 
We need to insert the missing VMware mappings to avoid the NPE.

 

> [Automation] VM snapshot failing with NPE in vmware
> ---------------------------------------------------
>
>                 Key: CLOUDSTACK-6710
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6710
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Automation
>    Affects Versions: 4.4.0
>         Environment: Vmware 5.0
> 4.4-forward 
>            Reporter: Rayees Namathponnan
>            Assignee: Likitha Shetty
>            Priority: Blocker
>             Fix For: 4.4.0
>
>         Attachments: management-server.rar
>
>
> Execute BVT integration.smoke.test_vm_snapshots.TestVmSnapshot.test_01_create_vm_snapshots
> This test case creating VM snapshot in VMware; this is failing with below NPE 
> 2014-05-19 13:12:00,378 DEBUG [c.c.v.VmWorkJobDispatcher] (Work-Job-Executor-130:job-390/job-391) Run VM work job: com.cloud.vm.snapshot.VmWorkCreateVMSn
> apshot for VM 62, job origin: 390
> 2014-05-19 13:12:00,384 DEBUG [c.c.v.VmWorkJobHandlerProxy] (Work-Job-Executor-130:job-390/job-391 ctx-538be870) Execute VM work job: com.cloud.vm.snapsh
> ot.VmWorkCreateVMSnapshot{"vmSnapshotId":1,"quiesceVm":false,"userId":2,"accountId":2,"vmId":62,"handlerName":"VMSnapshotManagerImpl"}
> 2014-05-19 13:12:00,517 DEBUG [c.c.v.s.VMSnapshotManagerImpl] (Work-Job-Executor-130:job-390/job-391 ctx-538be870) Failed to create vm snapshot: 1
> java.lang.NullPointerException
>         at org.apache.cloudstack.storage.vmsnapshot.DefaultVMSnapshotStrategy.takeVMSnapshot(DefaultVMSnapshotStrategy.java:139)
>         at com.cloud.vm.snapshot.VMSnapshotManagerImpl.orchestrateCreateVMSnapshot(VMSnapshotManagerImpl.java:422)
>         at com.cloud.vm.snapshot.VMSnapshotManagerImpl.orchestrateCreateVMSnapshot(VMSnapshotManagerImpl.java:1048)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:606)
>         at com.cloud.vm.VmWorkJobHandlerProxy.handleVmWorkJob(VmWorkJobHandlerProxy.java:107)
>         at com.cloud.vm.snapshot.VMSnapshotManagerImpl.handleVmWorkJob(VMSnapshotManagerImpl.java:1072)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:606)
>         at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
>         at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
>         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
>         at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91)
>         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
>         at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
>         at com.sun.proxy.$Proxy182.handleVmWorkJob(Unknown Source)
>         at com.cloud.vm.VmWorkJobDispatcher.runJob(VmWorkJobDispatcher.java:102)
>         at org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.runInContext(AsyncJobManagerImpl.java:496)
>         at org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
>         at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
>         at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
>         at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
>         at org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
>         at org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.run(AsyncJobManagerImpl.java:453)
>         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>         at java.lang.Thread.run(Thread.java:744)
> 2014-05-19 13:12:00,517 ERROR [c.c.v.VmWorkJobHandlerProxy] (Work-Job-Executor-130:job-390/job-391 ctx-538be870) Invocation exception, caused by: java.la
> ng.NullPointerException
> 2014-05-19 13:12:00,517 INFO  [c.c.v.VmWorkJobHandlerProxy] (Work-Job-Executor-130:job-390/job-391 ctx-538be870) Rethrow exception java.lang.NullPointerException



--
This message was sent by Atlassian JIRA
(v6.2#6252)