[
https://issues.apache.org/jira/browse/CLOUDSTACK-5456?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13856874#comment-13856874
]
ASF subversion and git services commented on CLOUDSTACK-5456:
-------------------------------------------------------------
Commit 7e54ca883124c7d3a2af1a4f74b5002e4789aa9e in branch refs/heads/4.3 from
[~devdeep]
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=7e54ca8 ]
CLOUDSTACK-5456: Download root volume when vm is in stopped state fails on
hyper-v. Made
changes to make sure the volume entry is created in the db with the right image
format.
> [Hyper-V] Download ROOT Volume when the VM is in stopped state is failing
> -------------------------------------------------------------------------
>
> Key: CLOUDSTACK-5456
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5456
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Components: Hypervisor Controller, Management Server, Storage
> Controller
> Affects Versions: 4.3.0
> Environment: 4.3, Hyper-V
> Reporter: Abhinav Roy
> Assignee: Devdeep Singh
> Priority: Critical
> Labels: hyper-V,, hyper-v, hyperv
> Fix For: 4.3.0
>
>
> Steps :
> ====================
> 1. Create an advanced zone setup with hyper-v as the host hypervisor type and
> shared CIFS storage for primary storage
> 2. Deploy a VM
> 3. stop the VM
> 4. Goto the ROOT volume of the VM and try to download it.
> Expected behaviour :
> =====================
> The volume should be successfully downloaded .
> Observed behaviour :
> =====================
> ROOT volume download fails with :
> 2013-12-11 14:41:07,255 DEBUG [c.c.a.ApiServlet]
> (catalina-exec-7:ctx-b6b9c65e) ===START=== 10.144.7.10 -- GET
> command=extractVolume&id=6464d10e-c241-4be5-aba9-1f7486a2e79e&zoneid=4219d3ad-9036-463b-b5dc-a61b64681479&mode=HTTP_DOWNLOAD&response=json&sessionkey=Ll%2Fkk4jy%2B7zY5m4YIPz2jtk9MCs%3D&_=1386753329802
> 2013-12-11 14:41:07,296 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl]
> (catalina-exec-7:ctx-b6b9c65e ctx-dd959385) submit async job-75, details:
> AsyncJobVO {id:75, userId: 2, accountId: 2, instanceType: Volume, instanceId:
> 21, cmd: org.apache.cloudstack.api.command.user.volume.ExtractVolumeCmd,
> cmdInfo:
> {"response":"json","id":"6464d10e-c241-4be5-aba9-1f7486a2e79e","sessionkey":"Ll/kk4jy+7zY5m4YIPz2jtk9MCs\u003d","cmdEventType":"VOLUME.EXTRACT","ctxUserId":"2","zoneid":"4219d3ad-9036-463b-b5dc-a61b64681479","httpmethod":"GET","_":"1386753329802","ctxAccountId":"2","ctxStartEventId":"304","mode":"HTTP_DOWNLOAD"},
> cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result:
> null, initMsid: 280320865129348, completeMsid: null, lastUpdated: null,
> lastPolled: null, created: null}
> 2013-12-11 14:41:07,297 DEBUG [c.c.a.ApiServlet]
> (catalina-exec-7:ctx-b6b9c65e ctx-dd959385) ===END=== 10.144.7.10 -- GET
> command=extractVolume&id=6464d10e-c241-4be5-aba9-1f7486a2e79e&zoneid=4219d3ad-9036-463b-b5dc-a61b64681479&mode=HTTP_DOWNLOAD&response=json&sessionkey=Ll%2Fkk4jy%2B7zY5m4YIPz2jtk9MCs%3D&_=1386753329802
> 2013-12-11 14:41:07,299 INFO [o.a.c.f.j.i.AsyncJobMonitor]
> (Job-Executor-36:ctx-1e464fc3) Add job-75 into job monitoring
> 2013-12-11 14:41:07,299 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl]
> (Job-Executor-36:ctx-1e464fc3) Executing AsyncJobVO {id:75, userId: 2,
> accountId: 2, instanceType: Volume, instanceId: 21, cmd:
> org.apache.cloudstack.api.command.user.volume.ExtractVolumeCmd, cmdInfo:
> {"response":"json","id":"6464d10e-c241-4be5-aba9-1f7486a2e79e","sessionkey":"Ll/kk4jy+7zY5m4YIPz2jtk9MCs\u003d","cmdEventType":"VOLUME.EXTRACT","ctxUserId":"2","zoneid":"4219d3ad-9036-463b-b5dc-a61b64681479","httpmethod":"GET","_":"1386753329802","ctxAccountId":"2","ctxStartEventId":"304","mode":"HTTP_DOWNLOAD"},
> cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result:
> null, initMsid: 280320865129348, completeMsid: null, lastUpdated: null,
> lastPolled: null, created: null}
> 2013-12-11 14:41:07,384 DEBUG [o.a.c.s.m.AncientDataMotionStrategy]
> (Job-Executor-36:ctx-1e464fc3 ctx-dd959385) copyAsync inspecting src type
> VOLUME copyAsync inspecting dest type VOLUME
> 2013-12-11 14:41:07,399 DEBUG [c.c.a.t.Request] (Job-Executor-36:ctx-1e464fc3
> ctx-dd959385) Seq 1-985237081: Sending { Cmd , MgmtId: 280320865129348, via:
> 1(10.102.192.9), Ver: v1, Flags: 100011,
> [{"org.apache.cloudstack.storage.command.CopyCommand":{"srcTO":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"6464d10e-c241-4be5-aba9-1f7486a2e79e","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"f6869306-f861-3984-9612-2ca64d560604","id":4,"poolType":"NetworkFilesystem","host":"10.102.192.19","path":"/HYPERV-SMB/abhinav-primary1?user=abhinav&password=freebsd@123&domain=BLR","port":445,"url":"NetworkFilesystem://10.102.192.19//HYPERV-SMB/abhinav-primary1?user=abhinav&password=freebsd@123&domain=BLR/?ROLE=Primary&STOREUUID=f6869306-f861-3984-9612-2ca64d560604"}},"name":"ROOT-21","size":17179869184,"volumeId":21,"vmName":"i-2-21-VM","accountId":2,"id":21,"deviceId":0,"hypervisorType":"Hyperv"}},"destTO":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"6464d10e-c241-4be5-aba9-1f7486a2e79e","volumeType":"ROOT","dataStore":{"com.cloud.agent.api.to.NfsTO":{"_url":"cifs://10.102.192.19/HYPERV-SMB/abhinav-sec2?user=abhinav&password=freebsd@123&domain=BLR","_role":"Image"}},"name":"ROOT-21","size":17179869184,"path":"volumes/2/21","volumeId":21,"vmName":"i-2-21-VM","accountId":2,"id":21,"deviceId":0,"hypervisorType":"Hyperv"}},"executeInSequence":false,"wait":10800}}]
> }
> 2013-12-11 14:41:07,399 DEBUG [c.c.a.t.Request] (Job-Executor-36:ctx-1e464fc3
> ctx-dd959385) Seq 1-985237081: Executing: { Cmd , MgmtId: 280320865129348,
> via: 1(10.102.192.9), Ver: v1, Flags: 100011,
> [{"org.apache.cloudstack.storage.command.CopyCommand":{"srcTO":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"6464d10e-c241-4be5-aba9-1f7486a2e79e","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"f6869306-f861-3984-9612-2ca64d560604","id":4,"poolType":"NetworkFilesystem","host":"10.102.192.19","path":"/HYPERV-SMB/abhinav-primary1?user=abhinav&password=freebsd@123&domain=BLR","port":445,"url":"NetworkFilesystem://10.102.192.19//HYPERV-SMB/abhinav-primary1?user=abhinav&password=freebsd@123&domain=BLR/?ROLE=Primary&STOREUUID=f6869306-f861-3984-9612-2ca64d560604"}},"name":"ROOT-21","size":17179869184,"volumeId":21,"vmName":"i-2-21-VM","accountId":2,"id":21,"deviceId":0,"hypervisorType":"Hyperv"}},"destTO":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"6464d10e-c241-4be5-aba9-1f7486a2e79e","volumeType":"ROOT","dataStore":{"com.cloud.agent.api.to.NfsTO":{"_url":"cifs://10.102.192.19/HYPERV-SMB/abhinav-sec2?user=abhinav&password=freebsd@123&domain=BLR","_role":"Image"}},"name":"ROOT-21","size":17179869184,"path":"volumes/2/21","volumeId":21,"vmName":"i-2-21-VM","accountId":2,"id":21,"deviceId":0,"hypervisorType":"Hyperv"}},"executeInSequence":false,"wait":10800}}]
> }
> 2013-12-11 14:41:07,400 DEBUG [c.c.a.m.DirectAgentAttache]
> (DirectAgent-104:ctx-82066c95) Seq 1-985237081: Executing request
> 2013-12-11 14:41:07,400 DEBUG [c.c.h.h.r.HypervDirectConnectResource]
> (DirectAgent-104:ctx-82066c95) POST request
> tohttp://10.102.192.9:8250/api/HypervResource/org.apache.cloudstack.storage.command.CopyCommand
> with
> contents{"srcTO":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"6464d10e-c241-4be5-aba9-1f7486a2e79e","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"f6869306-f861-3984-9612-2ca64d560604","id":4,"poolType":"NetworkFilesystem","host":"10.102.192.19","path":"/HYPERV-SMB/abhinav-primary1?user\u003dabhinav\u0026password\u003dfreebsd@123\u0026domain\u003dBLR","port":445,"url":"NetworkFilesystem://10.102.192.19//HYPERV-SMB/abhinav-primary1?user\u003dabhinav\u0026password\u003dfreebsd@123\u0026domain\u003dBLR/?ROLE\u003dPrimary\u0026STOREUUID\u003df6869306-f861-3984-9612-2ca64d560604"}},"name":"ROOT-21","size":17179869184,"volumeId":21,"vmName":"i-2-21-VM","accountId":2,"id":21,"deviceId":0,"hypervisorType":"Hyperv"}},"destTO":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"6464d10e-c241-4be5-aba9-1f7486a2e79e","volumeType":"ROOT","dataStore":{"com.cloud.agent.api.to.NfsTO":{"_url":"cifs://10.102.192.19/HYPERV-SMB/abhinav-sec2?user\u003dabhinav\u0026password\u003dfreebsd@123\u0026domain\u003dBLR","_role":"Image"}},"name":"ROOT-21","size":17179869184,"path":"volumes/2/21","volumeId":21,"vmName":"i-2-21-VM","accountId":2,"id":21,"deviceId":0,"hypervisorType":"Hyperv"}},"executeInSequence":false,"contextMap":{},"wait":10800}
> 2013-12-11 14:41:07,400 DEBUG [c.c.h.h.r.HypervDirectConnectResource]
> (DirectAgent-104:ctx-82066c95) Sending cmd to
> http://10.102.192.9:8250/api/HypervResource/org.apache.cloudstack.storage.command.CopyCommand
> cmd
> data:{"srcTO":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"6464d10e-c241-4be5-aba9-1f7486a2e79e","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"f6869306-f861-3984-9612-2ca64d560604","id":4,"poolType":"NetworkFilesystem","host":"10.102.192.19","path":"/HYPERV-SMB/abhinav-primary1?user\u003dabhinav\u0026password\u003dfreebsd@123\u0026domain\u003dBLR","port":445,"url":"NetworkFilesystem://10.102.192.19//HYPERV-SMB/abhinav-primary1?user\u003dabhinav\u0026password\u003dfreebsd@123\u0026domain\u003dBLR/?ROLE\u003dPrimary\u0026STOREUUID\u003df6869306-f861-3984-9612-2ca64d560604"}},"name":"ROOT-21","size":17179869184,"volumeId":21,"vmName":"i-2-21-VM","accountId":2,"id":21,"deviceId":0,"hypervisorType":"Hyperv"}},"destTO":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"6464d10e-c241-4be5-aba9-1f7486a2e79e","volumeType":"ROOT","dataStore":{"com.cloud.agent.api.to.NfsTO":{"_url":"cifs://10.102.192.19/HYPERV-SMB/abhinav-sec2?user\u003dabhinav\u0026password\u003dfreebsd@123\u0026domain\u003dBLR","_role":"Image"}},"name":"ROOT-21","size":17179869184,"path":"volumes/2/21","volumeId":21,"vmName":"i-2-21-VM","accountId":2,"id":21,"deviceId":0,"hypervisorType":"Hyperv"}},"executeInSequence":false,"contextMap":{},"wait":10800}
> 2013-12-11 14:41:07,448 DEBUG [c.c.h.h.r.HypervDirectConnectResource]
> (DirectAgent-104:ctx-82066c95) POST response
> is[{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"result":false,"details":"org.apache.cloudstack.storage.command.CopyCommand
> failed on exception, Value cannot be null.\r\nParameter name: VolumeObjectTO
> missing primary dataStore in spec {\r\n \"uuid\":
> \"6464d10e-c241-4be5-aba9-1f7486a2e79e\",\r\n \"volumeType\": \"ROOT\",\r\n
> \"dataStore\": {\r\n \"com.cloud.agent.api.to.NfsTO\": {\r\n
> \"_url\":
> \"cifs://10.102.192.19/HYPERV-SMB/abhinav-sec2?user=abhinav&password=freebsd@123&domain=BLR\",\r\n
> \"_role\": \"Image\"\r\n }\r\n },\r\n \"name\": \"ROOT-21\",\r\n
> \"size\": 17179869184,\r\n \"path\": \"volumes/2/21\",\r\n \"volumeId\":
> 21,\r\n \"vmName\": \"i-2-21-VM\",\r\n \"accountId\": 2,\r\n \"id\":
> 21,\r\n \"deviceId\": 0,\r\n \"hypervisorType\":
> \"Hyperv\"\r\n}","newData":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"6464d10e-c241-4be5-aba9-1f7486a2e79e","volumeType":"ROOT","dataStore":{"com.cloud.agent.api.to.NfsTO":{"_url":"cifs://10.102.192.19/HYPERV-SMB/abhinav-sec2?user=abhinav&password=freebsd@123&domain=BLR","_role":"Image"}},"name":"ROOT-21","size":17179869184,"path":"volumes/2/21","volumeId":21,"vmName":"i-2-21-VM","accountId":2,"id":21,"deviceId":0,"hypervisorType":"Hyperv"}},"contextMap":{}}}]
> 2013-12-11 14:41:07,448 DEBUG [c.c.h.h.r.HypervDirectConnectResource]
> (DirectAgent-104:ctx-82066c95) executeRequest received response
> [{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"newData":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"6464d10e-c241-4be5-aba9-1f7486a2e79e","volumeType":"ROOT","dataStore":{"com.cloud.agent.api.to.NfsTO":{"_url":"cifs://10.102.192.19/HYPERV-SMB/abhinav-sec2?user\u003dabhinav\u0026password\u003dfreebsd@123\u0026domain\u003dBLR","_role":"Image"}},"name":"ROOT-21","size":17179869184,"path":"volumes/2/21","volumeId":21,"vmName":"i-2-21-VM","accountId":2,"id":21,"deviceId":0,"hypervisorType":"Hyperv"}},"result":false,"details":"org.apache.cloudstack.storage.command.CopyCommand
> failed on exception, Value cannot be null.\r\nParameter name: VolumeObjectTO
> missing primary dataStore in spec {\r\n \"uuid\":
> \"6464d10e-c241-4be5-aba9-1f7486a2e79e\",\r\n \"volumeType\": \"ROOT\",\r\n
> \"dataStore\": {\r\n \"com.cloud.agent.api.to.NfsTO\": {\r\n
> \"_url\":
> \"cifs://10.102.192.19/HYPERV-SMB/abhinav-sec2?user\u003dabhinav\u0026password\u003dfreebsd@123\u0026domain\u003dBLR\",\r\n
> \"_role\": \"Image\"\r\n }\r\n },\r\n \"name\": \"ROOT-21\",\r\n
> \"size\": 17179869184,\r\n \"path\": \"volumes/2/21\",\r\n \"volumeId\":
> 21,\r\n \"vmName\": \"i-2-21-VM\",\r\n \"accountId\": 2,\r\n \"id\":
> 21,\r\n \"deviceId\": 0,\r\n \"hypervisorType\":
> \"Hyperv\"\r\n}","contextMap":{},"wait":0}}]
> 2013-12-11 14:41:07,449 DEBUG [c.c.a.m.DirectAgentAttache]
> (DirectAgent-104:ctx-82066c95) Seq 1-985237081: Response Received:
> 2013-12-11 14:41:07,449 DEBUG [c.c.a.t.Request]
> (DirectAgent-104:ctx-82066c95) Seq 1-985237081: Processing: { Ans: , MgmtId:
> 280320865129348, via: 1, Ver: v1, Flags: 10,
> [{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"newData":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"6464d10e-c241-4be5-aba9-1f7486a2e79e","volumeType":"ROOT","dataStore":{"com.cloud.agent.api.to.NfsTO":{"_url":"cifs://10.102.192.19/HYPERV-SMB/abhinav-sec2?user=abhinav&password=freebsd@123&domain=BLR","_role":"Image"}},"name":"ROOT-21","size":17179869184,"path":"volumes/2/21","volumeId":21,"vmName":"i-2-21-VM","accountId":2,"id":21,"deviceId":0,"hypervisorType":"Hyperv"}},"result":false,"details":"org.apache.cloudstack.storage.command.CopyCommand
> failed on exception, Value cannot be null.\r\nParameter name: VolumeObjectTO
> missing primary dataStore in spec {\r\n \"uuid\":
> \"6464d10e-c241-4be5-aba9-1f7486a2e79e\",\r\n \"volumeType\": \"ROOT\",\r\n
> \"dataStore\": {\r\n \"com.cloud.agent.api.to.NfsTO\": {\r\n
> \"_url\":
> \"cifs://10.102.192.19/HYPERV-SMB/abhinav-sec2?user=abhinav&password=freebsd@123&domain=BLR\",\r\n
> \"_role\": \"Image\"\r\n }\r\n },\r\n \"name\": \"ROOT-21\",\r\n
> \"size\": 17179869184,\r\n \"path\": \"volumes/2/21\",\r\n \"volumeId\":
> 21,\r\n \"vmName\": \"i-2-21-VM\",\r\n \"accountId\": 2,\r\n \"id\":
> 21,\r\n \"deviceId\": 0,\r\n \"hypervisorType\":
> \"Hyperv\"\r\n}","wait":0}}] }
> 2013-12-11 14:41:07,449 DEBUG [c.c.a.t.Request] (Job-Executor-36:ctx-1e464fc3
> ctx-dd959385) Seq 1-985237081: Received: { Ans: , MgmtId: 280320865129348,
> via: 1, Ver: v1, Flags: 10, { CopyCmdAnswer } }
> 2013-12-11 14:41:07,453 WARN [o.a.c.s.d.ObjectInDataStoreManagerImpl]
> (Job-Executor-36:ctx-1e464fc3 ctx-dd959385) Unsupported data object (VOLUME,
> org.apache.cloudstack.storage.datastore.PrimaryDataStoreImpl@23bfd08b), no
> need to delete from object in store ref table
> 2013-12-11 14:41:07,469 ERROR [c.c.a.ApiAsyncJobDispatcher]
> (Job-Executor-36:ctx-1e464fc3) Unexpected exception while executing
> org.apache.cloudstack.api.command.user.volume.ExtractVolumeCmd
> com.cloud.utils.exception.CloudRuntimeException: Failed to copy the volume
> from the source primary storage pool to secondary storage.
> at
> com.cloud.storage.VolumeApiServiceImpl.extractVolume(VolumeApiServiceImpl.java:1539)
> 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
> com.cloud.event.ActionEventInterceptor.invoke(ActionEventInterceptor.java:50)
> 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 $Proxy233.extractVolume(Unknown Source)
> at
> org.apache.cloudstack.api.command.user.volume.ExtractVolumeCmd.execute(ExtractVolumeCmd.java:131)
> 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:520)
> 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)
> 2013-12-11 14:41:07,474 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl]
> (Job-Executor-36:ctx-1e464fc3) Complete async job-75, jobStatus: FAILED,
> resultCode: 530, result:
> org.apache.cloudstack.api.response.ExceptionResponse/null/{"uuidList":[],"errorcode":530,"errortext":"Failed
> to copy the volume from the source primary storage pool to secondary
> storage."}
> 2013-12-11 14:41:07,483 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl]
> (Job-Executor-36:ctx-1e464fc3) Done executing
> org.apache.cloudstack.api.command.user.volume.ExtractVolumeCmd for job-75
> Error : seen in agent logs :
> Error seen in Hyper-V agent logs :
> 2013-12-11 05:35:55,181 [29] ERROR HypervResource.HypervResourceController
> [904dd841-8504-42db-a883-e7b7cfeb8d95] -
> com.cloud.agent.api.GetStorageStatsCommand failed on exceptionIllegal
> characters in path.
> System.ArgumentException: Illegal characters in path.
> at System.IO.Path.CheckInvalidPathChars(String path, Boolean
> checkAdditional)
> at
> System.Security.Permissions.FileIOPermission.CheckIllegalCharacters(String[]
> str)
> at
> System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess
> access, AccessControlActions control, String[] pathListOrig, Boolean
> checkForDuplicates, Boolean needFullPath, Boolean copyPathList)
> at
> System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess
> access, String[] pathList, Boolean checkForDuplicates, Boolean needFullPath)
> at System.IO.Path.GetFullPath(String path)
> at HypervResource.HypervResourceController.GetCapacityForLocalPath(String
> localStoragePath, Int64& capacityBytes, Int64& availableBytes) in
> c:\source_code\cloudstack\plugins\hypervisors\hyperv\DotNet\ServerResource\HypervResource\HypervResourceController.cs:line
> 1726
> at HypervResource.HypervResourceController.GetStorageStatsCommand(Object
> cmd) in
> c:\source_code\cloudstack\plugins\hypervisors\hyperv\DotNet\ServerResource\HypervResource\HypervResourceController.cs:line
> 1444
> 2013-12-11 05:35:55,181 [29] INFO HypervResource.HypervResourceController
> [904dd841-8504-42db-a883-e7b7cfeb8d95] - {
> "com.cloud.agent.api.GetStorageStatsAnswer": {
> "result": false,
> "details": "com.cloud.agent.api.GetStorageStatsCommand failed on
> exceptionIllegal characters in path.",
> "capacity": 0,
> "used": 0,
> "contextMap": {}
> }
> }
> 2013-12-11 05:35:55,197 [41] INFO HypervResource.HypervResourceController
> [397a3569-f63d-4874-9826-dba57e03cc35] -
> com.cloud.agent.api.GetStorageStatsCommand{
> "id": "f6869306-f861-3984-9612-2ca64d560604",
> "localPath":
> "/HYPERV-SMB/abhinav-primary1?user=abhinav&password=freebsd@123&domain=BLR",
> "pooltype": "NetworkFilesystem",
> "contextMap": {},
> "wait": 0
> }
> 2013-12-11 05:35:55,228 [41] ERROR HypervResource.HypervResourceController
> [397a3569-f63d-4874-9826-dba57e03cc35] -
> com.cloud.agent.api.GetStorageStatsCommand failed on exceptionIllegal
> characters in path.
> System.ArgumentException: Illegal characters in path.
> at System.IO.Path.CheckInvalidPathChars(String path, Boolean
> checkAdditional)
> at
> System.Security.Permissions.FileIOPermission.CheckIllegalCharacters(String[]
> str)
> at
> System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess
> access, AccessControlActions control, String[] pathListOrig, Boolean
> checkForDuplicates, Boolean needFullPath, Boolean copyPathList)
> at
> System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess
> access, String[] pathList, Boolean checkForDuplicates, Boolean needFullPath)
> at System.IO.Path.GetFullPath(String path)
> at HypervResource.HypervResourceController.GetCapacityForLocalPath(String
> localStoragePath, Int64& capacityBytes, Int64& availableBytes) in
> c:\source_code\cloudstack\plugins\hypervisors\hyperv\DotNet\ServerResource\HypervResource\HypervResourceController.cs:line
> 1726
> at HypervResource.HypervResourceController.GetStorageStatsCommand(Object
> cmd) in
> c:\source_code\cloudstack\plugins\hypervisors\hyperv\DotNet\ServerResource\HypervResource\HypervResourceController.cs:line
> 1444
> 2013-12-11 05:35:55,228 [41] INFO HypervResource.HypervResourceController
> [397a3569-f63d-4874-9826-dba57e03cc35] - {
> "com.cloud.agent.api.GetStorageStatsAnswer": {
> "result": false,
> "details": "com.cloud.agent.api.GetStorageStatsCommand failed on
> exceptionIllegal characters in path.",
> "capacity": 0,
> "used": 0,
> "contextMap": {}
> }
> NOTE : In this issue as well as
> https://issues.apache.org/jira/browse/CLOUDSTACK-5455 the error seen in agent
> logs is same. IT can be the root cause for both these issues.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)