[jira] [Resolved] (CLOUDSTACK-2276) NPE while attaching the volume to the instance which is created from ROOT Disk Snapshot

2013-06-28 Thread Koushik Das (JIRA)

 [ 
https://issues.apache.org/jira/browse/CLOUDSTACK-2276?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Koushik Das resolved CLOUDSTACK-2276.
-

Resolution: Fixed

The issue is not present in master but in master-6-17-stable. Fixed it in 
master-6-17-stable

> 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: 
> 73143235720, 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: 
> 73143235720, 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: 
> 73143235720, via: 1, Ver: v1, Flags: 110, 
> [{"storage.CreateAnswer":{"volume":{"id":26,"name":"VolumefromsnapshotofROOT15","mountPoint":"/cp

[jira] [Resolved] (CLOUDSTACK-2276) NPE while attaching the volume to the instance which is created from ROOT Disk Snapshot

2013-06-27 Thread Koushik Das (JIRA)

 [ 
https://issues.apache.org/jira/browse/CLOUDSTACK-2276?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Koushik Das resolved CLOUDSTACK-2276.
-

Resolution: Fixed

I followed the steps mentioned in the description and am not able to reproduce 
the issue in latest master.
In case the repro steps have change, update the bug appropriately or open a new 
one.

> 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: 
> 73143235720, 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: 
> 73143235720, 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: 
> 73143235720, via: 1, Ver: v1, Flags: 110, 

[jira] [Resolved] (CLOUDSTACK-2276) NPE while attaching the volume to the instance which is created from ROOT Disk Snapshot

2013-05-30 Thread Koushik Das (JIRA)

 [ 
https://issues.apache.org/jira/browse/CLOUDSTACK-2276?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Koushik Das resolved CLOUDSTACK-2276.
-

Resolution: Fixed

> 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
>
>
> 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: 
> 73143235720, 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: 
> 73143235720, 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: 
> 73143235720, 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":