Abhinav Roy created CLOUDSTACK-4522:
---------------------------------------

             Summary: [upgrade][vmware] Creation of VM from ISO is failing 
                 Key: CLOUDSTACK-4522
                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-4522
             Project: CloudStack
          Issue Type: Bug
      Security Level: Public (Anyone can view this level - this is the default.)
          Components: ISO, Upgrade, VMware
    Affects Versions: 4.2.0
         Environment: Host : ESX 5.0 
upgrade from 3.0.6 to 4.2 
Primary storage : iscsi 
secondary storage : nfs
            Reporter: Abhinav Roy
            Priority: Critical
             Fix For: 4.2.1


Steps : 
====================== 
1. Desploy CS 3.0.6 advanced zone setup with esx 5.0 host, iscsi primary 
storage and nfs secondary storage 
2. Create vms, snapshots, templates etc. 
3. Upgrade to 4.2 
4. Register a Rhel 6.1 iso and create a vm with that iso


Expected behaviour :
=====================
The VM should be created successfully.


Observed behaviour :
====================
VM deployment fails with :

key=Rn7oXwdg4PJM0zb9qwIYSpcSwQ4%3D&_=1377621119567
2013-08-27 21:58:35,726 DEBUG [cloud.api.ApiServlet] (catalina-exec-18:null) 
===END===  10.144.6.17 -- GET  
command=queryAsyncJobResult&jobId=6127a0ef-f4bb-490e-9c30-4bd3c1ca5fae&response=json&sessionkey=Rn7oXwdg4PJM0zb9qwIYSpcSwQ4%3D&_=1377621119567
2013-08-27 21:58:37,005 WARN  [vmware.resource.VmwareResource] 
(DirectAgent-372:10.102.192.17) StartCommand failed due to Exception: 
java.lang.ClassCastException
Message: org.apache.cloudstack.storage.to.TemplateObjectTO cannot be cast to 
org.apache.cloudstack.storage.to.VolumeObjectTO

java.lang.ClassCastException: org.apache.cloudstack.storage.to.TemplateObjectTO 
cannot be cast to org.apache.cloudstack.storage.to.VolumeObjectTO
        at 
com.cloud.hypervisor.vmware.resource.VmwareResource.postDiskConfigBeforeStart(VmwareResource.java:3282)
        at 
com.cloud.hypervisor.vmware.resource.VmwareResource.execute(VmwareResource.java:2961)
        at 
com.cloud.hypervisor.vmware.resource.VmwareResource.executeRequest(VmwareResource.java:515)
        at 
com.cloud.agent.manager.DirectAgentAttache$Task.run(DirectAgentAttache.java:186)
        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.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:165)
        at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:266)
        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-08-27 21:58:37,008 DEBUG [agent.manager.DirectAgentAttache] 
(DirectAgent-372:null) Seq 1-51446943: Response Received:
2013-08-27 21:58:37,009 DEBUG [agent.transport.Request] (DirectAgent-372:null) 
Seq 1-51446943: Processing:  { Ans: , MgmtId: 280320865129348, via: 1, Ver: v1, 
Flags: 110, 
[{"com.cloud.agent.api.StartAnswer":{"vm":{"id":13,"name":"i-2-13-VM","bootloader":"HVM","type":"User","cpus":1,"minSpeed":500,"maxSpeed":500,"minRam":536870912,"maxRam":536870912,"hostName":"v7","arch":"x86_64","os":"Red
 Hat Enterprise Linux 6.1 
(64-bit)","bootArgs":"","rebootOnCrash":false,"enableHA":false,"limitCpuUse":false,"enableDynamicallyScaleVm":false,"vncPassword":"14e766b4807fc1cb","params":{"rootDiskController":"ide","nicAdapter":"E1000","nestedVirtualizationFlag":"false"},"uuid":"ae4bcc9e-80bb-46a7-ada6-c719b7a100ca","disks":[{"data":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"936c6c32-322d-4378-ac0c-83fafb8b22d8","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"84f709f1-ffad-320c-879b-7e59af5f5266","id":202,"poolType":"VMFS","host":"VMFS
 datastore: 
/roydc/primary-iscsi2","path":"/roydc/primary-iscsi2","port":0}},"name":"ROOT-13","size":5368709120,"path":"ce4336ee292a4e30bac6ab253727d6e3","volumeId":23,"vmName":"i-2-13-VM","accountId":2,"chainInfo":"{\"diskDeviceBusName\":\"ide0:1\",\"diskChain\":[\"[primary-iscsi2]
 
i-2-13-VM/ce4336ee292a4e30bac6ab253727d6e3.vmdk\"]}","format":"OVA","id":23,"hypervisorType":"VMware"}},"diskSeq":0,"type":"ROOT"},{"data":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"path":"template/tmpl/2/206/206-2-ca2ae5ad-3784-3d9a-9630-1d3e42cffc7c.iso","origUrl":"http://10.147.28.7/ISO/RHEL/rhel-server-6.1-x86_64-dvd.iso","uuid":"7b71688c-bf8e-4eca-a66b-a24f210e3cae","id":206,"format":"ISO","accountId":2,"checksum":"a051dbf28ef444a019dc6660efe3e3a4","hvm":true,"displayText":"rhel
 
6.1","imageDataStore":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://10.102.192.100/cpg_vol/abhinav/esx-sec-burbank","_role":"Image"}},"name":"206-2-ca2ae5ad-3784-3d9a-9630-1d3e42cffc7c","guestOsType":"Red
 Hat Enterprise Linux 6.1 
(64-bit)","hypervisorType":"None"}},"diskSeq":3,"type":"ISO"}],"nics":[{"deviceId":0,"networkRateMbps":200,"defaultNic":true,"uuid":"95a54b55-26c7-4fad-9198-df9faa28fb06","ip":"10.1.1.183","netmask":"255.255.255.0","gateway":"10.1.1.1","mac":"02:00:6e:3b:00:04","dns1":"10.103.128.15","broadcastType":"Vlan","type":"Guest","broadcastUri":"vlan://687","isolationUri":"vlan://687","isSecurityGroupEnabled":false}]},"result":false,"details":"StartCommand
 failed due to Exception: java.lang.ClassCastException\nMessage: 
org.apache.cloudstack.storage.to.TemplateObjectTO cannot be cast to 
org.apache.cloudstack.storage.to.VolumeObjectTO\n","wait":0}}] }
2013-08-27 21:58:37,009 DEBUG [agent.transport.Request] (Job-Executor-81:job-95 
= [ 6127a0ef-f4bb-490e-9c30-4bd3c1ca5fae ]) Seq 1-51446943: Received:  { Ans: , 
MgmtId: 280320865129348, via: 1, Ver: v1, Flags: 110, { StartAnswer } }
2013-08-27 21:58:37,010 DEBUG [agent.manager.AgentAttache] 
(DirectAgent-372:null) Seq 1-51446943: No more commands found
2013-08-27 21:58:37,014 INFO  [cloud.vm.VirtualMachineManagerImpl] 
(Job-Executor-81:job-95 = [ 6127a0ef-f4bb-490e-9c30-4bd3c1ca5fae ]) Unable to 
start VM on Host[-1-Routing] due to StartCommand failed due to Exception: 
java.lang.ClassCastException
Message: org.apache.cloudstack.storage.to.TemplateObjectTO cannot be cast to 
org.apache.cloudstack.storage.to.VolumeObjectTO

2013-08-27 21:58:37,018 DEBUG [cloud.vm.VirtualMachineManagerImpl] 
(Job-Executor-81:job-95 = [ 6127a0ef-f4bb-490e-9c30-4bd3c1ca5fae ]) Cleaning up 
resources for the vm VM[User|v7] in Starting state


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to