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

2013-06-28 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-2276?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=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=attachVolumeid=3c8487fd-a30f-42d6-bc14-e19ec6c4090cvirtualMachineId=cc2a94bb-bdf0-4d36-9f2c-a501c75f53ddresponse=jsonsessionkey=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 

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

2013-05-30 Thread ASF subversion and git services (JIRA)

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

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

Commit fd79f6b6020ae653c4f2d1f6222685becb792b77 in branch refs/heads/master 
from [~koushikd]
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=fd79f6b ]

CLOUDSTACK-2276: NPE while attaching the volume to the instance which is 
created from ROOT Disk Snapshot
The NPE comes as the storage pool id is set to null in the in-memory volume 
object which is not in sync with the db. entry. Reloading the volume from db. 
fixes the issue


 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=attachVolumeid=3c8487fd-a30f-42d6-bc14-e19ec6c4090cvirtualMachineId=cc2a94bb-bdf0-4d36-9f2c-a501c75f53ddresponse=jsonsessionkey=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 

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

2013-04-29 Thread Sailaja Mada (JIRA)

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

Sailaja Mada commented on CLOUDSTACK-2276:
--

NPE is observed only when tried to attach the volume to the same instance[Which 
root disk was used to create the snapshot and the snapshot to create volume). 

 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
Priority: Critical

 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=attachVolumeid=3c8487fd-a30f-42d6-bc14-e19ec6c4090cvirtualMachineId=cc2a94bb-bdf0-4d36-9f2c-a501c75f53ddresponse=jsonsessionkey=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,