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

edison su commented on CLOUDSTACK-7274:
---------------------------------------

a9b3ab089d6cb0bc1494e10b2be90292f4c79289 is the root cause. In vmware, there 
are a lot of code will be shared by both mgt server and the ssvm agent, we 
can't add db lock in certain  vmware code if the code shared by both mgt server 
and ssvm agent.

> [Automation] ExtractVolumeCmd failing NPE in vmware 
> ----------------------------------------------------
>
>                 Key: CLOUDSTACK-7274
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7274
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>          Components: VMware
>    Affects Versions: 4.5.0
>            Reporter: Rayees Namathponnan
>            Assignee: Likitha Shetty
>            Priority: Blocker
>             Fix For: 4.5.0
>
>         Attachments: Aug_06_Vmware.rar, cloud.out
>
>
> Test case 
> integration.smoke.test_volumes.TestVolumes.test_06_download_detached_volume 
> failing in VMware 
> {noformat}
> 2014-08-06 09:09:46,414 DEBUG [c.c.a.ApiServlet] 
> (catalina-exec-3:ctx-0d676ce5 ctx-d1359a7f ctx-8ebc45f1) ===END===  
> 10.223.240.195 -- G
> ET  
> jobid=196e464e-cb76-4204-a8a6-7bdeeb13fa82&apiKey=H5RMl6O6B1YJDo70qAbsIfJA2Btv7pIVHxBs6Ent3Y0qusGISXKAyGHaqCjBoqSAOSzWBsM6XIjQX4j_9N
> D3zQ&command=queryAsyncJobResult&response=json&signature=XVuR92sHTN5aj6N3nr0N7XYim0E%3D
> 2014-08-06 09:09:46,990 DEBUG [c.c.a.t.Request] 
> (AgentManager-Handler-11:null) Seq 5-7717480911452766337: Processing:  { Ans: 
> , MgmtId:
> 90928106758026, via: 5, Ver: v1, Flags: 10, 
> [{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"result":false,"details":"copy
>  volu
> me from primary to secondary failed due to exception: Exception: 
> java.lang.NullPointerException\nMessage: null\n","wait":0}}] }
> 2014-08-06 09:09:46,991 DEBUG [c.c.a.t.Request] 
> (API-Job-Executor-105:ctx-5773e2b7 job-689 ctx-cb828d88) Seq 
> 5-7717480911452766337: Rece
> ived:  { Ans: , MgmtId: 90928106758026, via: 5, Ver: v1, Flags: 10, { 
> CopyCmdAnswer } }
> 2014-08-06 09:09:47,001 WARN  [o.a.c.s.d.ObjectInDataStoreManagerImpl] 
> (API-Job-Executor-105:ctx-5773e2b7 job-689 ctx-cb828d88) Unsuppor
> ted data object (VOLUME, 
> org.apache.cloudstack.storage.datastore.PrimaryDataStoreImpl@69cc7318), no 
> need to delete from object in store
> ref table
> 2014-08-06 09:09:47,013 ERROR [c.c.a.ApiAsyncJobDispatcher] 
> (API-Job-Executor-105:ctx-5773e2b7 job-689) Unexpected exception while execu
> ting org.apache.cloudstack.api.command.user.volume.ExtractVolumeCmd
> com.cloud.utils.exception.CloudRuntimeException: Failed to copy the volume 
> from the source primary storage pool to secondary storage.
>         at 
> com.cloud.storage.VolumeApiServiceImpl.extractVolume(VolumeApiServiceImpl.java:2024)
>         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.apache.cloudstack.network.contrail.management.EventUtils$EventInterceptor.invoke(EventUtils.java:106)
>         at 
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
>         at 
> com.cloud.event.ActionEventInterceptor.invoke(ActionEventInterceptor.java:51)
>         at 
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
>         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.$Proxy183.extractVolume(Unknown Source)
>         at 
> org.apache.cloudstack.api.command.user.volume.ExtractVolumeCmd.execute(ExtractVolumeCmd.java:137)
>         at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:141)
>         at 
> com.cloud.api.ApiAsyncJobDispatcher.runJob(ApiAsyncJobDispatcher.java:108)
>         at 
> org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.runInContext(AsyncJobManagerImpl.java:503)
>         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)
> {noformat}



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

Reply via email to