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

[Hyper-V]Create template T1 from a volume, then deploy V1 from T1, now try to create a template T2 from V1's root volume. It is failing

Details

    Description

      Steps :
      ========================
      1. Deploy Hyper-V advanced zone setup.
      2. Create a VM v1 from default centos template.
      3. Stop v1 and create template T1 from v1's root volume.
      4. create a VM v2 from T1.
      5. Stop v2 and create template T2 from v2's root volume.

      Expected Behavior :
      ========================
      All the above steps should have succeeded.

      Observed Behavior :
      ========================
      Step 5 is failing with the following error :

      2014-06-09 15:40:09,269 DEBUG [c.c.a.ApiServlet] (catalina-exec-4:ctx-43436526) ===START=== 10.144.7.13 – GET command=createTemplate&response=json&sessionkey=fGX4uIHoj2mx%2BzfKOA579EC%2FQjM%3D&volumeId=d33b806d-8c96-4aff-8e3f-2efa78083a7f&name=tempfromvol-root12&displayText=tempfromvol-root12&osTypeId=a000795a-ebce-11e3-b00a-c264afd952f5&isPublic=true&passwordEnabled=false&isdynamicallyscalable=false&isfeatured=true&_=1402308159938
      2014-06-09 15:40:09,296 DEBUG [c.c.t.TemplateManagerImpl] (catalina-exec-4:ctx-43436526 ctx-b0e507ef) This template is getting created from other template, setting source template Id to: 202
      2014-06-09 15:40:09,367 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (catalina-exec-4:ctx-43436526 ctx-b0e507ef) submit async job-122, details: AsyncJobVO {id:122, userId: 2, accountId: 2, instanceType: Template, instanceId: 203, cmd: org.apache.cloudstack.api.command.admin.template.CreateTemplateCmdByAdmin, cmdInfo: {"sessionkey":"fGX4uIHoj2mx+zfKOA579EC/QjM\u003d","cmdEventType":"TEMPLATE.CREATE","ctxUserId":"2","volumeId":"d33b806d-8c96-4aff-8e3f-2efa78083a7f","httpmethod":"GET","osTypeId":"a000795a-ebce-11e3-b00a-c264afd952f5","isPublic":"true","isfeatured":"true","id":"203","isdynamicallyscalable":"false","response":"json","ctxDetails":"

      {\"com.cloud.template.VirtualMachineTemplate\":203,\"com.cloud.storage.Volume\":24,\"VirtualMachineTemplate\":\"77913d8e-99f9-43f9-9dd2-a498ebe37d75\",\"com.cloud.storage.GuestOS\":182}

      ","displayText":"tempfromvol-root12","passwordEnabled":"false","name":"tempfromvol-root12","_":"1402308159938","uuid":"77913d8e-99f9-43f9-9dd2-a498ebe37d75","ctxAccountId":"2","ctxStartEventId":"218"}, cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: null, initMsid: 213737702773493, completeMsid: null, lastUpdated: null, lastPolled: null, created: null}
      2014-06-09 15:40:09,368 DEBUG [c.c.a.ApiServlet] (catalina-exec-4:ctx-43436526 ctx-b0e507ef) ===END=== 10.144.7.13 – GET command=createTemplate&response=json&sessionkey=fGX4uIHoj2mx%2BzfKOA579EC%2FQjM%3D&volumeId=d33b806d-8c96-4aff-8e3f-2efa78083a7f&name=tempfromvol-root12&displayText=tempfromvol-root12&osTypeId=a000795a-ebce-11e3-b00a-c264afd952f5&isPublic=true&passwordEnabled=false&isdynamicallyscalable=false&isfeatured=true&_=1402308159938
      2014-06-09 15:40:09,370 INFO [o.a.c.f.j.i.AsyncJobMonitor] (API-Job-Executor-34:ctx-c3c1954c job-122) Add job-122 into job monitoring
      2014-06-09 15:40:09,370 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-34:ctx-c3c1954c job-122) Executing AsyncJobVO {id:122, userId: 2, accountId: 2, instanceType: Template, instanceId: 203, cmd: org.apache.cloudstack.api.command.admin.template.CreateTemplateCmdByAdmin, cmdInfo: {"sessionkey":"fGX4uIHoj2mx+zfKOA579EC/QjM\u003d","cmdEventType":"TEMPLATE.CREATE","ctxUserId":"2","volumeId":"d33b806d-8c96-4aff-8e3f-2efa78083a7f","httpmethod":"GET","osTypeId":"a000795a-ebce-11e3-b00a-c264afd952f5","isPublic":"true","isfeatured":"true","id":"203","isdynamicallyscalable":"false","response":"json","ctxDetails":"

      {\"com.cloud.template.VirtualMachineTemplate\":203,\"com.cloud.storage.Volume\":24,\"VirtualMachineTemplate\":\"77913d8e-99f9-43f9-9dd2-a498ebe37d75\",\"com.cloud.storage.GuestOS\":182}

      ","displayText":"tempfromvol-root12","passwordEnabled":"false","name":"tempfromvol-root12","_":"1402308159938","uuid":"77913d8e-99f9-43f9-9dd2-a498ebe37d75","ctxAccountId":"2","ctxStartEventId":"218"}, cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: null, initMsid: 213737702773493, completeMsid: null, lastUpdated: null, lastPolled: null, created: null}
      2014-06-09 15:40:09,378 WARN [c.c.a.d.ParamGenericValidationWorker] (API-Job-Executor-34:ctx-c3c1954c job-122 ctx-ad188c83) Received unknown parameters for command createTemplate. Unknown parameters : ctxdetails
      2014-06-09 15:40:09,411 DEBUG [o.a.c.s.i.TemplateDataFactoryImpl] (API-Job-Executor-34:ctx-c3c1954c job-122 ctx-ad188c83) template 203 is already in store:1, type:Image
      2014-06-09 15:40:09,424 DEBUG [o.a.c.s.m.AncientDataMotionStrategy] (API-Job-Executor-34:ctx-c3c1954c job-122 ctx-ad188c83) copyAsync inspecting src type VOLUME copyAsync inspecting dest type TEMPLATE
      2014-06-09 15:40:09,442 DEBUG [c.c.a.t.Request] (API-Job-Executor-34:ctx-c3c1954c job-122 ctx-ad188c83) Seq 4-6982549747261244414: Sending { Cmd , MgmtId: 213737702773493, via: 4(10.102.244.21), Ver: v1, Flags: 100011, [{"org.apache.cloudstack.storage.command.CopyCommand":{"srcTO":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"d33b806d-8c96-4aff-8e3f-2efa78083a7f","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"38aee7de-07f1-3f23-8f8d-6a772fb9811d","id":8,"poolType":"SMB","host":"SMB19","path":"/hyperv-share/abhinav-ps5?user=abhinavroy&domain=BLR","port":445,"url":"SMB://SMB19/hyperv-share/abhinav-ps5?user=abhinavroy&domain=BLR/?ROLE=Primary&STOREUUID=38aee7de-07f1-3f23-8f8d-6a772fb9811d"}},"name":"ROOT-12","size":10737418240,"path":"d33b806d-8c96-4aff-8e3f-2efa78083a7f","volumeId":24,"vmName":"i-2-12-VM","accountId":2,"format":"VHD","id":24,"deviceId":0,"hypervisorType":"Hyperv"}},"destTO":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"path":"template/tmpl/2/203","uuid":"77913d8e-99f9-43f9-9dd2-a498ebe37d75","id":203,"format":"RAW","accountId":2,"hvm":true,"displayText":"tempfromvol-root12","imageDataStore":{"com.cloud.agent.api.to.NfsTO":{"_url":"cifs://10.102.192.19/hyperv-share/abhinav-ss1?user=abhinavroy&domain=BLR","_role":"Image"}},"name":"28b05d561-68a1-3afc-8dbc-c152e27dad8e","hypervisorType":"Hyperv"}},"executeInSequence":false,"options":{},"wait":10800}}] }
      2014-06-09 15:40:09,443 DEBUG [c.c.a.t.Request] (API-Job-Executor-34:ctx-c3c1954c job-122 ctx-ad188c83) Seq 4-6982549747261244414: Executing: { Cmd , MgmtId: 213737702773493, via: 4(10.102.244.21), Ver: v1, Flags: 100011, [{"org.apache.cloudstack.storage.command.CopyCommand":{"srcTO":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"d33b806d-8c96-4aff-8e3f-2efa78083a7f","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"38aee7de-07f1-3f23-8f8d-6a772fb9811d","id":8,"poolType":"SMB","host":"SMB19","path":"/hyperv-share/abhinav-ps5?user=abhinavroy&domain=BLR","port":445,"url":"SMB://SMB19/hyperv-share/abhinav-ps5?user=abhinavroy&domain=BLR/?ROLE=Primary&STOREUUID=38aee7de-07f1-3f23-8f8d-6a772fb9811d"}},"name":"ROOT-12","size":10737418240,"path":"d33b806d-8c96-4aff-8e3f-2efa78083a7f","volumeId":24,"vmName":"i-2-12-VM","accountId":2,"format":"VHD","id":24,"deviceId":0,"hypervisorType":"Hyperv"}},"destTO":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"path":"template/tmpl/2/203","uuid":"77913d8e-99f9-43f9-9dd2-a498ebe37d75","id":203,"format":"RAW","accountId":2,"hvm":true,"displayText":"tempfromvol-root12","imageDataStore":{"com.cloud.agent.api.to.NfsTO":{"_url":"cifs://10.102.192.19/hyperv-share/abhinav-ss1?user=abhinavroy&domain=BLR","_role":"Image"}},"name":"28b05d561-68a1-3afc-8dbc-c152e27dad8e","hypervisorType":"Hyperv"}},"executeInSequence":false,"options":{},"wait":10800}}] }
      2014-06-09 15:40:09,443 DEBUG [c.c.a.m.DirectAgentAttache] (DirectAgent-310:ctx-4ddd7ddd) Seq 4-6982549747261244414: Executing request
      2014-06-09 15:40:09,444 DEBUG [c.c.h.h.r.HypervDirectConnectResource] (DirectAgent-310:ctx-4ddd7ddd) POST request to https://10.102.244.21:8250/api/HypervResource/org.apache.cloudstack.storage.command.CopyCommand with contents {"srcTO":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"d33b806d-8c96-4aff-8e3f-2efa78083a7f","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"38aee7de-07f1-3f23-8f8d-6a772fb9811d","id":8,"poolType":"SMB","host":"SMB19","path":"/hyperv-share/abhinav-ps5?user=abhinavroy&domain=BLR","port":445,"url":"SMB://SMB19/hyperv-share/abhinav-ps5?user=abhinavroy&domain=BLR/?ROLE=Primary&STOREUUID=38aee7de-07f1-3f23-8f8d-6a772fb9811d"}},"name":"ROOT-12","size":10737418240,"path":"d33b806d-8c96-4aff-8e3f-2efa78083a7f","volumeId":24,"vmName":"i-2-12-VM","accountId":2,"format":"VHD","id":24,"deviceId":0,"hypervisorType":"Hyperv"}},"destTO":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"path":"template/tmpl/2/203","uuid":"77913d8e-99f9-43f9-9dd2-a498ebe37d75","id":203,"format":"RAW","accountId":2,"hvm":true,"displayText":"tempfromvol-root12","imageDataStore":{"com.cloud.agent.api.to.NfsTO":{"_url":"cifs://10.102.192.19/hyperv-share/abhinav-ss1?user=abhinavroy&domain=BLR","_role":"Image"}},"name":"28b05d561-68a1-3afc-8dbc-c152e27dad8e","hypervisorType":"Hyperv"}},"executeInSequence":false,"options":{},"contextMap":{},"wait":10800}
      2014-06-09 15:40:09,448 DEBUG [c.c.h.h.r.HypervDirectConnectResource] (DirectAgent-310:ctx-4ddd7ddd) Sending cmd to https://10.102.244.21:8250/api/HypervResource/org.apache.cloudstack.storage.command.CopyCommand cmd data:{"srcTO":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"d33b806d-8c96-4aff-8e3f-2efa78083a7f","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"38aee7de-07f1-3f23-8f8d-6a772fb9811d","id":8,"poolType":"SMB","host":"SMB19","path":"/hyperv-share/abhinav-ps5?user=abhinavroy&domain=BLR","port":445,"url":"SMB://SMB19/hyperv-share/abhinav-ps5?user=abhinavroy&domain=BLR/?ROLE=Primary&STOREUUID=38aee7de-07f1-3f23-8f8d-6a772fb9811d"}},"name":"ROOT-12","size":10737418240,"path":"d33b806d-8c96-4aff-8e3f-2efa78083a7f","volumeId":24,"vmName":"i-2-12-VM","accountId":2,"format":"VHD","id":24,"deviceId":0,"hypervisorType":"Hyperv"}},"destTO":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"path":"template/tmpl/2/203","uuid":"77913d8e-99f9-43f9-9dd2-a498ebe37d75","id":203,"format":"RAW","accountId":2,"hvm":true,"displayText":"tempfromvol-root12","imageDataStore":{"com.cloud.agent.api.to.NfsTO":{"_url":"cifs://10.102.192.19/hyperv-share/abhinav-ss1?user=abhinavroy&domain=BLR","_role":"Image"}},"name":"28b05d561-68a1-3afc-8dbc-c152e27dad8e","hypervisorType":"Hyperv"}},"executeInSequence":false,"options":{},"contextMap":{},"wait":10800}
      2014-06-09 15:40:09,523 DEBUG [c.c.h.h.r.HypervDirectConnectResource] (DirectAgent-310:ctx-4ddd7ddd) POST response is [{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"result":false,"details":"org.apache.cloudstack.storage.command.CopyCommand failed on exception, net use of share \\10.102.192.19/hyperv-share/abhinav-ss1failed with Error: Unknown, 1219","newData":null,"contextMap":{}}}]
      2014-06-09 15:40:09,524 DEBUG [c.c.h.h.r.HypervDirectConnectResource] (DirectAgent-310:ctx-4ddd7ddd) executeRequest received response [Lcom.cloud.agent.api.Answer;@1d3a89c9
      2014-06-09 15:40:09,524 DEBUG [c.c.a.m.DirectAgentAttache] (DirectAgent-310:ctx-4ddd7ddd) Seq 4-6982549747261244414: Response Received:
      2014-06-09 15:40:09,524 DEBUG [c.c.a.t.Request] (DirectAgent-310:ctx-4ddd7ddd) Seq 4-6982549747261244414: Processing: { Ans: , MgmtId: 213737702773493, via: 4, Ver: v1, Flags: 10, [{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"result":false,"details":"org.apache.cloudstack.storage.command.CopyCommand failed on exception, net use of share \\\\10.102.192.19/hyperv-share/abhinav-ss1failed with Error: Unknown, 1219","wait":0}}] }
      2014-06-09 15:40:09,524 DEBUG [c.c.a.t.Request] (API-Job-Executor-34:ctx-c3c1954c job-122 ctx-ad188c83) Seq 4-6982549747261244414: Received: { Ans: , MgmtId: 213737702773493, via: 4, Ver: v1, Flags: 10,

      { CopyCmdAnswer }

      }
      2014-06-09 15:40:09,528 DEBUG [c.c.t.TemplateManagerImpl] (API-Job-Executor-34:ctx-c3c1954c job-122 ctx-ad188c83) Failed to create templateorg.apache.cloudstack.storage.command.CopyCommand failed on exception, net use of share
      10.102.192.19/hyperv-share/abhinav-ss1failed with Error: Unknown, 1219
      2014-06-09 15:40:09,571 ERROR [c.c.a.ApiAsyncJobDispatcher] (API-Job-Executor-34:ctx-c3c1954c job-122) Unexpected exception while executing org.apache.cloudstack.api.command.admin.template.CreateTemplateCmdByAdmin
      com.cloud.utils.exception.CloudRuntimeException: Failed to create templateorg.apache.cloudstack.storage.command.CopyCommand failed on exception, net use of share
      10.102.192.19/hyperv-share/abhinav-ss1failed with Error: Unknown, 1219
      at com.cloud.template.TemplateManagerImpl.createPrivateTemplate(TemplateManagerImpl.java:1402)
      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:601)
      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 $Proxy171.createPrivateTemplate(Unknown Source)
      at org.apache.cloudstack.api.command.admin.template.CreateTemplateCmdByAdmin.execute(CreateTemplateCmdByAdmin.java:42)
      at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:141)
      at com.cloud.api.ApiAsyncJobDispatcher.runJob(ApiAsyncJobDispatcher.java:108)
      at org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.runInContext(AsyncJobManagerImpl.java:503)
      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:460)
      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:722)
      2014-06-09 15:40:09,572 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-34:ctx-c3c1954c job-122) Complete async job-122, jobStatus: FAILED, resultCode: 530, result: org.apache.cloudstack.api.response.ExceptionResponse/null/

      {"uuidList":[],"errorcode":530,"errortext":"Failed to create templateorg.apache.cloudstack.storage.command.CopyCommand failed on exception, net use of share \\\\10.102.192.19/hyperv-share/abhinav-ss1failed with Error: Unknown, 1219"}

      2014-06-09 15:40:09,578 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-34:ctx-c3c1954c job-122) Done executing org.apache.cloudstack.api.command.admin.template.CreateTemplateCmdByAdmin for job-122

      Attachments

        1. CS-6872.zip
          3.96 MB
          Abhinav Roy

        Activity

          People

            anshulg Anshul Gangwar
            abhinavr Abhinav Roy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment