[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-5691?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13861456#comment-13861456
 ] 

ASF subversion and git services commented on CLOUDSTACK-5691:
-------------------------------------------------------------

Commit e59420c5146387977530b4720e6ec7dd7a83703c in branch refs/heads/master 
from [~devdeep]
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=e59420c ]

CLOUDSTACK-5691: Fix for attaching an uploaded volume to instance running
on hyperv. There were multiple issues here. Upload volume was actually
failing because the post download check for vhd on the cifs share was
unsuccessful. Also the agent code wasn't parsing the volume path correctly.
Fixed it too.


> [Hyper-V] Attaching an uploaded volume to a VM is failing
> ---------------------------------------------------------
>
>                 Key: CLOUDSTACK-5691
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5691
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>          Components: Hypervisor Controller, Management Server
>    Affects Versions: 4.3.0
>         Environment: hyperv, 4.3, CIFS as primary and secondary storage
>            Reporter: Abhinav Roy
>            Assignee: Devdeep Singh
>            Priority: Critical
>              Labels: hyper-V,, hyper-v, hyperv
>             Fix For: 4.3.0
>
>
> Steps :
> =====================
> 1. Deploy an advanced zone setup with hyperv.
> 2. Create a VM.
> 3. upload a volume.
> 4. Attach the volume uploaded in step 3 to the VM created in step 2.
> Expected behaviour:
> =====================
> Attach volume should succeed.
> Observed behaviour:
> =====================
> Attach volume fails with :
> MS logs :
> ----------------------
> 013-12-31 16:18:14,644 DEBUG [c.c.a.ApiServlet] 
> (catalina-exec-7:ctx-e8c1f6eb) ===START===  10.144.7.20 -- GET  
> command=attachVolume&id=86c04ec1-d29e-404b-b9c6-a42db8b5afe6&virtualMachineId=51ba1f12-34a1-4108-968e-bbd9f6893545&response=json&sessionkey=Hy%2BMYL%2B00HT2HmcPy%2FMiDAr%2FQBw%3D&_=1388486725851
> 2013-12-31 16:18:14,660 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
> (catalina-exec-7:ctx-e8c1f6eb ctx-687f028b) submit async job-239, details: 
> AsyncJobVO {id:239, userId: 2, accountId: 2, instanceType: Volume, 
> instanceId: 55, cmd: 
> org.apache.cloudstack.api.command.user.volume.AttachVolumeCmd, cmdInfo: 
> {"response":"json","id":"86c04ec1-d29e-404b-b9c6-a42db8b5afe6","sessionkey":"Hy+MYL+00HT2HmcPy/MiDAr/QBw\u003d","cmdEventType":"VOLUME.ATTACH","ctxUserId":"2","virtualMachineId":"51ba1f12-34a1-4108-968e-bbd9f6893545","httpmethod":"GET","_":"1388486725851","ctxAccountId":"2","ctxStartEventId":"672"},
>  cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: 
> null, initMsid: 280320865129348, completeMsid: null, lastUpdated: null, 
> lastPolled: null, created: null}
> 2013-12-31 16:18:14,660 DEBUG [c.c.a.ApiServlet] 
> (catalina-exec-7:ctx-e8c1f6eb ctx-687f028b) ===END===  10.144.7.20 -- GET  
> command=attachVolume&id=86c04ec1-d29e-404b-b9c6-a42db8b5afe6&virtualMachineId=51ba1f12-34a1-4108-968e-bbd9f6893545&response=json&sessionkey=Hy%2BMYL%2B00HT2HmcPy%2FMiDAr%2FQBw%3D&_=1388486725851
> 2013-12-31 16:18:14,661 INFO  [o.a.c.f.j.i.AsyncJobMonitor] 
> (Job-Executor-35:ctx-4fc638a9) Add job-239 into job monitoring
> 2013-12-31 16:18:14,662 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
> (Job-Executor-35:ctx-4fc638a9) Executing AsyncJobVO {id:239, userId: 2, 
> accountId: 2, instanceType: Volume, instanceId: 55, cmd: 
> org.apache.cloudstack.api.command.user.volume.AttachVolumeCmd, cmdInfo: 
> {"response":"json","id":"86c04ec1-d29e-404b-b9c6-a42db8b5afe6","sessionkey":"Hy+MYL+00HT2HmcPy/MiDAr/QBw\u003d","cmdEventType":"VOLUME.ATTACH","ctxUserId":"2","virtualMachineId":"51ba1f12-34a1-4108-968e-bbd9f6893545","httpmethod":"GET","_":"1388486725851","ctxAccountId":"2","ctxStartEventId":"672"},
>  cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: 
> null, initMsid: 280320865129348, completeMsid: null, lastUpdated: null, 
> lastPolled: null, created: null}
> 2013-12-31 16:18:14,688 DEBUG [o.a.c.s.a.LocalStoragePoolAllocator] 
> (Job-Executor-35:ctx-4fc638a9 ctx-687f028b) LocalStoragePoolAllocator trying 
> to find storage pool to fit the vm
> 2013-12-31 16:18:14,688 DEBUG [o.a.c.s.a.ClusterScopeStoragePoolAllocator] 
> (Job-Executor-35:ctx-4fc638a9 ctx-687f028b) ClusterScopeStoragePoolAllocator 
> looking for storage pool
> 2013-12-31 16:18:14,688 DEBUG [o.a.c.s.a.ClusterScopeStoragePoolAllocator] 
> (Job-Executor-35:ctx-4fc638a9 ctx-687f028b) Looking for pools in dc: 2  pod:2 
>  cluster:2
> 2013-12-31 16:18:14,691 DEBUG [o.a.c.s.a.AbstractStoragePoolAllocator] 
> (Job-Executor-35:ctx-4fc638a9 ctx-687f028b) Checking if storage pool is 
> suitable, name: null ,poolId: 4
> 2013-12-31 16:18:14,696 DEBUG [c.c.s.StorageManagerImpl] 
> (Job-Executor-35:ctx-4fc638a9 ctx-687f028b) Checking pool: 4 for volume 
> allocation [Vol[55|vm=null|DATADISK]], maxSize : 1997545660416, 
> totalAllocatedSize : 89599652352, askingSize : 0, allocated disable 
> threshold: 0.85
> 2013-12-31 16:18:14,696 DEBUG [o.a.c.s.a.ClusterScopeStoragePoolAllocator] 
> (Job-Executor-35:ctx-4fc638a9 ctx-687f028b) ClusterScopeStoragePoolAllocator 
> returning 1 suitable storage pools
> 2013-12-31 16:18:14,697 DEBUG [o.a.c.e.o.VolumeOrchestrator] 
> (Job-Executor-35:ctx-4fc638a9 ctx-687f028b) Trying to create 
> org.apache.cloudstack.storage.volume.VolumeObject@719ddf22 on 
> org.apache.cloudstack.storage.datastore.PrimaryDataStoreImpl@33a46b74
> 2013-12-31 16:18:14,711 DEBUG 
> [o.a.c.s.d.d.CloudStackPrimaryDataStoreDriverImpl] 
> (Job-Executor-35:ctx-4fc638a9 ctx-687f028b) Creating volume: 
> org.apache.cloudstack.storage.volume.VolumeObject@74c64a24
> 2013-12-31 16:18:14,715 DEBUG [c.c.a.t.Request] (Job-Executor-35:ctx-4fc638a9 
> ctx-687f028b) Seq 5-234160586: Sending  { Cmd , MgmtId: 280320865129348, via: 
> 5(10.102.192.19), Ver: v1, Flags: 100011, 
> [{"org.apache.cloudstack.storage.command.CreateObjectCommand":{"data":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"86c04ec1-d29e-404b-b9c6-a42db8b5afe6","volumeType":"DATADISK","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"faad42df-da9d-356d-a923-df292ac2a661","id":4,"poolType":"NetworkFilesystem","host":"10.102.192.19","path":"/HYPERV-SMB/abhinav-hyperv-ps3?user=abhinav&password=freebsd@123&domain=BLR","port":445,"url":"NetworkFilesystem://10.102.192.19//HYPERV-SMB/abhinav-hyperv-ps3?user=abhinav&password=freebsd@123&domain=BLR/?ROLE=Primary&STOREUUID=faad42df-da9d-356d-a923-df292ac2a661"}},"name":"uplovol","size":0,"volumeId":55,"accountId":2,"format":"VHD","id":55,"hypervisorType":"Hyperv"}},"wait":0}}]
>  }
> 2013-12-31 16:18:14,715 DEBUG [c.c.a.t.Request] (Job-Executor-35:ctx-4fc638a9 
> ctx-687f028b) Seq 5-234160586: Executing:  { Cmd , MgmtId: 280320865129348, 
> via: 5(10.102.192.19), Ver: v1, Flags: 100011, 
> [{"org.apache.cloudstack.storage.command.CreateObjectCommand":{"data":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"86c04ec1-d29e-404b-b9c6-a42db8b5afe6","volumeType":"DATADISK","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"faad42df-da9d-356d-a923-df292ac2a661","id":4,"poolType":"NetworkFilesystem","host":"10.102.192.19","path":"/HYPERV-SMB/abhinav-hyperv-ps3?user=abhinav&password=freebsd@123&domain=BLR","port":445,"url":"NetworkFilesystem://10.102.192.19//HYPERV-SMB/abhinav-hyperv-ps3?user=abhinav&password=freebsd@123&domain=BLR/?ROLE=Primary&STOREUUID=faad42df-da9d-356d-a923-df292ac2a661"}},"name":"uplovol","size":0,"volumeId":55,"accountId":2,"format":"VHD","id":55,"hypervisorType":"Hyperv"}},"wait":0}}]
>  }
> 2013-12-31 16:18:14,716 DEBUG [c.c.a.m.DirectAgentAttache] 
> (DirectAgent-454:ctx-3c69b4a6) Seq 5-234160586: Executing request
> 2013-12-31 16:18:14,716 DEBUG [c.c.h.h.r.HypervDirectConnectResource] 
> (DirectAgent-454:ctx-3c69b4a6) POST request 
> tohttp://10.102.192.19:8250/api/HypervResource/org.apache.cloudstack.storage.command.CreateObjectCommand
>  with 
> contents{"data":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"86c04ec1-d29e-404b-b9c6-a42db8b5afe6","volumeType":"DATADISK","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"faad42df-da9d-356d-a923-df292ac2a661","id":4,"poolType":"NetworkFilesystem","host":"10.102.192.19","path":"/HYPERV-SMB/abhinav-hyperv-ps3?user\u003dabhinav\u0026password\u003dfreebsd@123\u0026domain\u003dBLR","port":445,"url":"NetworkFilesystem://10.102.192.19//HYPERV-SMB/abhinav-hyperv-ps3?user\u003dabhinav\u0026password\u003dfreebsd@123\u0026domain\u003dBLR/?ROLE\u003dPrimary\u0026STOREUUID\u003dfaad42df-da9d-356d-a923-df292ac2a661"}},"name":"uplovol","size":0,"volumeId":55,"accountId":2,"format":"VHD","id":55,"hypervisorType":"Hyperv"}},"contextMap":{},"wait":0}
> 2013-12-31 16:18:14,716 DEBUG [c.c.h.h.r.HypervDirectConnectResource] 
> (DirectAgent-454:ctx-3c69b4a6) Sending cmd to 
> http://10.102.192.19:8250/api/HypervResource/org.apache.cloudstack.storage.command.CreateObjectCommand
>  cmd 
> data:{"data":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"86c04ec1-d29e-404b-b9c6-a42db8b5afe6","volumeType":"DATADISK","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"faad42df-da9d-356d-a923-df292ac2a661","id":4,"poolType":"NetworkFilesystem","host":"10.102.192.19","path":"/HYPERV-SMB/abhinav-hyperv-ps3?user\u003dabhinav\u0026password\u003dfreebsd@123\u0026domain\u003dBLR","port":445,"url":"NetworkFilesystem://10.102.192.19//HYPERV-SMB/abhinav-hyperv-ps3?user\u003dabhinav\u0026password\u003dfreebsd@123\u0026domain\u003dBLR/?ROLE\u003dPrimary\u0026STOREUUID\u003dfaad42df-da9d-356d-a923-df292ac2a661"}},"name":"uplovol","size":0,"volumeId":55,"accountId":2,"format":"VHD","id":55,"hypervisorType":"Hyperv"}},"contextMap":{},"wait":0}
> 2013-12-31 16:18:15,781 DEBUG [c.c.h.h.r.HypervDirectConnectResource] 
> (DirectAgent-454:ctx-3c69b4a6) POST response 
> is[{"org.apache.cloudstack.storage.command.CreateObjectAnswer":{"result":false,"details":"org.apache.cloudstack.storage.command.CreateObjectCommand
>  failed on exception, Hyper-V Job failed, Error Code:32773, Description: 
> Failed to create the virtual hard disk.\n\nThe system failed to create 
> '\\\\10.102.192.19\\HYPERV-SMB\\abhinav-hyperv-ps3\\uplovol.vhd': One or more 
> arguments are invalid 
> (0x80070057).","data":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"86c04ec1-d29e-404b-b9c6-a42db8b5afe6","volumeType":"DATADISK","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"faad42df-da9d-356d-a923-df292ac2a661","id":4,"poolType":"NetworkFilesystem","host":"10.102.192.19","path":"/HYPERV-SMB/abhinav-hyperv-ps3?user=abhinav&password=freebsd@123&domain=BLR","port":445,"url":"NetworkFilesystem://10.102.192.19//HYPERV-SMB/abhinav-hyperv-ps3?user=abhinav&password=freebsd@123&domain=BLR/?ROLE=Primary&STOREUUID=faad42df-da9d-356d-a923-df292ac2a661"}},"name":"uplovol","size":0,"volumeId":55,"accountId":2,"format":"VHD","id":55,"hypervisorType":"Hyperv"}},"contextMap":{}}}]
> 2013-12-31 16:18:15,782 DEBUG [c.c.h.h.r.HypervDirectConnectResource] 
> (DirectAgent-454:ctx-3c69b4a6) executeRequest received response 
> [{"org.apache.cloudstack.storage.command.CreateObjectAnswer":{"data":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"86c04ec1-d29e-404b-b9c6-a42db8b5afe6","volumeType":"DATADISK","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"faad42df-da9d-356d-a923-df292ac2a661","id":4,"poolType":"NetworkFilesystem","host":"10.102.192.19","path":"/HYPERV-SMB/abhinav-hyperv-ps3?user\u003dabhinav\u0026password\u003dfreebsd@123\u0026domain\u003dBLR","port":445,"url":"NetworkFilesystem://10.102.192.19//HYPERV-SMB/abhinav-hyperv-ps3?user\u003dabhinav\u0026password\u003dfreebsd@123\u0026domain\u003dBLR/?ROLE\u003dPrimary\u0026STOREUUID\u003dfaad42df-da9d-356d-a923-df292ac2a661"}},"name":"uplovol","size":0,"volumeId":55,"accountId":2,"format":"VHD","id":55,"hypervisorType":"Hyperv"}},"result":false,"details":"org.apache.cloudstack.storage.command.CreateObjectCommand
>  failed on exception, Hyper-V Job failed, Error Code:32773, Description: 
> Failed to create the virtual hard disk.\n\nThe system failed to create 
> \u0027\\\\10.102.192.19\\HYPERV-SMB\\abhinav-hyperv-ps3\\uplovol.vhd\u0027: 
> One or more arguments are invalid (0x80070057).","contextMap":{},"wait":0}}]
> 2013-12-31 16:18:15,782 DEBUG [c.c.a.m.DirectAgentAttache] 
> (DirectAgent-454:ctx-3c69b4a6) Seq 5-234160586: Response Received:
> 2013-12-31 16:18:15,782 DEBUG [c.c.a.t.Request] 
> (DirectAgent-454:ctx-3c69b4a6) Seq 5-234160586: Processing:  { Ans: , MgmtId: 
> 280320865129348, via: 5, Ver: v1, Flags: 10, 
> [{"org.apache.cloudstack.storage.command.CreateObjectAnswer":{"data":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"86c04ec1-d29e-404b-b9c6-a42db8b5afe6","volumeType":"DATADISK","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"faad42df-da9d-356d-a923-df292ac2a661","id":4,"poolType":"NetworkFilesystem","host":"10.102.192.19","path":"/HYPERV-SMB/abhinav-hyperv-ps3?user=abhinav&password=freebsd@123&domain=BLR","port":445,"url":"NetworkFilesystem://10.102.192.19//HYPERV-SMB/abhinav-hyperv-ps3?user=abhinav&password=freebsd@123&domain=BLR/?ROLE=Primary&STOREUUID=faad42df-da9d-356d-a923-df292ac2a661"}},"name":"uplovol","size":0,"volumeId":55,"accountId":2,"format":"VHD","id":55,"hypervisorType":"Hyperv"}},"result":false,"details":"org.apache.cloudstack.storage.command.CreateObjectCommand
>  failed on exception, Hyper-V Job failed, Error Code:32773, Description: 
> Failed to create the virtual hard disk.\n\nThe system failed to create 
> '\\\\10.102.192.19\\HYPERV-SMB\\abhinav-hyperv-ps3\\uplovol.vhd': One or more 
> arguments are invalid (0x80070057).","wait":0}}] }
> 2013-12-31 16:18:15,782 DEBUG [c.c.a.t.Request] (Job-Executor-35:ctx-4fc638a9 
> ctx-687f028b) Seq 5-234160586: Received:  { Ans: , MgmtId: 280320865129348, 
> via: 5, Ver: v1, Flags: 10, { CreateObjectAnswer } }
> 2013-12-31 16:18:15,786 WARN  [o.a.c.s.d.ObjectInDataStoreManagerImpl] 
> (Job-Executor-35:ctx-4fc638a9 ctx-687f028b) Unsupported data object (VOLUME, 
> org.apache.cloudstack.storage.datastore.PrimaryDataStoreImpl@4eabc6ad), no 
> need to delete from object in store ref table
> 2013-12-31 16:18:15,786 DEBUG [o.a.c.e.o.VolumeOrchestrator] 
> (Job-Executor-35:ctx-4fc638a9 ctx-687f028b) create volume failed: 
> org.apache.cloudstack.storage.command.CreateObjectCommand failed on 
> exception, Hyper-V Job failed, Error Code:32773, Description: Failed to 
> create the virtual hard disk.
> The system failed to create 
> '\\10.102.192.19\HYPERV-SMB\abhinav-hyperv-ps3\uplovol.vhd': One or more 
> arguments are invalid (0x80070057).
> 2013-12-31 16:18:15,787 ERROR [c.c.a.ApiAsyncJobDispatcher] 
> (Job-Executor-35:ctx-4fc638a9) Unexpected exception while executing 
> org.apache.cloudstack.api.command.user.volume.AttachVolumeCmd
> com.cloud.utils.exception.CloudRuntimeException: create volume 
> failed:org.apache.cloudstack.storage.command.CreateObjectCommand failed on 
> exception, Hyper-V Job failed, Error Code:32773, Description: Failed to 
> create the virtual hard disk.
> The system failed to create 
> '\\10.102.192.19\HYPERV-SMB\abhinav-hyperv-ps3\uplovol.vhd': One or more 
> arguments are invalid (0x80070057).
>         at 
> org.apache.cloudstack.engine.orchestration.VolumeOrchestrator.createVolume(VolumeOrchestrator.java:474)
>         at 
> org.apache.cloudstack.engine.orchestration.VolumeOrchestrator.createVolumeOnPrimaryStorage(VolumeOrchestrator.java:745)
>         at 
> com.cloud.storage.VolumeApiServiceImpl.attachVolumeToVM(VolumeApiServiceImpl.java:1247)
>         at 
> com.cloud.storage.VolumeApiServiceImpl.orchestrateAttachVolumeToVM(VolumeApiServiceImpl.java:1125)
>         at 
> com.cloud.storage.VolumeApiServiceImpl.attachVolumeToVM(VolumeApiServiceImpl.java:1100)
>         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.attachVolumeToVM(Unknown Source)
>         at 
> org.apache.cloudstack.api.command.user.volume.AttachVolumeCmd.execute(AttachVolumeCmd.java:123)
>         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)
> 2013-12-31 16:18:15,795 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
> (Job-Executor-35:ctx-4fc638a9) Complete async job-239, jobStatus: FAILED, 
> resultCode: 530, result: 
> org.apache.cloudstack.api.response.ExceptionResponse/null/{"uuidList":[],"errorcode":530,"errortext":"create
>  volume failed:org.apache.cloudstack.storage.command.CreateObjectCommand 
> failed on exception, Hyper-V Job failed, Error Code:32773, Description: 
> Failed to create the virtual hard disk.\n\nThe system failed to create 
> \u0027\\\\10.102.192.19\\HYPERV-SMB\\abhinav-hyperv-ps3\\uplovol.vhd\u0027: 
> One or more arguments are invalid (0x80070057)."}
> Agent Logs:
> ------------------------------
> 2013-12-31 23:27:10,405 [15] INFO  HypervResource.HypervResourceController 
> [61f33add-7bce-4941-9bf5-20ac5a44c09e] - 
> org.apache.cloudstack.storage.command.CreateObjectCommand{
>   "data": {
>     "org.apache.cloudstack.storage.to.VolumeObjectTO": {
>       "uuid": "86c04ec1-d29e-404b-b9c6-a42db8b5afe6",
>       "volumeType": "DATADISK",
>       "dataStore": {
>         "org.apache.cloudstack.storage.to.PrimaryDataStoreTO": {
>           "uuid": "faad42df-da9d-356d-a923-df292ac2a661",
>           "id": 4,
>           "poolType": "NetworkFilesystem",
>           "host": "10.102.192.19",
>           "path": 
> "/HYPERV-SMB/abhinav-hyperv-ps3?user=abhinav&password=freebsd@123&domain=BLR",
>           "port": 445,
>           "url": 
> "NetworkFilesystem://10.102.192.19//HYPERV-SMB/abhinav-hyperv-ps3?user=abhinav&password=freebsd@123&domain=BLR/?ROLE=Primary&STOREUUID=faad42df-da9d-356d-a923-df292ac2a661"
>         }
>       },
>       "name": "uplovol",
>       "size": 0,
>       "volumeId": 55,
>       "accountId": 2,
>       "format": "VHD",
>       "id": 55,
>       "hypervisorType": "Hyperv"
>     }
>   },
>   "contextMap": {},
>   "wait": 0
> }
> 2013-12-31 23:27:10,436 [15] INFO  HypervResource.WmiCallsV2 
> [61f33add-7bce-4941-9bf5-20ac5a44c09e] - In progress... 0% completed.
> 2013-12-31 23:27:11,452 [15] ERROR HypervResource.WmiCallsV2 
> [61f33add-7bce-4941-9bf5-20ac5a44c09e] - Hyper-V Job failed, Error 
> Code:32773, Description: Failed to create the virtual hard disk.
> The system failed to create 
> '\\10.102.192.19\HYPERV-SMB\abhinav-hyperv-ps3\uplovol.vhd': One or more 
> arguments are invalid (0x80070057).
> HypervResource.WmiException: Hyper-V Job failed, Error Code:32773, 
> Description: Failed to create the virtual hard disk.
> The system failed to create 
> '\\10.102.192.19\HYPERV-SMB\abhinav-hyperv-ps3\uplovol.vhd': One or more 
> arguments are invalid (0x80070057).
> 2013-12-31 23:27:11,452 [15] ERROR HypervResource.HypervResourceController 
> [61f33add-7bce-4941-9bf5-20ac5a44c09e] - 
> org.apache.cloudstack.storage.command.CreateObjectCommand failed on 
> exception, Hyper-V Job failed, Error Code:32773, Description: Failed to 
> create the virtual hard disk.
> The system failed to create 
> '\\10.102.192.19\HYPERV-SMB\abhinav-hyperv-ps3\uplovol.vhd': One or more 
> arguments are invalid (0x80070057).
> HypervResource.WmiException: Hyper-V Job failed, Error Code:32773, 
> Description: Failed to create the virtual hard disk.
> The system failed to create 
> '\\10.102.192.19\HYPERV-SMB\abhinav-hyperv-ps3\uplovol.vhd': One or more 
> arguments are invalid (0x80070057).
>    at HypervResource.WmiCallsV2.StorageJobCompleted(ManagementPath jobPath)
>    at HypervResource.WmiCallsV2.CreateDynamicVirtualHardDisk(UInt64 
> MaxInternalSize, String Path)
>    at HypervResource.HypervResourceController.CreateObjectCommand(Object cmd)
> 2013-12-31 23:27:11,452 [15] INFO  HypervResource.HypervResourceController 
> [61f33add-7bce-4941-9bf5-20ac5a44c09e] - {
>   "org.apache.cloudstack.storage.command.CreateObjectAnswer": {
>     "result": false,
>     "details": "org.apache.cloudstack.storage.command.CreateObjectCommand 
> failed on exception, Hyper-V Job failed, Error Code:32773, Description: 
> Failed to create the virtual hard disk.\n\nThe system failed to create 
> '\\\\10.102.192.19\\HYPERV-SMB\\abhinav-hyperv-ps3\\uplovol.vhd': One or more 
> arguments are invalid (0x80070057).",
>     "data": {
>       "org.apache.cloudstack.storage.to.VolumeObjectTO": {
>         "uuid": "86c04ec1-d29e-404b-b9c6-a42db8b5afe6",
>         "volumeType": "DATADISK",
>         "dataStore": {
>           "org.apache.cloudstack.storage.to.PrimaryDataStoreTO": {
>             "uuid": "faad42df-da9d-356d-a923-df292ac2a661",
>             "id": 4,
>             "poolType": "NetworkFilesystem",
>             "host": "10.102.192.19",
>             "path": 
> "/HYPERV-SMB/abhinav-hyperv-ps3?user=abhinav&password=freebsd@123&domain=BLR",
>             "port": 445,
>             "url": 
> "NetworkFilesystem://10.102.192.19//HYPERV-SMB/abhinav-hyperv-ps3?user=abhinav&password=freebsd@123&domain=BLR/?ROLE=Primary&STOREUUID=faad42df-da9d-356d-a923-df292ac2a661"
>           }
>         },
>         "name": "uplovol",
>         "size": 0,
>         "volumeId": 55,
>         "accountId": 2,
>         "format": "VHD",
>         "id": 55,
>         "hypervisorType": "Hyperv"
>       }
>     },
>     "contextMap": {}
>   }
> }
> 2013-12-31 23:27:15,030 [15] INFO  HypervResource.HypervResourceController 
> [b9708a13-4e1f-465b-bd3a-7684af91216e] - 
> com.cloud.agent.api.PingRoutingCommand{
>   "_gatewayAccessible": true,
>   "_vnetAccessible": true,
>   "hostType": "Routing",
>   "hostId": 5,
>   "contextMap": {},
>   "wait": 0
> }
> 2013-12-31 23:27:15,030 [15] INFO  HypervResource.HypervResourceController 
> [b9708a13-4e1f-465b-bd3a-7684af91216e] - {
>   "com.cloud.agent.api.Answer": {
>     "result": true,
>     "details": "success - NOP for PingRoutingCommand",
>     "_reconnect": false,
>     "contextMap": {}
>   }
> }
> 2013-12-31 23:27:36,546 [14] INFO  HypervResource.HypervResourceController 
> [2ba14dd6-812b-498e-aa2b-a6790f5470ea] - 
> com.cloud.agent.api.GetHostStatsCommand{
>   "hostGuid": "1ff9f16d-037a-3e33-a912-be7ffca59d5e-HypervResource",
>   "hostName": "10.102.192.19",
>   "hostId": 5,
>   "contextMap": {},
>   "wait": 0
> }
> 2013-12-31 23:27:37,858 [17] INFO  HypervResource.HypervResourceController 
> [e684998d-38f9-4d6f-a7cc-fa030143ca96] - 
> com.cloud.agent.api.GetStorageStatsCommand{
>   "id": "1ff9f16d-037a-3e33-a912-be7ffca59d5e-HypervResource",
>   "localPath": "C:\\Users\\Public\\Documents\\Hyper-V\\Virtual Hard Disks",
>   "pooltype": "Filesystem",
>   "contextMap": {},
>   "wait": 0



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

Reply via email to