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

ASF subversion and git services commented on CLOUDSTACK-2276:
-------------------------------------------------------------

Commit 661e32b3e2ddff253acf83749738b3bc0d7e7509 in branch 
refs/heads/master-6-17-stable from [~koushikd]
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=661e32b ]

CLOUDSTACK-2276: NPE while attaching the volume to the instance which is 
created from ROOT Disk Snapshot
Storage pool id was not getting set while creating volume from snapshot. Fix is 
to set the storage pool id.

                
> NPE while attaching the volume to the instance which is created from ROOT 
> Disk Snapshot
> ---------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-2276
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2276
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>          Components: Storage Controller
>    Affects Versions: 4.2.0
>            Reporter: Sailaja Mada
>            Assignee: Koushik Das
>            Priority: Critical
>             Fix For: 4.2.0
>
>         Attachments: apilog.log, management-server.log
>
>
> Setup: Advanced Networking Zone with Xen 6.1 , MS -RHEL 6.3
> Steps:
> 1. Deploy instance as ROOT admin
> 2. Create the snapshot from this instance ROOT disk
> 3. Create Volume from this snapshot
> 4. Try to attach this volume to the instance .
> Observation:
> NPE while attaching the volume to the instance which is created from ROOT 
> Disk Snapshot
> 2013-04-29 16:51:02,412 DEBUG [cloud.api.ApiServlet] (catalina-exec-2:null) 
> ===END===  10.144.6.19 -- GET  
> command=attachVolume&id=3c8487fd-a30f-42d6-bc14-e19ec6c4090c&virtualMachineId=cc2a94bb-bdf0-4d36-9f2c-a501c75f53dd&response=json&sessionkey=50KnW0aaOd0wvF2hspe71pXsfqI%3D&_=1367234593280
> 2013-04-29 16:51:02,450 DEBUG [cloud.async.AsyncJobManagerImpl] 
> (Job-Executor-41:job-57) Executing 
> org.apache.cloudstack.api.command.user.volume.AttachVolumeCmd for job-57
> 2013-04-29 16:51:02,528 DEBUG [cloud.storage.StorageManagerImpl] 
> (Job-Executor-41:job-57) Checking pool: 1 for volume allocation 
> [Vol[26|vm=null|DATADISK]], maxSize : 1759218630656, totalAllocatedSize : 
> 108885410816, askingSize : 21474836480, allocated disable threshold: 0.85
> 2013-04-29 16:51:02,530 DEBUG [cloud.storage.VolumeManagerImpl] 
> (Job-Executor-41:job-57) Trying to create 
> org.apache.cloudstack.storage.volume.VolumeObject@28b8ef9e on 
> org.apache.cloudstack.storage.datastore.DefaultPrimaryDataStore@57b82f5
> 2013-04-29 16:51:02,566 DEBUG [agent.transport.Request] 
> (Job-Executor-41:job-57) Seq 1-1019093539: Sending  { Cmd , MgmtId: 
> 222273143235720, via: 1, Ver: v1, Flags: 100111, 
> [{"storage.CreateCommand":{"volId":26,"pool":{"id":1,"uuid":"ba45e9e1-5b6f-3005-a920-00c02a73d9e1","host":"10.102.192.100","path":"/cpg_vol/sailaja/masterxenps","port":2049,"type":"NetworkFilesystem"},"diskCharacteristics":{"size":21474836480,"tags":[],"type":"DATADISK","name":"VolumefromsnapshotofROOT15","useLocalStorage":false,"recreatable":true,"diskOfferingId":1,"volumeId":26},"templateUrl":"c2f7de45-83c8-40a8-9937-a450b0d8660a","wait":0}}]
>  }
> 2013-04-29 16:51:02,577 DEBUG [agent.transport.Request] 
> (Job-Executor-41:job-57) Seq 1-1019093539: Executing:  { Cmd , MgmtId: 
> 222273143235720, via: 1, Ver: v1, Flags: 100111, 
> [{"storage.CreateCommand":{"volId":26,"pool":{"id":1,"uuid":"ba45e9e1-5b6f-3005-a920-00c02a73d9e1","host":"10.102.192.100","path":"/cpg_vol/sailaja/masterxenps","port":2049,"type":"NetworkFilesystem"},"diskCharacteristics":{"size":21474836480,"tags":[],"type":"DATADISK","name":"VolumefromsnapshotofROOT15","useLocalStorage":false,"recreatable":true,"diskOfferingId":1,"volumeId":26},"templateUrl":"c2f7de45-83c8-40a8-9937-a450b0d8660a","wait":0}}]
>  }
> 2013-04-29 16:51:02,592 DEBUG [agent.manager.DirectAgentAttache] 
> (DirectAgent-343:null) Seq 1-1019093539: Executing request
> 2013-04-29 16:51:02,710 DEBUG [xen.resource.CitrixResourceBase] 
> (DirectAgent-343:null) SR retrieved for ba45e9e1-5b6f-3005-a920-00c02a73d9e1
> 2013-04-29 16:51:02,726 DEBUG [xen.resource.CitrixResourceBase] 
> (DirectAgent-343:null) Checking ba45e9e1-5b6f-3005-a920-00c02a73d9e1 or SR 
> 527d8f70-7760-6381-04bf-2d7f86c7f037 on 
> XS[40d72111-4e51-4bda-9d2a-65de0f1bebb5-10.102.192.13]
> 2013-04-29 16:51:02,809 DEBUG [cloud.consoleproxy.ConsoleProxyManagerImpl] 
> (consoleproxy-1:null) Zone 1 is ready to launch console proxy
> 2013-04-29 16:51:03,772 DEBUG [xen.resource.CitrixResourceBase] 
> (DirectAgent-343:null) Succesfully created VDI for 
> com.cloud.agent.api.storage.CreateCommand.  Uuid = 
> 2f8bfe2f-3cf4-4924-899d-0409c776430b
> 2013-04-29 16:51:03,773 DEBUG [agent.manager.DirectAgentAttache] 
> (DirectAgent-343:null) Seq 1-1019093539: Response Received:
> 2013-04-29 16:51:03,773 DEBUG [agent.transport.Request] 
> (DirectAgent-343:null) Seq 1-1019093539: Processing:  { Ans: , MgmtId: 
> 222273143235720, via: 1, Ver: v1, Flags: 110, 
> [{"storage.CreateAnswer":{"volume":{"id":26,"name":"VolumefromsnapshotofROOT15","mountPoint":"/cpg_vol/sailaja/masterxenps","path":"2f8bfe2f-3cf4-4924-899d-0409c776430b","size":21474836480,"type":"DATADISK","storagePoolType":"NetworkFilesystem","storagePoolUuid":"ba45e9e1-5b6f-3005-a920-00c02a73d9e1","deviceId":0},"requestTemplateReload":false,"result":true,"wait":0}}]
>  }
> 2013-04-29 16:51:03,773 DEBUG [agent.transport.Request] 
> (Job-Executor-41:job-57) Seq 1-1019093539: Received:  { Ans: , MgmtId: 
> 222273143235720, via: 1, Ver: v1, Flags: 110, { CreateAnswer } }
> 2013-04-29 16:51:03,777 DEBUG [agent.manager.AgentAttache] 
> (DirectAgent-343:null) Seq 1-1019093539: No more commands found
> 2013-04-29 16:51:03,804 ERROR [cloud.async.AsyncJobManagerImpl] 
> (Job-Executor-41:job-57) Unexpected exception while executing 
> org.apache.cloudstack.api.command.user.volume.AttachVolumeCmd
> java.lang.NullPointerException
>         at 
> com.cloud.storage.VolumeManagerImpl.needMoveVolume(VolumeManagerImpl.java:1504)
>         at 
> com.cloud.storage.VolumeManagerImpl.attachVolumeToVM(VolumeManagerImpl.java:1734)
>         at 
> com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
>         at 
> org.apache.cloudstack.api.command.user.volume.AttachVolumeCmd.execute(AttachVolumeCmd.java:122)
>         at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:155)
>         at 
> com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:437)
>         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)
>         at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>         at java.lang.Thread.run(Thread.java:679)
> 2013-04-29 16:51:03,805 DEBUG [cloud.async.AsyncJobManagerImpl] 
> (Job-Executor-41:job-57) Complete async job-57, jobStatus: 2, resultCode: 
> 530, result: Error Code: 530 Error text: null
> 2013-04-29 16:51:05,434 DEBUG [cloud.api.ApiServlet] (catalina-exec-18:null) 
> ===START===  10.144.6.19 -- GET  
> command=queryAsyncJobResult&jobId=2b0b3bc1-1fca-4f87-b9cc-a565e3c34cf6&response=json&sessionkey=50KnW0aaOd0wvF2hspe71pXsfqI%3D&_=1367234596360
> 2013-04-29 16:51:05,443 DEBUG [cloud.async.AsyncJobManagerImpl] 
> (catalina-exec-18:null) Async job-57 completed

--
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

Reply via email to