[
https://issues.apache.org/jira/browse/CLOUDSTACK-3477?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13790121#comment-13790121
]
Pavan Kumar Bandarupally commented on CLOUDSTACK-3477:
------------------------------------------------------
Jessica,
It seems the issue is fixed, not sure when. A shrink operation is giving a
pop-up saying "Failed to Resize Volume" and an error code of 530 is returned in
the logs. I think we can close the issue as it is fixed. Can you please confirm
the same so that i will close the issue.
Here are the API calls and the job logs:
API Request:
http://10.147.38.143:8080/client/api?command=resizeVolume&id=e484f89b-0475-4c1f-9b8a-8762580a6f68&shrinkok=true&diskofferingid=8834d1bf-63d3-483c-acf8-09543105b87d&response=json&sessionkey=wCceU5li%2FVzJwW3PlcxSKIvdI2w%3D&_=1381302795283
API Response:
http://10.147.38.143:8080/client/api?command=queryAsyncJobResult&jobId=8ee9d1ca-5936-4354-a85c-e2e15cd48a62&response=json&sessionkey=wCceU5li%2FVzJwW3PlcxSKIvdI2w%3D&_=1381302798358
{ "queryasyncjobresultresponse" :
{"accountid":"67f0f0a8-1195-11e3-9dfa-06869e000019","userid":"6801330a-1195-11e3-9dfa-06869e000019",
"cmd":"org.apache.cloudstack.api.command.user.volume.ResizeVolumeCmd",
"jobstatus":2,"jobprocstatus":0,"jobresultcode":530,"jobresulttype":"object",
"jobresult":{"errorcode":530,"errortext":"Failed to resize
volume"},"created":"2013-10-09T18:05:42+0530","jobid":"8ee9d1ca-5936-4354-a85c-e2e15cd48a62"}
}
Job Steps from the Management Log:
2013-10-09 18:05:42,786 DEBUG [cloud.api.ApiServlet] (catalina-exec-9:null)
===START=== 10.146.0.14 -- GET
command=resizeVolume&id=e484f89b-0475-4c1f-9b8a-8762580a6f68&shrinkok=true&diskofferingid=8834d1bf-63d3-483c-acf8-09543105b87d&response=json&sessionkey=wCceU5li%2FVzJwW3PlcxSKIvdI2w%3D&_=1381302795283
2013-10-09 18:05:42,836 DEBUG [cloud.async.AsyncJobManagerImpl]
(catalina-exec-9:null) submit async job-344 = [
8ee9d1ca-5936-4354-a85c-e2e15cd48a62 ], details: AsyncJobVO {id:344, 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":"e484f89b-0475-4c1f-9b8a-8762580a6f68","sessionkey":"wCceU5li/VzJwW3PlcxSKIvdI2w\u003d","shrinkok":"true","cmdEventType":"VOLUME.RESIZE","ctxUserId":"2","httpmethod":"GET","_":"1381302795283","ctxAccountId":"2","diskofferingid":"8834d1bf-63d3-483c-acf8-09543105b87d","ctxStartEventId":"1882"},
cmdVersion: 0, callbackType: 0, callbackAddress: null, status: 0,
processStatus: 0, resultCode: 0, result: null, initMsid: 7175246184473,
completeMsid: null, lastUpdated: null, lastPolled: null, created: null}
2013-10-09 18:05:42,840 DEBUG [cloud.api.ApiServlet] (catalina-exec-9:null)
===END=== 10.146.0.14 -- GET
command=resizeVolume&id=e484f89b-0475-4c1f-9b8a-8762580a6f68&shrinkok=true&diskofferingid=8834d1bf-63d3-483c-acf8-09543105b87d&response=json&sessionkey=wCceU5li%2FVzJwW3PlcxSKIvdI2w%3D&_=1381302795283
2013-10-09 18:05:42,911 DEBUG [cloud.async.AsyncJobManagerImpl]
(Job-Executor-54:job-344 = [ 8ee9d1ca-5936-4354-a85c-e2e15cd48a62 ]) Executing
org.apache.cloudstack.api.command.user.volume.ResizeVolumeCmd for job-344 = [
8ee9d1ca-5936-4354-a85c-e2e15cd48a62 ]
2013-10-09 18:05:43,031 DEBUG [agent.transport.Request]
(Job-Executor-54:job-344 = [ 8ee9d1ca-5936-4354-a85c-e2e15cd48a62 ]) Seq
1-879047679: Sending { Cmd , MgmtId: 7175246184473, via: 1, Ver: v1, Flags:
100011,
[{"com.cloud.agent.api.storage.ResizeVolumeCommand":{"path":"0ee7130c-cb39-4df1-9004-5162455d5cf7","pool":{"id":1,"uuid":"c8059d1b-b018-3939-ae1c-f80cbd067102","host":"10.147.28.7","path":"/export/home/sadhu/asf/rc","port":2049,"type":"NetworkFilesystem"},"vmInstance":"i-2-140-VM","newSize":5368709120,"currentSize":21474836480,"shrinkOk":true,"wait":0}}]
}
2013-10-09 18:05:43,206 DEBUG [agent.transport.Request]
(AgentManager-Handler-15:null) Seq 1-879047679: Processing: { Ans: , MgmtId:
7175246184473, via: 1, Ver: v1, Flags: 10,
[{"com.cloud.agent.api.storage.ResizeVolumeAnswer":{"newSize":0,"result":false,"details":"Unable
to shrink volumes of type QCOW2","wait":0}}] }
2013-10-09 18:05:43,206 DEBUG [agent.transport.Request]
(Job-Executor-54:job-344 = [ 8ee9d1ca-5936-4354-a85c-e2e15cd48a62 ]) Seq
1-879047679: Received: { Ans: , MgmtId: 7175246184473, via: 1, Ver: v1, Flags:
10, { ResizeVolumeAnswer } }
2013-10-09 18:05:43,223 WARN [storage.datastore.ObjectInDataStoreManagerImpl]
(Job-Executor-54:job-344 = [ 8ee9d1ca-5936-4354-a85c-e2e15cd48a62 ])
Unsupported data object (VOLUME,
org.apache.cloudstack.storage.datastore.PrimaryDataStoreImpl@dac9995), no need
to delete from object in store ref table
2013-10-09 18:05:43,225 WARN [cloud.storage.VolumeManagerImpl]
(Job-Executor-54:job-344 = [ 8ee9d1ca-5936-4354-a85c-e2e15cd48a62 ]) Failed to
resize the volume Vol[164|vm=140|DATADISK]
2013-10-09 18:05:43,238 DEBUG [cloud.async.AsyncJobManagerImpl]
(Job-Executor-54:job-344 = [ 8ee9d1ca-5936-4354-a85c-e2e15cd48a62 ]) Complete
async job-344 = [ 8ee9d1ca-5936-4354-a85c-e2e15cd48a62 ], jobStatus: 2,
resultCode: 530, result: Error Code: 530 Error text: Failed to resize volume
2013-10-09 18:05:45,175 DEBUG [storage.secondary.SecondaryStorageManagerImpl]
(secstorage-1:null) Zone 1 is ready to launch secondary storage VM
2013-10-09 18:05:45,190 DEBUG [storage.secondary.SecondaryStorageManagerImpl]
(secstorage-1:null) Zone 2 is not ready to launch secondary storage VM yet
2013-10-09 18:05:45,863 DEBUG [cloud.api.ApiServlet] (catalina-exec-2:null)
===START=== 10.146.0.14 -- GET
command=queryAsyncJobResult&jobId=8ee9d1ca-5936-4354-a85c-e2e15cd48a62&response=json&sessionkey=wCceU5li%2FVzJwW3PlcxSKIvdI2w%3D&_=1381302798358
2013-10-09 18:05:45,885 DEBUG [cloud.async.AsyncJobManagerImpl]
(catalina-exec-2:null) Async job-344 = [ 8ee9d1ca-5936-4354-a85c-e2e15cd48a62 ]
completed
> resizeDataVolume doesn't return proper error message when trying to shrink
> volume on KVM
> ----------------------------------------------------------------------------------------
>
> Key: CLOUDSTACK-3477
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3477
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Components: API
> Affects Versions: 4.2.0
> Environment: Management Server: RHEL 6.3
> KVM : Rhel 6.3
> Reporter: Pavan Kumar Bandarupally
> Priority: Minor
> Fix For: 4.2.1
>
> Attachments: jessica_example1.jpg
>
>
> Shrink of QCOW2 data volumes is not supported. When user tries to shrink data
> volume of a VM on KVM, there is no error returned by the CloudStack UI. In
> the UI task (shrink data volume) will be completed successfully.
> The task should not be shown as successful as the operation is not supported
> by code.
--
This message was sent by Atlassian JIRA
(v6.1#6144)