[ https://issues.apache.org/jira/browse/CLOUDSTACK-5051?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rayees Namathponnan updated CLOUDSTACK-5051: -------------------------------------------- Attachment: CLOUDSTACK-5051.rar > [Automation] vmware - Copy template to primary storage failed with NPE, an > vm deployment failed > ------------------------------------------------------------------------------------------------- > > Key: CLOUDSTACK-5051 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5051 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the > default.) > Components: Template, VMware > Affects Versions: 4.3.0 > Environment: vmware 5.0 > build : master 4.3.0 > Reporter: Rayees Namathponnan > Fix For: 4.3.0 > > Attachments: CLOUDSTACK-5051.rar > > > steps to reproduce > create build from master branch, create advance zone, then deploy VM > Actual result > During router deployment, failed to copy template from primary storage and > router deployment failed > observed below NPE in ms log > 2013-11-05 17:55:32,867 DEBUG [c.c.a.t.Request] > (AgentManager-Handler-14:null) Seq 5-1852899341: Processing: { Ans: , > MgmtId: 90928106758026, via: 5, Ver: v1, Flag > s: 10, > [{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"result":false,"details":"Unable > to copy template to primary storage due to exception:Exception: jav > a.lang.NullPointerException\nMessage: null\n","wait":0}}] } > 2013-11-05 17:55:32,867 DEBUG [c.c.a.t.Request] (Job-Executor-2:ctx-7de85510 > ctx-e51fa7a1) Seq 5-1852899341: Received: { Ans: , MgmtId: 90928106758026, > via: 5, Ver > : v1, Flags: 10, { CopyCmdAnswer } } > 2013-11-05 17:55:32,878 INFO [o.a.c.s.v.VolumeServiceImpl] > (Job-Executor-2:ctx-7de85510 ctx-e51fa7a1) releasing lock for > VMTemplateStoragePool 4 > 2013-11-05 17:55:32,878 WARN [c.c.u.d.Merovingian2] > (Job-Executor-2:ctx-7de85510 ctx-e51fa7a1) Was unable to find lock for the > key template_spool_ref4 and thread i > d 2009240553 > 2013-11-05 17:55:32,879 DEBUG [o.a.c.e.o.VolumeOrchestrator] > (Job-Executor-2:ctx-7de85510 ctx-e51fa7a1) Unable to create > Vol[5|vm=6|ROOT]:Unable to copy template to > primary storage due to exception:Exception: java.lang.NullPointerException > Message: null > 2013-11-05 17:55:32,879 INFO [c.c.v.VirtualMachineManagerImpl] > (Job-Executor-2:ctx-7de85510 ctx-e51fa7a1) Unable to contact resource. > com.cloud.exception.StorageUnavailableException: Resource [StoragePool:2] is > unreachable: Unable to create Vol[5|vm=6|ROOT]:Unable to copy template to > primary stora > ge due to exception:Exception: java.lang.NullPointerException > Message: null > at > org.apache.cloudstack.engine.orchestration.VolumeOrchestrator.recreateVolume(VolumeOrchestrator.java:1069) > at > org.apache.cloudstack.engine.orchestration.VolumeOrchestrator.prepare(VolumeOrchestrator.java:1111) > at > com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:828) > at > com.cloud.vm.VirtualMachineManagerImpl.start(VirtualMachineManagerImpl.java:510) > at > org.apache.cloudstack.engine.cloud.entity.api.VMEntityManagerImpl.deployVirtualMachine(VMEntityManagerImpl.java:227) > at > org.apache.cloudstack.engine.cloud.entity.api.VirtualMachineEntityImpl.deploy(VirtualMachineEntityImpl.java:209) > at > com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:3409) > at > com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:2990) > at > com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:2976) > 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) > : -- This message was sent by Atlassian JIRA (v6.1#6144)