[ https://issues.apache.org/jira/browse/CLOUDSTACK-5178?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13838943#comment-13838943 ]
ASF subversion and git services commented on CLOUDSTACK-5178: ------------------------------------------------------------- Commit 3744deab144b5118f4d231bdea9c7b80549725d7 in branch refs/heads/4.3 from [~devdeep] [ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=3744dea ] CLOUDSTACK-5178: DeployVm from ISO fails. Fixed the creation of root volume and made sure the iso is attached when a vm is deployed. > [Hyper-V] Deploy VM from ISO fails with "Unsupported Command" > ------------------------------------------------------------- > > Key: CLOUDSTACK-5178 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5178 > 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: 4.3, Hyper-V, local storage > Reporter: Sowmya Krishnan > Assignee: Devdeep Singh > Priority: Blocker > Labels: hyper-V, > Fix For: 4.3.0 > > > Creation on VM from ISO fails on Hyper-V. From template it works fine. > Steps: > Register ISO of any supported OS > After it's downloaded and ready, Deploy VM from ISO > Also used local storage for this case. > The same goes fine with xen server. > DeployVM fails the following exception: > 2013-11-15 13:10:42,505 DEBUG [c.c.h.h.r.HypervDirectConnectResource] > (DirectAgent-471:ctx-f8846b9b) Sending cmd to > http://10.102.192.39:8250/api/HypervResou > rce/org.apache.cloudstack.storage.command.CreateObjectCommand cmd > data:{"data":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"43727cfc-3f64-4955 > -87d9-77f2f840ab5c","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"7d3b7953-a8bd-3467-b5df-f3e906ea2ea0-Hype > rvResource","id":1,"poolType":"Filesystem","host":"10.102.192.39","path":"C:\\Users\\Public\\Documents\\Hyper-V\\Virtual > Hard Disks","port":0,"url":"Filesyst > em://10.102.192.39/C:\\Users\\Public\\Documents\\Hyper-V\\Virtual Hard > Disks/?ROLE\u003dPrimary\u0026STOREUUID\u003d7d3b7953-a8bd-3467-b5df-f3e906ea2ea0-Hype > rvResource"}},"name":"ROOT-14","size":1073741824,"volumeId":14,"vmName":"i-2-14-VM","accountId":2,"id":14,"deviceId":0,"hypervisorType":"Hyperv"}},"contextMa > p":{},"wait":0} > 2013-11-15 13:10:42,536 ERROR [c.c.h.h.r.HypervDirectConnectResource] > (DirectAgent-471:ctx-f8846b9b) Failed to send : HTTP error code : 404 > 2013-11-15 13:10:42,536 ERROR [c.c.h.h.r.HypervDirectConnectResource] > (DirectAgent-471:ctx-f8846b9b) com.cloud.agent.api.UnsupportedAnswer > 2013-11-15 13:10:42,537 DEBUG [c.c.h.h.r.HypervDirectConnectResource] > (DirectAgent-471:ctx-f8846b9b) executeRequest received response > [{"com.cloud.agent.api. > UnsupportedAnswer":{"result":false,"details":"Unsupported command > /api/HypervResource/org.apache.cloudstack.storage.command.CreateObjectCommand. > Are you sur > e you got the right type of server?","contextMap":{},"wait":0}}] > 2013-11-15 13:10:42,537 DEBUG [c.c.a.m.DirectAgentAttache] > (DirectAgent-471:ctx-f8846b9b) Seq 1-2024873304: Response Received: > 2013-11-15 13:10:42,538 DEBUG [c.c.a.t.Request] > (DirectAgent-471:ctx-f8846b9b) Seq 1-2024873304: Processing: { Ans: , > MgmtId: 64538137909171, via: 1, Ver: v > 1, Flags: 10, > [{"com.cloud.agent.api.UnsupportedAnswer":{"result":false,"details":"Unsupported > command /api/HypervResource/org.apache.cloudstack.storage.comm > and.CreateObjectCommand. Are you sure you got the right type of > server?","wait":0}}] } > 2013-11-15 13:10:42,538 DEBUG [c.c.a.t.Request] (Job-Executor-14:ctx-e0985065 > ctx-6f6675d5) Seq 1-2024873304: Received: { Ans: , MgmtId: 64538137909171, > via > : 1, Ver: v1, Flags: 10, { UnsupportedAnswer } } > 2013-11-15 13:10:42,538 WARN [c.c.a.m.AgentManagerImpl] > (Job-Executor-14:ctx-e0985065 ctx-6f6675d5) Unsupported Command: Unsupported > command > /api/HypervResource/org.apache.cloudstack.storage.command.CreateObjectCommand. > Are you sure you got the right type of server? > 2013-11-15 13:10:42,542 WARN [o.a.c.s.d.ObjectInDataStoreManagerImpl] > (Job-Executor-14:ctx-e0985065 ctx-6f6675d5) Unsupported data object (VOLUME, > org.apache.cloudstack.storage.datastore.PrimaryDataStoreImpl@81edb47), no > need to delete from object in store ref table > 2013-11-15 13:10:42,542 DEBUG [o.a.c.e.o.VolumeOrchestrator] > (Job-Executor-14:ctx-e0985065 ctx-6f6675d5) Unable to create > Vol[14|vm=14|ROOT]:Unsupported command > /api/HypervResource/org.apache.cloudstack.storage.command.CreateObjectCommand. > Are you sure you got the right type of server? > 2013-11-15 13:10:42,542 INFO [c.c.v.VirtualMachineManagerImpl] > (Job-Executor-14:ctx-e0985065 ctx-6f6675d5) Unable to contact resource. > com.cloud.exception.StorageUnavailableException: Resource [StoragePool:1] is > unreachable: Unable to create Vol[14|vm=14|ROOT]:Unsupported command > /api/HypervResource/org.apache.cloudstack.storage.command.CreateObjectCommand. > Are you sure you got the right type of server? > at > org.apache.cloudstack.engine.orchestration.VolumeOrchestrator.recreateVolume(VolumeOrchestrator.java:1105) > at > org.apache.cloudstack.engine.orchestration.VolumeOrchestrator.prepare(VolumeOrchestrator.java:1147) > at > com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:828) > at > com.cloud.vm.VirtualMachineManagerImpl.start(VirtualMachineManagerImpl.java:510) > at > org.apache.cloudstack.engine.cloud.entity.api.VMEntityManagerImpl.deployVirtualMachine(VMEntityManagerImpl.java:227) > at > org.apache.cloudstack.engine.cloud.entity.api.VirtualMachineEntityImpl.deploy(VirtualMachineEntityImpl.java:209) > at > com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:3464) > at > com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:3045) > at > com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:3031) > 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 sun.proxy.$Proxy214.startVirtualMachine(Unknown Source) > at > org.apache.cloudstack.api.command.user.vm.DeployVMCmd.execute(DeployVMCmd.java:449) > 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:1146) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) > at java.lang.Thread.run(Thread.java:679) > 2013-11-15 13:10:42,544 DEBUG [c.c.v.VirtualMachineManagerImpl] > (Job-Executor-14:ctx-e0985065 ctx-6f6675d5) Cleaning up resources for the vm > VM[User|vmfromiso] in Starting state -- This message was sent by Atlassian JIRA (v6.1#6144)