[
https://issues.apache.org/jira/browse/CLOUDSTACK-2958?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13681116#comment-13681116
]
Srikanteswararao Talluri commented on CLOUDSTACK-2958:
------------------------------------------------------
<liststoragepoolsresponse cloud-stack-version="4.2.0-SNAPSHOT">
<count>3</count>
<storagepool>
<id>98a13fa4-5768-3a67-b6ed-6c06e609a4dc</id>
<zoneid>223c3687-f561-4b16-9584-2e1266c303b1</zoneid>
<zonename>zwpszone</zonename>
<zonetype>Advanced</zonetype>
<podid>fd70cc91-07ee-4c5e-92ff-3090911653a8</podid>
<podname>pod</podname>
<name>prim3</name>
<ipaddress>10.147.28.7</ipaddress>
<path>/export/home/talluri/mysetup_prim3</path>
<created>2013-06-12T21:44:10+0530</created>
<type>NetworkFilesystem</type>
<clusterid>ce410600-35c3-4e69-af4e-972b61bd9259</clusterid>
<clustername>10.147.60.15/stormig/stormig_clus</clustername>
<disksizetotal>5902284800000</disksizetotal>
<disksizeallocated>0</disksizeallocated>
<disksizeused>3281502081024</disksizeused>
<state>Up</state>
<scope>ZONE</scope>
<hypervisor>VMware</hypervisor>
</storagepool>
<storagepool>
<id>ece502dc-5d06-3043-afec-38e3d54fe995</id>
<zoneid>223c3687-f561-4b16-9584-2e1266c303b1</zoneid>
<zonename>zwpszone</zonename>
<zonetype>Advanced</zonetype>
<name>prim2</name>
<ipaddress>10.147.28.7</ipaddress>
<path>/export/home/talluri/mysetup_prim2</path>
<created>2013-06-12T21:23:13+0530</created>
<type>NetworkFilesystem</type>
<disksizetotal>5902284800000</disksizetotal>
<disksizeallocated>0</disksizeallocated>
<disksizeused>3281155739648</disksizeused>
<state>Up</state>
<scope>ZONE</scope>
<hypervisor>VMware</hypervisor>
</storagepool>
<storagepool>
<id>5a830e2f-3b1e-32fd-bdde-a418fba453a2</id>
<zoneid>223c3687-f561-4b16-9584-2e1266c303b1</zoneid>
<zonename>zwpszone</zonename>
<zonetype>Advanced</zonetype>
<podid>fd70cc91-07ee-4c5e-92ff-3090911653a8</podid>
<podname>pod</podname>
<name>prim</name>
<ipaddress>10.147.28.7</ipaddress>
<path>/export/home/talluri/mysetup_prim</path>
<created>2013-06-12T20:49:33+0530</created>
<type>NetworkFilesystem</type>
<clusterid>ce410600-35c3-4e69-af4e-972b61bd9259</clusterid>
<clustername>10.147.60.15/stormig/stormig_clus</clustername>
<disksizetotal>5902284800000</disksizetotal>
<disksizeallocated>8489271296</disksizeallocated>
<disksizeused>3280631812096</disksizeused>
<state>Up</state>
<scope>ZONE</scope>
<hypervisor>VMware</hypervisor>
</storagepool>
</liststoragepoolsresponse>
> [ZWPS][VMWARE]: NPE while attaching a volume to a VM
> ----------------------------------------------------
>
> Key: CLOUDSTACK-2958
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2958
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Components: Volumes
> Affects Versions: 4.2.0
> Reporter: Srikanteswararao Talluri
> Priority: Blocker
> Fix For: 4.2.0
>
>
> 1. Deploy a vmware zone with zone wide primary storage
> 2. create an Instance
> 3. Take snaphot of the root volume
> 4. create volume from snapshot
> 5. attach the volume created in step 4 to the vm created in step 2.
> NOTE: Zone has multiple zone wide primary storages
> ===START=== 10.252.192.7 -- GET
> command=attachVolume&id=214ee1ea-1b05-4e05-b967-8db48b318dca&virtualMachineId=7092ef40-8aef-40fa-a3a0-8ae2443109a7&response=json&sessionkey=5ez1jBXiPUJzcam0%2Ft9UtTy9L%2BY%3D&_=1371034570223
> 2013-06-12 21:51:37,493 DEBUG [cloud.async.AsyncJobManagerImpl]
> (catalina-exec-11:null) submit async job-20, details: AsyncJobVO {id:20,
> userId: 2, accountId: 2, sessionKey: null, instanceType: Volume, instanceId:
> 7, cmd: org.apache.cloudstack.api.command.user.volume.AttachVolumeCmd,
> cmdOriginator: null, cmdInfo:
> {"response":"json","id":"214ee1ea-1b05-4e05-b967-8db48b318dca","sessionkey":"5ez1jBXiPUJzcam0/t9UtTy9L+Y\u003d","ctxUserId":"2","virtualMachineId":"7092ef40-8aef-40fa-a3a0-8ae2443109a7","httpmethod":"GET","_":"1371034570223","ctxAccountId":"2","ctxStartEventId":"78"},
> cmdVersion: 0, callbackType: 0, callbackAddress: null, status: 0,
> processStatus: 0, resultCode: 0, result: null, initMsid: 7566222426160,
> completeMsid: null, lastUpdated: null, lastPolled: null, created: null}
> 2013-06-12 21:51:37,497 DEBUG [cloud.api.ApiServlet] (catalina-exec-11:null)
> ===END=== 10.252.192.7 -- GET
> command=attachVolume&id=214ee1ea-1b05-4e05-b967-8db48b318dca&virtualMachineId=7092ef40-8aef-40fa-a3a0-8ae2443109a7&response=json&sessionkey=5ez1jBXiPUJzcam0%2Ft9UtTy9L%2BY%3D&_=1371034570223
> 2013-06-12 21:51:37,500 DEBUG [cloud.async.AsyncJobManagerImpl]
> (Job-Executor-8:job-20) Executing
> org.apache.cloudstack.api.command.user.volume.AttachVolumeCmd for job-20
> 2013-06-12 21:51:37,610 ERROR [cloud.async.AsyncJobManagerImpl]
> (Job-Executor-8:job-20) Unexpected exception while executing
> org.apache.cloudstack.api.command.user.volume.AttachVolumeCmd
> java.lang.NullPointerException
> at
> com.cloud.storage.VolumeManagerImpl.needMoveVolume(VolumeManagerImpl.java:1502)
> at
> com.cloud.storage.VolumeManagerImpl.attachVolumeToVM(VolumeManagerImpl.java:1741)
> 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-06-12 21:51:37,612 DEBUG [cloud.async.AsyncJobManagerImpl]
> (Job-Executor-8:job-20) Complete async job-20, jobStatus: 2, resultCode: 530,
> result: Error Code: 530 Error text: null
> 2013-06-12 21:51:39,145 DEBUG
> [network.router.VirtualNetworkApplianceManagerImpl]
> (RouterStatusMonitor-1:null) Found 1 routers to update status.
--
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