[ https://issues.apache.org/jira/browse/CLOUDSTACK-5050?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Min Chen reassigned CLOUDSTACK-5050: ------------------------------------ Assignee: Min Chen (was: edison su) > [Automation] Failed to attach ISO to running vm with NPE > -------------------------------------------------------- > > Key: CLOUDSTACK-5050 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5050 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the > default.) > Components: ISO > Affects Versions: 4.3.0 > Environment: KVM > branch : master > Reporter: Rayees Namathponnan > Assignee: Min Chen > Priority: Blocker > Fix For: 4.3.0 > > Attachments: CLOUDSTACK-5050.rar > > > BVT failure > integration.smoke.test_vm_life_cycle.TestVMLifeCycle.test_10_attachAndDetach_iso > Steps to reproduce > 1) register ISO http://people.apache.org/~tsp/dummy.iso > 2) Deploy VM > 3 ) Attach ISO to running > ISO attach failed with NPE > 2013-11-05 15:52:29,213 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] > (Job-Executor-134:ctx-57b6c4c6) Executing AsyncJobVO {id:317, userId: 2, > accountId: 2, instanceType: None, instanceId: null, cmd: org.apache > .cloudstack.api.command.user.iso.AttachIsoCmd, cmdInfo: > {"id":"579c330e-06bf-4911-887a-fb5146af9aad","response":"json","sessionkey":"vw2jRz7SFgLbxiXNx8E0BUF7mO4\u003d","virtualmachineid":"63de9e37-cf3f-4f > f1-8175-f12d224a2a24","cmdEventType":"ISO.ATTACH","ctxUserId":"2","httpmethod":"GET","_":"1383695548497","ctxAccountId":"2","ctxStartEventId":"2626"}, > cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, > resultCode: 0, result: null, initMsid: 29066118877352, completeMsid: null, > lastUpdated: null, lastPolled: null, created: null} > 2013-11-05 15:52:29,217 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] > (catalina-exec-14:ctx-865f8152 ctx-93cf9205) submit async job-317, details: > AsyncJobVO {id:317, userId: 2, accountId: 2, instanceType: None, > instanceId: null, cmd: > org.apache.cloudstack.api.command.user.iso.AttachIsoCmd, cmdInfo: > {"id":"579c330e-06bf-4911-887a-fb5146af9aad","response":"json","sessionkey":"vw2jRz7SFgLbxiXNx8E0BUF7mO4\u003d","v > irtualmachineid":"63de9e37-cf3f-4ff1-8175-f12d224a2a24","cmdEventType":"ISO.ATTACH","ctxUserId":"2","httpmethod":"GET","_":"1383695548497","ctxAccountId":"2","ctxStartEventId":"2626"}, > cmdVersion: 0, stat > us: IN_PROGRESS, processStatus: 0, resultCode: 0, result: null, initMsid: > 29066118877352, completeMsid: null, lastUpdated: null, lastPolled: null, > created: null} > 2013-11-05 15:52:29,218 DEBUG [c.c.a.ApiServlet] > (catalina-exec-14:ctx-865f8152 ctx-93cf9205) ===END=== 10.214.5.33 -- GET > command=attachIso&virtualmachineid=63de9e37-cf3f-4ff1-8175-f12d224a2a24&id=579c > 330e-06bf-4911-887a-fb5146af9aad&response=json&sessionkey=vw2jRz7SFgLbxiXNx8E0BUF7mO4%3D&_=1383695548497 > 2013-11-05 15:52:29,232 ERROR [c.c.a.ApiAsyncJobDispatcher] > (Job-Executor-134:ctx-57b6c4c6) Unexpected exception while executing > org.apache.cloudstack.api.command.user.iso.AttachIsoCmd > java.lang.NullPointerException > at > com.cloud.user.AccountManagerImpl.checkAccess(AccountManagerImpl.java:383) > at sun.reflect.GeneratedMethodAccessor150.invoke(Unknown Source) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:616) > 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 $Proxy82.checkAccess(Unknown Source) > at > com.cloud.template.TemplateManagerImpl.attachIso(TemplateManagerImpl.java:973) > 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:616) > 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 > com.cloud.event.ActionEventInterceptor.invoke(ActionEventInterceptor.java:50) > 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 $Proxy157.attachIso(Unknown Source) > at > org.apache.cloudstack.api.command.user.iso.AttachIsoCmd.execute(AttachIsoCmd.java:100) > at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:161) > at > com.cloud.api.ApiAsyncJobDispatcher.runJobInContext(ApiAsyncJobDispatcher.java:109) > at > com.cloud.api.ApiAsyncJobDispatcher$1.run(ApiAsyncJobDispatcher.java:66) > 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 > com.cloud.api.ApiAsyncJobDispatcher.runJob(ApiAsyncJobDispatcher.java:63) > at > org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.runInContext(AsyncJobManagerImpl.java:520) > 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 > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) > at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) > at java.util.concurrent.FutureTask.run(FutureTask.java:166) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) -- This message was sent by Atlassian JIRA (v6.1#6144)