[ https://issues.apache.org/jira/browse/CLOUDSTACK-4278?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wido den Hollander resolved CLOUDSTACK-4278. -------------------------------------------- Resolution: Fixed Resolved in both master and 4.2 and tested on my local system. > ceph:volumeresize failed with Internal error(Nullpointer exception) > ------------------------------------------------------------------- > > Key: CLOUDSTACK-4278 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-4278 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the > default.) > Components: Doc, Management Server > Affects Versions: 4.2.0 > Reporter: sadhu suresh > Assignee: Wido den Hollander > Fix For: 4.2.0 > > > steps: > 1.deploy a VM with data disk in ceph enabled cluster(create compute offeing > with ceph details and use this offering) > 2.Once its successful ,select the data disk and perform volume resize > Actual resize: > volume resize is failed with Internal error > As per functional its planned to implement this support,not sure this is > addressed or not, if not we need to document this as known issue in the > relese notes > https://cwiki.apache.org/CLOUDSTACK/resize-data-volumes.html > 8-13 06:54:44,437 DEBUG [agent.transport.Request] (StatsCollector-3:null) Seq > 6-202444810: Received: { Ans: , MgmtId: 7296881000534, via: 6, Ver: v1, > Flags: 10, { GetHostStatsAnswer } } > 2013-08-13 06:54:44,661 DEBUG [agent.transport.Request] > (AgentManager-Handler-12:null) Seq 7-1066221869: Processing: { Ans: , > MgmtId: 7296881000534, via: 7, Ver: v1, Flags: 10, > [{"com.cloud.agent.api.Answer":{"result":false,"details":"empty > String","wait":0}}] } > 2013-08-13 06:54:44,661 DEBUG [agent.transport.Request] > (StatsCollector-3:null) Seq 7-1066221869: Received: { Ans: , MgmtId: > 7296881000534, via: 7, Ver: v1, Flags: 10, { Answer } } > 2013-08-13 06:54:44,661 DEBUG [agent.manager.AgentManagerImpl] > (StatsCollector-3:null) Details from executing class > com.cloud.agent.api.GetHostStatsCommand: empty String > 2013-08-13 06:54:44,661 WARN [cloud.resource.ResourceManagerImpl] > (StatsCollector-3:null) Unable to obtain host 7 statistics. > 2013-08-13 06:54:44,662 WARN [cloud.server.StatsCollector] > (StatsCollector-3:null) Received invalid host stats for host: 7 > 2013-08-13 06:54:48,072 DEBUG [cloud.api.ApiServlet] (catalina-exec-7:null) > ===START=== 10.252.192.44 -- GET > command=resizeVolume&id=b0520d22-2dd5-4f01-a477-777a180e1760&shrinkok=false&diskofferingid=7253b007-a0b0-4b19-b92f-353776626561&size=6&response=json&sessionkey=leL2SArOsKnd%2BoPxMw%2BasDnIF48%3D&_=1376371597731 > 2013-08-13 06:54:48,118 DEBUG [cloud.async.AsyncJobManagerImpl] > (catalina-exec-7:null) submit async job-155 = [ > 31993ccc-460b-4179-93bf-4bb6b2aabd6b ], details: AsyncJobVO {id:155, userId: > 2, accountId: 2, sessionKey: null, instanceType: Volume, instanceId: null, > cmd: org.apache.cloudstack.api.command.user.volume.ResizeVolumeCmd, > cmdOriginator: null, cmdInfo: > {"response":"json","id":"b0520d22-2dd5-4f01-a477-777a180e1760","sessionkey":"leL2SArOsKnd+oPxMw+asDnIF48\u003d","shrinkok":"false","cmdEventType":"VOLUME.RESIZE","ctxUserId":"2","httpmethod":"GET","_":"1376371597731","ctxAccountId":"2","diskofferingid":"7253b007-a0b0-4b19-b92f-353776626561","ctxStartEventId":"573","size":"6"}, > cmdVersion: 0, callbackType: 0, callbackAddress: null, status: 0, > processStatus: 0, resultCode: 0, result: null, initMsid: 7296881000534, > completeMsid: null, lastUpdated: null, lastPolled: null, created: null} > 2013-08-13 06:54:48,121 DEBUG [cloud.api.ApiServlet] (catalina-exec-7:null) > ===END=== 10.252.192.44 -- GET > command=resizeVolume&id=b0520d22-2dd5-4f01-a477-777a180e1760&shrinkok=false&diskofferingid=7253b007-a0b0-4b19-b92f-353776626561&size=6&response=json&sessionkey=leL2SArOsKnd%2BoPxMw%2BasDnIF48%3D&_=1376371597731 > 2013-08-13 06:54:48,125 DEBUG [cloud.async.AsyncJobManagerImpl] > (Job-Executor-111:job-155 = [ 31993ccc-460b-4179-93bf-4bb6b2aabd6b ]) > Executing org.apache.cloudstack.api.command.user.volume.ResizeVolumeCmd for > job-155 = [ 31993ccc-460b-4179-93bf-4bb6b2aabd6b ] > 2013-08-13 06:54:48,157 ERROR [cloud.async.AsyncJobManagerImpl] > (Job-Executor-111:job-155 = [ 31993ccc-460b-4179-93bf-4bb6b2aabd6b ]) > Unexpected exception while executing > org.apache.cloudstack.api.command.user.volume.ResizeVolumeCmd > java.lang.NullPointerException > at > com.cloud.storage.VolumeManagerImpl.resizeVolume(VolumeManagerImpl.java:1147) > at > com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125) > at > com.cloud.storage.VolumeManagerImpl.resizeVolume(VolumeManagerImpl.java:183) > at > org.apache.cloudstack.api.command.user.volume.ResizeVolumeCmd.execute(ResizeVolumeCmd.java:137) > 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-08-13 06:54:48,160 DEBUG [cloud.async.AsyncJobManagerImpl] > (Job-Executor-111:job-155 = [ 31993ccc-460b-4179-93bf-4bb6b2aabd6b ]) > Complete async job-155 = [ 31993ccc-460b-4179-93bf-4bb6b2aabd6b ], jobStatus: > 2, resultCode: 530, result: Error Code: 530 Error text: null > 2013-08-13 06:54:51,479 DEBUG [cloud.api.ApiServlet] (catalina-exec-2:null) > ===START=== 10.252.192.44 -- GET > command=queryAsyncJobResult&jobId=31993ccc-460b-4179-93bf-4bb6b2aabd6b&response=json&sessionkey=leL2SArOsKnd%2BoPxMw%2BasDnIF48%3D&_=1376371601151 > 2013-08-13 06:54:51,494 DEBUG [cloud.async.AsyncJobManagerImpl] > (catalina-exec-2:null) Async job-155 = [ 31993ccc-460b-4179-93bf-4bb6b2aabd6b > ] completed > 2013-08-13 06:54:51,500 DEBUG [cloud.api.ApiServlet] (catalina-exec-2:null) > ===END=== 10.252.192.44 -- GET > command=queryAsyncJobResult&jobId=31993ccc-460b-4179-93bf-4bb6b2aabd6b&response=json&sessionkey=leL2SArOsKnd%2BoPxMw%2BasDnIF48%3D&_=1376371601151 > 2013-08-13 06:54:52,160 DEBUG [agent.manager.AgentManagerImpl] > (AgentManager-Handler-7:null) SeqA 10-10462: Processing Seq 10-10462: { Cmd > , MgmtId: -1, via: 10, Ver: v1, Flags: 11, > [{"com.cloud.agent.api.ConsoleProxyLoadReportCommand":{"_proxyVmId":39,"_loadInfo":"{\n > \"connections\": []\n}","wait":0}}] } > 2013-08-13 06:54:52,259 DEBUG [agent.manager.AgentManagerImpl] > (AgentManager-Handler-7:null) SeqA 10-10462: Sending Seq 10-10462: { Ans: , > MgmtId: 7296881000534, via: 10, Ver: v1, Flags: 100010, > [{"com.cloud.agent.api.AgentControlAnswer":{"result":true,"wait":0}}] } > 2013-08-13 06:54:55,578 DEBUG [cloud.cluster.ClusterManagerImpl] > (Cluster-Heartbeat-1:null) Management server heartbeat takes too long to > finish. profiler: Done. Duration: 1779ms, profilerHeartbeatUpdate: Done. > Duration: 1777ms, profilerPeerScan: Done. Duration: 2ms, profilerAgentLB: > Done. Duration: 0ms > 2013-08-13 06:54:57,942 DEBUG [agent.manager.AgentManagerImpl] > (AgentManager-Handler-5:null) Ping from 11 > 2013-08-13 06:54:58,668 DEBUG [cloud.network.NetworkManagerImpl] > (Network-Scavenger-1:null) Network 212 is still free but it's not time to > shutdown yet: 1344132068 > 2013-08-13 06:55:00,757 DEBUG [cloud.server.StatsCollector] > (StatsCollector-1:null) StorageCollector is running... > 2013-08-13 06:55:00,816 DEBUG [agent.transport.Request] > (StatsCollector-1:null) Seq 11-1673659726: Received: { Ans: , MgmtId: > 7296881000534, via: 11, Ver: v1, Flags: 10, { GetStorageStatsAnswer } } > 2013-08-13 06:55:00,844 DEBUG [agent.transport.Request] > (StatsCollector-1:null) Seq 6-202444811: Received: { Ans: , MgmtId: > 7296881000534, via: 6, Ver: v1, Flags: 10, { GetStorageStatsAnswer } } > mysql> select * from volumes where id =51\G; > *************************** 1. row *************************** > id: 51 > account_id: 3 > domain_id: 1 > pool_id: 26 > last_pool_id: NULL > instance_id: 41 > device_id: 1 > name: DATA-41 > uuid: b0520d22-2dd5-4f01-a477-777a180e1760 > size: 1073741824 > folder: NULL > path: 5b6f368e-6da8-4ef4-adf5-d6ee1ed18d59 > pod_id: NULL > data_center_id: 1 > iscsi_name: NULL > host_ip: NULL > volume_type: DATADISK > pool_type: NULL > disk_offering_id: 15 > template_id: NULL > first_snapshot_backup_uuid: NULL > recreatable: 0 > created: 2013-08-12 14:01:09 > attached: 2013-08-12 14:42:34 > updated: 2013-08-12 14:42:34 > removed: NULL > state: Ready > chain_info: NULL > update_count: 4 > disk_type: NULL > vm_snapshot_chain_size: NULL > iso_id: 0 > display_volume: 0 > format: QCOW2 > min_iops: NULL > max_iops: NULL > 1 row in set (0.00 sec) > ERROR: > No query specified > mysql> select * from disk_offering where id=15\G; > *************************** 1. row *************************** > id: 15 > domain_id: NULL > name: cloudstackdiskoffe > uuid: ea84b8b8-acff-4007-829a-27668bd31fd0 > display_text: csdof > disk_size: 1073741824 > type: Disk > tags: RBD > recreatable: 0 > use_local_storage: 0 > unique_name: NULL > system_use: 0 > customized: 0 > removed: NULL > created: 2013-08-12 01:02:54 > sort_key: 0 > display_offering: 1 > customized_iops: 1 > min_iops: NULL > max_iops: NULL > bytes_read_rate: NULL > bytes_write_rate: NULL > iops_read_rate: NULL > iops_write_rate: NULL > 1 row in set (0.00 sec) -- 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