Uploaded image for project: 'CloudStack'
  1. CloudStack
  2. CLOUDSTACK-9490

Cant shrink data volume

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 4.8.0
    • Fix Version/s: None
    • Component/s: Volumes
    • Security Level: Public (Anyone can view this level - this is the default.)
    • Labels:
      None
    • Environment:
      OS: Centos 6.8;
      3. management nodes behind HAProxy, with MariaDB Galera. Advanced Networking;
      Xenserver 6.5;
      Shared Storage;
    • Flags:
      Important

      Description

      Trying to shrink volume ends with error:
      failed to resize volume:SR_BACKEND_FAILURE_79VDI Invalid size [opterr=shrinking not allowed]

      But it's possible to increase volume.

      Log:
      2016-09-06 09:21:03,237 DEBUG (logid:3f8ca4f8) Executing AsyncJobVO {id:9033, userId: 2, accountId: 2, instanceType: Volume, instanceId: null, cmd: org.apache.cloudstack.api.command.admin.volume.ResizeVolumeCmdByAdmin, cmdInfo: {"shrinkok":"true","cmdEventType":"VOLUME.RESIZE","ctxUserId":"2","httpmethod":"GET","size":"60","response":"json","id":"959dbb13-eaf9-4f13-8cfe-017213b096c5","ctxDetails":"

      {\"interface com.cloud.storage.Volume\":\"959dbb13-eaf9-4f13-8cfe-017213b096c5\",\"interface com.cloud.offering.DiskOffering\":\"02b0e845-dae7-4129-948b-8146f9f86cb9\"}

      ","_":"1473142861478","diskofferingid":"02b0e845-dae7-4129-948b-8146f9f86cb9","ctxAccountId":"2","uuid":"959dbb13-eaf9-4f13-8cfe-017213b096c5","ctxStartEventId":"21966"}, cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: null, initMsid: 95537004648, completeMsid: null, lastUpdated: null, lastPolled: null, created: null}
      2016-09-06 09:21:03,291 DEBUG ctx-80feefb8) (logid:3f8ca4f8) getCommandHostDelegation: class com.cloud.agent.api.storage.ResizeVolumeCommand
      2016-09-06 09:21:03,291 DEBUG ctx-80feefb8) (logid:3f8ca4f8) getCommandHostDelegation: class com.cloud.agent.api.storage.ResizeVolumeCommand
      2016-09-06 09:21:03,295 DEBUG ctx-80feefb8) (logid:3f8ca4f8) Seq 21-3703366268582115024: Forwarding Seq 21-3703366268582115024: { Cmd , MgmtId: 95537004648, via: 21(xs1.failiem.lv), Ver: v1, Flags: 100011, [{"com.cloud.agent.api.storage.ResizeVolumeCommand":{"path":"abd56728-5ced-4fa0-a8ef-1a4c5e7ca588","pool":

      {"id":33,"uuid":"dec27dc7-fd4c-3b55-8598-2e6acbae7e36","host":"10.10.10.2","path":"/primary-SSD","port":2049,"type":"NetworkFilesystem"}

      ,"vmInstance":"none","newSize":64424509440,"currentSize":85899345920,"shrinkOk":true,"wait":0}}] } to 95535099375
      2016-09-06 09:21:03,635 DEBUG Seq 21-3703366268582115024: Processing: { Ans: , MgmtId: 95537004648, via: 21, Ver: v1, Flags: 10, [{"com.cloud.agent.api.storage.ResizeVolumeAnswer":{"newSize":0,"result":false,"details":"failed to resize volume:SR_BACKEND_FAILURE_79VDI Invalid size [opterr=shrinking not allowed]","wait":0}}] }
      2016-09-06 09:21:03,636 DEBUG ctx-80feefb8) (logid:3f8ca4f8) Seq 21-3703366268582115024: Received: { Ans: , MgmtId: 95537004648, via: 21(xs1.failiem.lv), Ver: v1, Flags: 10,

      { ResizeVolumeAnswer }

      }
      2016-09-06 09:21:03,656 WARN ctx-80feefb8) (logid:3f8ca4f8) Unsupported data object (VOLUME, org.apache.cloudstack.storage.datastore.PrimaryDataStoreImpl@69342f80), no need to delete from object in store ref table
      2016-09-06 09:21:03,657 WARN ctx-80feefb8) (logid:3f8ca4f8) Failed to resize the volume Vol[654|vm=null|DATADISK]
      2016-09-06 09:21:03,657 WARN ctx-80feefb8) (logid:3f8ca4f8) failed get resize volume result
      com.cloud.utils.exception.CloudRuntimeException: failed to size [opterr=shrinking not allowed]
      at com.cloud.storage.VolumeApiServiceImpl.orchestrateResizeVolume(VolumeApiServiceImpl.java:1170)
      at com.cloud.storage.VolumeApiServiceImpl.resizeVolume(VolumeApiServiceImpl.java:1069)
      at com.cloud.storage.VolumeApiServiceImpl.resizeVolume(VolumeApiServiceImpl.java:173)
      at sun.reflect.GeneratedMethodAccessor337.invoke(Unknown Source)
      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)
      at com.cloud.event.ActionEventInterceptor.invoke(ActionEventInterceptor.java:51)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
      at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      at com.sun.proxy.$Proxy193.resizeVolume(Unknown Source)
      at org.apache.cloudstack.api.command.admin.volume.ResizeVolumeCmdByAdmin.execute(ResizeVolumeCmdByAdmin.java:41)
      at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:150)
      at com.cloud.api.ApiAsyncJobDispatcher.runJob(ApiAsyncJobDispatcher.java:108)
      at org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.runInContext(AsyncJobManagerImpl.java:554)
      at org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
      at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
      at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
      at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
      at org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
      at org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.run(AsyncJobManagerImpl.java:502)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:745)
      2016-09-06 09:21:03,666 ERROR (logid:3f8ca4f8) Unexpected exception while executing org.apache.cloudstack.api.command.admin.volume.ResizeVolumeCmdByAdmin
      com.cloud.utils.exception.CloudRuntimeException: failed to size [opterr=shrinking not allowed]
      at com.cloud.storage.VolumeApiServiceImpl.orchestrateResizeVolume(VolumeApiServiceImpl.java:1199)
      at com.cloud.storage.VolumeApiServiceImpl.resizeVolume(VolumeApiServiceImpl.java:1069)
      at com.cloud.storage.VolumeApiServiceImpl.resizeVolume(VolumeApiServiceImpl.java:173)
      at sun.reflect.GeneratedMethodAccessor337.invoke(Unknown Source)
      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)
      at com.cloud.event.ActionEventInterceptor.invoke(ActionEventInterceptor.java:51)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
      at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      at com.sun.proxy.$Proxy193.resizeVolume(Unknown Source)
      at org.apache.cloudstack.api.command.admin.volume.ResizeVolumeCmdByAdmin.execute(ResizeVolumeCmdByAdmin.java:41)
      at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:150)
      at com.cloud.api.ApiAsyncJobDispatcher.runJob(ApiAsyncJobDispatcher.java:108)
      at org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.runInContext(AsyncJobManagerImpl.java:554)
      at org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
      at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
      at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
      at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
      at org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
      at org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.run(AsyncJobManagerImpl.java:502)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:745)
      2016-09-06 09:21:03,668 DEBUG (logid:3f8ca4f8) Complete async job-9033, jobStatus: FAILED, resultCode: 530, result: org.apache.cloudstack.api.response.ExceptionResponse/null/

      {"uuidList":[],"errorcode":530,"errortext":"failed to resize volume:SR_BACKEND_FAILURE_79VDI Invalid size [opterr\u003dshrinking not allowed]"}

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ja@failiem.lv Janis
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: