cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rayees Namathponnan (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CLOUDSTACK-5721) [Automation] ROOT /Data Volume migration failing with error "Volume need to detached from VM"
Date Thu, 02 Jan 2014 16:37:50 GMT
Rayees Namathponnan created CLOUDSTACK-5721:
-----------------------------------------------

             Summary: [Automation] ROOT /Data Volume migration failing with error "Volume
need to detached from VM"
                 Key: CLOUDSTACK-5721
                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5721
             Project: CloudStack
          Issue Type: Bug
      Security Level: Public (Anyone can view this level - this is the default.)
          Components: Volumes
    Affects Versions: 4.3.0
         Environment: KVM and VMware
branch 4.3
            Reporter: Rayees Namathponnan
            Priority: Blocker
             Fix For: 4.3.0


Steps to reproduce 

Step 1 : Create advanced zone in KVM or vmware with 2 primary storage
Step 2 : Create new data volume
Step 3 : Migrate date volume before attaching to any vm

Result 

Volume migration failed with error  "Volume need to detached from VM" 

2014-01-02 08:31:08,642 DEBUG [c.c.a.ApiServlet] (catalina-exec-13:ctx-d1293903 ctx-e4003189)
===END===  10.216.51.177 -- GET  command=migrateVolume&livemigrate=true&storageid=41b632b5-40b3-3024-a38b-ea259c72579f&volumeid=0ab09e30-fe24-4994-9921-c62759e0593a&response=json&sessionkey=8sDkkIHWYSBfmGVV%2B4Y6Stidoi4%3D&_=1388680475046
2014-01-02 08:31:08,653 INFO  [o.a.c.f.j.i.AsyncJobMonitor] (Job-Executor-16:ctx-6d2be4dd)
Add job-4519 into job monitoring
2014-01-02 08:31:08,653 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (Job-Executor-16:ctx-6d2be4dd)
Executing AsyncJobVO {id:4519, userId: 2, accountId: 2, instanceType: None, instanceId: null,
cmd: org.apache.cloudstack.api.command.user.volume.MigrateVolumeCmd, cmdInfo: {"response":"json","sessionkey":"8sDkkIHWYSBfmGVV+4Y6Stidoi4\u003d","cmdEventType":"VOLUME.MIGRATE","ctxUserId":"2","storageid":"41b632b5-40b3-3024-a38b-ea259c72579f","livemigrate":"true","httpmethod":"GET","volumeid":"0ab09e30-fe24-4994-9921-c62759e0593a","_":"1388680475046","ctxAccountId":"2","ctxStartEventId":"16885"},
cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: null, initMsid:
29066118877352, completeMsid: null, lastUpdated: null, lastPolled: null, created: null}
2014-01-02 08:31:08,660 ERROR [c.c.a.ApiAsyncJobDispatcher] (Job-Executor-16:ctx-6d2be4dd)
Unexpected exception while executing org.apache.cloudstack.api.command.user.volume.MigrateVolumeCmd
com.cloud.exception.InvalidParameterValueException: Volume needs to be detached from VM
        at com.cloud.storage.VolumeApiServiceImpl.migrateVolume(VolumeApiServiceImpl.java:1555)
        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:616)
        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.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 $Proxy195.migrateVolume(Unknown Source)
        at org.apache.cloudstack.api.command.user.volume.MigrateVolumeCmd.execute(MigrateVolumeCmd.java:103)
        at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:161)
        at com.cloud.api.ApiAsyncJobDispatcher.runJobInContext(ApiAsyncJobDispatcher.java:109)
        at com.cloud.api.ApiAsyncJobDispatcher$1.run(ApiAsyncJobDispatcher.java:66)
        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 com.cloud.api.ApiAsyncJobDispatcher.runJob(ApiAsyncJobDispatcher.java:63)
        at org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.runInContext(AsyncJobManagerImpl.java:522)
        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 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:1110)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:679)
2014-01-02 08:31:08,661 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (Job-Executor-16:ctx-6d2be4dd)
Complete async job-4519, jobStatus: FAILED, resultCode: 530, result: org.apache.cloudstack.api.response.ExceptionResponse/null/{"uuidList":[],"errorcode":530,"errortext":"Volume
needs to be detached from VM"}
2014-01-02 08:31:08,674 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (Job-Executor-16:ctx-6d2be4dd)
Done executing org.apache.cloudstack.api.command.user.volume.MigrateVolumeCmd for job-4519
2014-01-02 08:31:08,678 INFO  [o.a.c.f.j.i.AsyncJobMonitor] (Job-Executor-16:ctx-6d2be4dd)
Remove job-4519 from job monitoring




--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message