Hi, I am trying to resize data volume in KVM and Xen, created new data volume with 5 GB and trying to resize to 10 GB.
Followed 4.4 API doc , in this service offering id is not a required field; I am expecting volume should be resized even if we are not passing service offering id, used below API http://10.xxx.xxx.xxx:8096/?&command=resizeVolume&shrinkok=true &size=10&id=f25a958c-48f7-42aa-bb1f-f3749370d064&<http://10.xx.xxx.xxx:8096/?&command=resizeVolume&shrinkok=true%20&size=10&id=f25a958c-48f7-42aa-bb1f-f3749370d064&> resize volume failed with below error, is service offering id mandatory field in 4.4 ? is there any change in this area ? 2014-06-11 22:36:01,710 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-51:ctx-eee5edb4 job-5203) Executing AsyncJobVO {id:5203, userId: 1, accountId: 1, instanceType: Volume, instanceId: null, cmd: org.apache.cloudstack.api.command.admin.volume.ResizeVolumeCmdByAdmin, cmdInfo: {"id":"f25a958c-48f7-42aa-bb1f-f3749370d064","ctxDetails":"{\"com.cloud.storage.Volume\":710,\"Volume\":\"f25a958c-48f7-42aa-bb1f-f3749370d064\"}","shrinkok":"true","cmdEventType":"VOLUME.RESIZE","ctxUserId":"1","httpmethod":"GET","uuid":"f25a958c-48f7-42aa-bb1f-f3749370d064","ctxAccountId":"1","ctxStartEventId":"15109","size":"10"}, cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: null, initMsid: 29066118877352, completeMsid: null, lastUpdated: null, lastPolled: null, created: null} 2014-06-11 22:36:01,718 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (ApiServer-6:ctx-b68d99d4 ctx-5a82aa93) submit async job-5203, details: AsyncJobVO {id:5203, userId: 1, accountId: 1, instanceType: Volume, instanceId: null, cmd: org.apache.cloudstack.api.command.admin.volume.ResizeVolumeCmdByAdmin, cmdInfo: {"id":"f25a958c-48f7-42aa-bb1f-f3749370d064","ctxDetails":"{\"com.cloud.storage.Volume\":710,\"Volume\":\"f25a958c-48f7-42aa-bb1f-f3749370d064\"}","shrinkok":"true","cmdEventType":"VOLUME.RESIZE","ctxUserId":"1","httpmethod":"GET","uuid":"f25a958c-48f7-42aa-bb1f-f3749370d064","ctxAccountId":"1","ctxStartEventId":"15109","size":"10"}, cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: null, initMsid: 29066118877352, completeMsid: null, lastUpdated: null, lastPolled: null, created: null} 2014-06-11 22:36:01,721 WARN [c.c.a.d.ParamGenericValidationWorker] (API-Job-Executor-51:ctx-eee5edb4 job-5203 ctx-2e64d0b5) Received unknown parameters for command resizeVolume. Unknown parameters : ctxdetails 2014-06-11 22:36:01,756 ERROR [c.c.a.ApiAsyncJobDispatcher] (API-Job-Executor-51:ctx-eee5edb4 job-5203) Unexpected exception while executing org.apache.cloudstack.api.command.admin.volume.ResizeVolumeCmdByAdmin com.cloud.exception.InvalidParameterValueException: current offering4 cannot be resized, need to specify a disk offering at com.cloud.storage.VolumeApiServiceImpl.resizeVolume(VolumeApiServiceImpl.java:724) at com.cloud.storage.VolumeApiServiceImpl.resizeVolume(VolumeApiServiceImpl.java:148) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.apache.cloudstack.network.contrail.management.EventUtils$EventInterceptor.invoke(EventUtils.java:106) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161) User below API doc http://cloudstack.apache.org/docs/api/apidocs-4.3/root_admin/resizeVolume.html Regards, Rayees