cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rajesh Battala (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-3944) not able to deploy VM hitting exception copy object failed: java.lang.NullPointerException
Date Tue, 30 Jul 2013 12:25:48 GMT

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

Rajesh Battala commented on CLOUDSTACK-3944:
--------------------------------------------

Issue is , getGuruProcessedCommandTargetHost is not able to give the new hostid,  given the
hostid and cmd(=copyCommand ). 
looks like only VmwareGuru class is implementing the copyCommand and not xenserverguru. 

and the base class HypervisorGuru is returning False.
as its not able to find the host, agent send is failing to send the cmd to the host to execute
the copyCommand.

Looks like deploy can happen only on VmWare as Vmwareguru only implementing getCommandHostDelegation
Method

This is a serious blocker 
                
> not able to deploy VM hitting exception copy object failed: java.lang.NullPointerException
> ------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-3944
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3944
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Volumes
>    Affects Versions: 4.2.0
>         Environment: KVM host : rhel6.3
> Advance zone
>            Reporter: shweta agarwal
>            Assignee: Murali Reddy
>            Priority: Blocker
>             Fix For: 4.2.0
>
>         Attachments: management-server.log
>
>
> Repro steps:
> Create  a advance zone
> Create a VM 
> Bug:
> hittting exception copy object failed: java.lang.NullPointerException
> though router VM is up and running
> And once this failure occurs immediately host is put in avoid list
> MS snippet for the same
> 2013-07-30 06:24:35,149 DEBUG [storage.image.TemplateDataFactoryImpl] (Job-Executor-13:job-13
= [ 1b2bee9c-b675-4921-8d8a-725f241ce281 ]) template 4 is already in store:1, type:Image
> 2013-07-30 06:24:35,166 DEBUG [storage.datastore.PrimaryDataStoreImpl] (Job-Executor-13:job-13
= [ 1b2bee9c-b675-4921-8d8a-725f241ce281 ]) Not found (templateId: 4, poolId: 1) in template_spool_ref
> 2013-07-30 06:24:35,167 DEBUG [storage.datastore.PrimaryDataStoreImpl] (Job-Executor-13:job-13
= [ 1b2bee9c-b675-4921-8d8a-725f241ce281 ]) Persisting (templateId: 4, poolId: 1) to template_spool_ref
> 2013-07-30 06:24:35,182 DEBUG [storage.image.TemplateDataFactoryImpl] (Job-Executor-13:job-13
= [ 1b2bee9c-b675-4921-8d8a-725f241ce281 ]) template 4 is already in store:1, type:Primary
> 2013-07-30 06:24:35,190 DEBUG [storage.volume.VolumeServiceImpl] (Job-Executor-13:job-13
= [ 1b2bee9c-b675-4921-8d8a-725f241ce281 ]) Found template centos55-x86_64 in storage pool
1 with VMTemplateStoragePool id: 2
> 2013-07-30 06:24:35,223 DEBUG [storage.volume.VolumeServiceImpl] (Job-Executor-13:job-13
= [ 1b2bee9c-b675-4921-8d8a-725f241ce281 ]) Acquire lock on VMTemplateStoragePool 2 with timeout
3600 seconds
> 2013-07-30 06:24:35,231 INFO  [storage.volume.VolumeServiceImpl] (Job-Executor-13:job-13
= [ 1b2bee9c-b675-4921-8d8a-725f241ce281 ]) lock is acquired for VMTemplateStoragePool 2
> 2013-07-30 06:24:35,247 DEBUG [storage.motion.AncientDataMotionStrategy] (Job-Executor-13:job-13
= [ 1b2bee9c-b675-4921-8d8a-725f241ce281 ]) copyAsync inspecting src type TEMPLATE copyAsync
inspecting dest type TEMPLATE
> 2013-07-30 06:24:35,308 DEBUG [storage.motion.AncientDataMotionStrategy] (Job-Executor-13:job-13
= [ 1b2bee9c-b675-4921-8d8a-725f241ce281 ]) copy object failed: java.lang.NullPointerException
> 2013-07-30 06:24:35,310 DEBUG [storage.motion.AncientDataMotionStrategy] (Job-Executor-13:job-13
= [ 1b2bee9c-b675-4921-8d8a-725f241ce281 ]) copy failed
> com.cloud.utils.exception.CloudRuntimeException: java.lang.NullPointerException
>         at org.apache.cloudstack.storage.motion.AncientDataMotionStrategy.copyObject(AncientDataMotionStrategy.java:210)
>         at org.apache.cloudstack.storage.motion.AncientDataMotionStrategy.copyAsync(AncientDataMotionStrategy.java:386)
>         at org.apache.cloudstack.storage.motion.DataMotionServiceImpl.copyAsync(DataMotionServiceImpl.java:55)
>         at org.apache.cloudstack.storage.volume.VolumeServiceImpl.createBaseImageAsync(VolumeServiceImpl.java:430)
>         at org.apache.cloudstack.storage.volume.VolumeServiceImpl.createVolumeFromTemplateAsync(VolumeServiceImpl.java:534)
>         at com.cloud.storage.VolumeManagerImpl.recreateVolume(VolumeManagerImpl.java:2497)
>         at com.cloud.storage.VolumeManagerImpl.prepare(VolumeManagerImpl.java:2554)
>         at com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:913)
>         at com.cloud.vm.VirtualMachineManagerImpl.start(VirtualMachineManagerImpl.java:618)
>         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:3329)
>         at com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:2889)
>         at com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:2875)
>         at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
>         at org.apache.cloudstack.api.command.user.vm.DeployVMCmd.execute(DeployVMCmd.java:420)
>         at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
>         at com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:531)
>         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:1146)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>         at java.lang.Thread.run(Thread.java:679)
> 2013-07-30 06:24:35,384 INFO  [storage.volume.VolumeServiceImpl] (Job-Executor-13:job-13
= [ 1b2bee9c-b675-4921-8d8a-725f241ce281 ]) releasing lock for VMTemplateStoragePool 2
> 2013-07-30 06:24:35,385 WARN  [utils.db.Merovingian2] (Job-Executor-13:job-13 = [ 1b2bee9c-b675-4921-8d8a-725f241ce281
]) Was unable to find lock for the key template_spool_ref2 and thread id 1210491507
> 2013-07-30 06:24:35,386 DEBUG [cloud.storage.VolumeManagerImpl] (Job-Executor-13:job-13
= [ 1b2bee9c-b675-4921-8d8a-725f241ce281 ]) Unable to create Vol[3|vm=3|ROOT]:com.cloud.utils.exception.CloudRuntimeException:
java.lang.NullPointerException
> 2013-07-30 06:24:35,386 INFO  [cloud.vm.VirtualMachineManagerImpl] (Job-Executor-13:job-13
= [ 1b2bee9c-b675-4921-8d8a-725f241ce281 ]) Unable to contact resource.
> Type  :quit<Enter>  to exit Vim                                               
                                                                                     

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message