I guess as knowledge filler, if anyone gets to this issue via search of some 
sort, here are the steps to troubleshoot it and resolve.

Cause of the issue:
The OVA file created in vSphere, had NIC set to E1000e instead of most common 
and expected E1000. In my case, the windows 2008 VM (and windows 2012)  has 
been created with NIC type of "E1000e", when attempting to re-create the VM 
from OVA, the ESXi host could not interpret the NIC type of E1000e. As a 
result, an error in vSphere would show up with content like:

Deploy OVF template
CloudStack_Dev
Invalid 
configuration for 
device '5'.
MYDOMAIN\my-vmware-user-for-cs
myvchost.example.com
3/28/2013 12:32:56 PM
3/28/2013 12:32:56 PM
3/28/2013 12:33:00 PM

How issue was identified:
Identify which ESXi host this operation has been ran on as indicated in 
management-server.log file, then, inspect the hostd.log file for specific 
error. In my case error was:

Nic edit failed: nic type not accepted: (vim.vm.device.VirtualEthernetCard) 
{....}

Solution:
Alter the NIC type to E1000 (instead of E1000e) and retry the import and 
deployment.

Regards
ilya

> -----Original Message-----
> From: Musayev, Ilya [mailto:[email protected]]
> Sent: Wednesday, March 27, 2013 6:20 PM
> To: [email protected]
> Subject: RE: Unable to load Windows 2008 OVA Template on
> Cloudstack/VMWare (PrimaryStorageException and
> vim.fault.InvalidDeviceSpec errors)
> 
> Jim
> 
> Have you been able to resolve this issue?
> 
> Thanks
> ilya
> 
> > -----Original Message-----
> > From: Marc Cirauqui [mailto:[email protected]]
> > Sent: Sunday, December 09, 2012 5:35 AM
> > To: cloudstack-users
> > Subject: Re: Unable to load Windows 2008 OVA Template on
> > Cloudstack/VMWare (PrimaryStorageException and
> > vim.fault.InvalidDeviceSpec errors)
> >
> > Can you import this template in ESXi directly? If so, can you try
> > exporting it from esxi instead from ws?
> >
> > thx
> >
> >
> > On Thu, Dec 6, 2012 at 10:51 PM, Jim L. <[email protected]> wrote:
> >
> > > Hi,
> > >
> > > I created a very basic Windows 2008 R2 x64 server instance on VMWare
> > > Workstation in Workstation 8 format, created an OVA from it and
> > > uploaded it to Cloudstack successfully.  When I try to create an
> > > instance with this template, I receive a "PrimaryStorageException"
> > > error on Cloudstack (V3.0.2, host is VCenter 5.0).
> > >
> > > I have configured the template using IDE drivers (originally I was
> > > using SCSI and thought that was the problem).  Still, no luck.
> > >
> > > If I take this OVA and import it directly into the host (the same
> > > host being managed by Cloudstack), it instantiates without problems.
> > > What is it about Cloudstack that this template cannot be instantiated?
> > >
> > > Another test: I uploaded a Windows 2008 R2 x64 ISO into Cloudstack,
> > > created a VM with it, then created a template from that VM from
> > > which I can instantiate new VM's without a problem.  It seems there
> > > is something about the OVA I have created on my local VMWare
> > > Workstation that is causing the problem with Cloudstack - and only
> Cloudstack.
> > >
> > > Another point: this problem only manifests itself with Windows OVA's.
> > >  Linux (Ubuntu) OVA's created via VMWare Workstation and uploaded to
> > > Cloudstack do not experience this problem.
> > >
> > > I am at a loss as to what I should try next.  If anyone has any
> > > ideas about what I could/should do next, I would appreciate it.  I
> > > included the Cloudstack and SSVM logs below.
> > >
> > > Regards,
> > >
> > > --Jim L.
> > >
> > >
> > > Cloudstack Management Server Log:
> > >
> > > 2012-12-06 15:59:28,361 DEBUG [cloud.template.TemplateManagerImpl]
> > > (Job-Executor-13:job-162) Template 213 download to pool 200 failed
> > > due to Unable to execute PrimaryStorageDownloadCommand due to
> > > exception
> > > 2012-12-06 15:59:28,361 WARN  [cloud.vm.VirtualMachineManagerImpl]
> > > (AgentManager-Handler-6:null) Cleanup failed due to Unable to
> > > execute PrimaryStorageDownloadCommand due to exception
> > > 2012-12-06 15:59:28,362 DEBUG [agent.manager.AgentAttache]
> > > (AgentManager-Handler-6:null) Seq 5-1818886254: No more commands
> > found
> > > 2012-12-06 15:59:28,362 DEBUG [cloud.template.TemplateManagerImpl]
> > > (Job-Executor-13:job-162) Downloading 213 via 1
> > > 2012-12-06 15:59:28,377 DEBUG [agent.transport.Request]
> > > (Job-Executor-13:job-162) Seq 5-1818886255: Sending  { Cmd , MgmtId:
> > > 345051131092, via: 5, Ver: v1, Flags: 100111,
> > >
> > >
> >
> [{"storage.PrimaryStorageDownloadCommand":{"localPath":"/mnt/6ca370f8
> > -
> > > ea32-35b0-9848-9074f6a0be3c","poolUuid":"6ca370f8-ea32-35b0-9848-
> > 9074f
> > > 6a0be3c","poolId":200,"secondaryStorageUrl":"nfs://
> > > 10.40.10.10/export/secondary","primaryStorageUrl":"nfs://
> > > 10.40.10.10/export/primary","url":"nfs://
> > >
> > > 10.40.10.10/export/secondary/template/tmpl//2/213//45e99f6c-3648-
> > 32a4-
> > > 9de8-2201bb138f99.ova
> > > ","format":"OVA","accountId":2,"name":"213-2-33a2e383-7848-3fae-
> 97de
> > > -
> > 8
> > > 5aa1f074cea","wait":10800}}]
> > > }
> > > 2012-12-06 15:59:38,307 DEBUG [agent.transport.Request]
> > > (AgentManager-Handler-7:null) Seq 5-1818886255: Processing:  { Ans:
> > > ,
> > > MgmtId: 345051131092, via: 5, Ver: v1, Flags: 110,
> > >
> > > [{"storage.PrimaryStorageDownloadAnswer":{"templateSize":0,"result":
> > > fa lse,"details":"Unable to execute PrimaryStorageDownloadCommand
> > > due
> > to
> > > exception","wait":0}}] }
> > > 2012-12-06 15:59:38,308 DEBUG [agent.transport.Request]
> > > (Job-Executor-13:job-162) Seq 5-1818886255: Received:  { Ans: , MgmtId:
> > > 345051131092, via: 5, Ver: v1, Flags: 110, {
> > > PrimaryStorageDownloadAnswer } }
> > > 2012-12-06 15:59:38,311 WARN  [cloud.vm.VirtualMachineManagerImpl]
> > > (Job-Executor-13:job-162) Cleanup failed due to Unable to execute
> > > PrimaryStorageDownloadCommand due to exception
> > > 2012-12-06 15:59:38,311 DEBUG [agent.manager.AgentManagerImpl]
> > > (Job-Executor-13:job-162) Details from executing class
> > > com.cloud.agent.api.storage.PrimaryStorageDownloadCommand: Unable
> > to
> > > execute PrimaryStorageDownloadCommand due to exception
> > > 2012-12-06 15:59:38,311 DEBUG [cloud.template.TemplateManagerImpl]
> > > (Job-Executor-13:job-162) Template 213 download to pool 200 failed
> > > due to Unable to execute PrimaryStorageDownloadCommand due to
> > > exception
> > > 2012-12-06 15:59:38,311 WARN  [cloud.vm.VirtualMachineManagerImpl]
> > > (AgentManager-Handler-7:null) Cleanup failed due to Unable to
> > > execute PrimaryStorageDownloadCommand due to exception
> > > 2012-12-06 15:59:38,311 DEBUG [agent.manager.AgentAttache]
> > > (AgentManager-Handler-7:null) Seq 5-1818886255: No more commands
> > found
> > > 2012-12-06 15:59:38,312 DEBUG [cloud.template.TemplateManagerImpl]
> > > (Job-Executor-13:job-162) Template 213 is not found on and can not
> > > be downloaded to pool 200
> > > 2012-12-06 15:59:38,312 DEBUG [cloud.storage.StorageManagerImpl]
> > > (Job-Executor-13:job-162) Cannot use this pool
> > > Pool[200|NetworkFilesystem] because we can't propagate template
> > > Tmpl[213-OVA-213-2-33a2e383-7848-3fae-97de-85aa1f074cea
> > > 2012-12-06 15:59:38,315 INFO  [cloud.vm.VirtualMachineManagerImpl]
> > > (Job-Executor-13:job-162) Unable to contact resource.
> > > com.cloud.exception.StorageUnavailableException: Resource
> > > [StoragePool:200] is unreachable: Unable to create Vol[56|vm=55|ROOT]
> > >         at
> > >
> >
> com.cloud.storage.StorageManagerImpl.prepare(StorageManagerImpl.java:
> > 2990)
> > >         at
> > >
> > >
> >
> com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineMa
> > nagerImpl.java:743)
> > >         at
> > >
> > >
> >
> com.cloud.vm.VirtualMachineManagerImpl.start(VirtualMachineManagerIm
> > pl.java:461)
> > >         at
> > >
> > >
> >
> com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerI
> > mpl.java:2580)
> > >         at
> > >
> > >
> >
> com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerI
> > mpl.java:2517)
> > >         at
> > >
> > com.cloud.event.ActionEventCallback.intercept(ActionEventCallback.java
> > :32)
> > >         at
> >
> com.cloud.api.commands.DeployVMCmd.execute(DeployVMCmd.java:317)
> > >         at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:132)
> > >         at
> > >
> >
> com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:4
> > 27)
> > >         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.j
> > av
> > a:1110)
> > >         at
> > >
> > >
> > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.
> > ja
> > va:603)
> > >         at java.lang.Thread.run(Thread.java:679)
> > >
> > >
> > > --------------------------------------------------------------------
> > > --
> > > --------------------------------------------------------------------
> > > --
> > > ------------------------------------------------------------------
> > >
> > > SSVM: cloud.out log:
> > >
> > > Started
> > > 20:57:57,632 ERROR VmwareStorageManagerImpl:147 - Unable to
> execute
> > > PrimaryStorageDownloadCommand due to exception AxisFault
> > >  faultCode: ServerFaultCode
> > >  faultSubcode:
> > >  faultString: vim.fault.InvalidDeviceSpec
> > >  faultActor:
> > >  faultNode:
> > >  faultDetail:
> > >         {urn:vim25}InvalidDeviceSpecFault:<reason>Invalid
> > > fault</reason>
> > >
> > > vim.fault.InvalidDeviceSpec
> > >         at
> > > sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> > > Method)
> > >         at
> > >
> > >
> > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructo
> > r
> > AccessorImpl.java:39)
> > >         at
> > >
> > >
> > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCo
> > n
> > structorAccessorImpl.java:27)
> > >         at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
> > >         at java.lang.Class.newInstance0(Class.java:355)
> > >         at java.lang.Class.newInstance(Class.java:308)
> > >         at
> > >
> > >
> > org.apache.axis.encoding.ser.BeanDeserializer.<init>(BeanDeserializer.
> > java:1
> > 04)
> > >         at
> > >
> > >
> > org.apache.axis.encoding.ser.BeanDeserializer.<init>(BeanDeserializer.
> > java:9
> > 0)
> > >         at
> > > com.vmware.vim25.SystemError.getDeserializer(SystemError.java:123)
> > >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > >         at
> > >
> > >
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j
> > ava:39)
> > >         at
> > >
> > >
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> > sorImpl.java:25)
> > >         at java.lang.reflect.Method.invoke(Method.java:597)
> > >         at
> > >
> > >
> > org.apache.axis.encoding.ser.BaseDeserializerFactory.getSpecialized(Ba
> > seDe
> > serializerFactory.java:154)
> > >         at
> > >
> > >
> > org.apache.axis.encoding.ser.BaseDeserializerFactory.getDeserializerAs
> > (Bas
> > eDeserializerFactory.java:84)
> > >         at
> > >
> > >
> > org.apache.axis.encoding.DeserializationContext.getDeserializer(Deseri
> > alizati
> > onContext.java:464)
> > >         at
> > >
> > >
> > org.apache.axis.encoding.DeserializationContext.getDeserializerForType
> > (Des
> > erializationContext.java:547)
> > >         at
> > >
> > >
> > org.apache.axis.message.SOAPFaultDetailsBuilder.onStartChild(SOAPFault
> > De
> > tailsBuilder.java:157)
> > >         at
> > >
> > >
> > org.apache.axis.encoding.DeserializationContext.startElement(Deseriali
> > zatio
> > nContext.java:1035)
> > >         at
> > >
> > >
> > com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElem
> > ent
> > (AbstractSAXParser.java:501)
> > >         at
> > >
> > >
> >
> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scan
> > StartElement(XMLNSDocumentScannerImpl.java:400)
> > >         at
> > >
> > >
> >
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerIm
> >
> pl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2
> > 755)
> > >         at
> > >
> > >
> >
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(X
> > MLDocumentScannerImpl.java:648)
> > >         at
> > >
> > >
> >
> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next
> > (XMLNSDocumentScannerImpl.java:140)
> > >         at
> > >
> > >
> >
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerIm
> > pl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
> > >         at
> > >
> > >
> >
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XM
> > L
> > 11Configuration.java:808)
> > >         at
> > >
> > >
> >
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XM
> > L
> > 11Configuration.java:737)
> > >         at
> > >
> > >
> > com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.j
> > av
> > a:119)
> > >         at
> > >
> > >
> > com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Abs
> > tra
> > ctSAXParser.java:1205)
> > >         at
> > >
> > >
> >
> com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.pa
> > r
> > se(SAXParserImpl.java:522)
> > >         at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
> > >         at
> > >
> > >
> > org.apache.axis.encoding.DeserializationContext.parse(DeserializationC
> > onte
> > xt.java:227)
> > >         at
> org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
> > >         at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
> > >         at
> > >
> > >
> >
> org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnder
> > standChecker.java:62)
> > >         at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
> > >         at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
> > >         at org.apache.axis.client.Call.invoke(Call.java:2767)
> > >         at org.apache.axis.client.Call.invoke(Call.java:2443)
> > >         at org.apache.axis.client.Call.invoke(Call.java:2366)
> > >         at org.apache.axis.client.Call.invoke(Call.java:1812)
> > >         at
> > >
> > >
> >
> com.vmware.vim25.VimBindingStub.httpNfcLeaseComplete(VimBindingStub
> > .java:44482)
> > >         at
> > >
> > >
> >
> com.cloud.hypervisor.vmware.mo.HttpNfcLeaseMO.completeLease(HttpNfc
> > LeaseMO.java:66)
> > >         at
> > >
> > >
> >
> com.cloud.hypervisor.vmware.mo.HypervisorHostHelper.importVmFromOV
> > F(HypervisorHostHelper.java:468)
> > >         at
> > >
> >
> com.cloud.hypervisor.vmware.mo.HostMO.importVmFromOVF(HostMO.jav
> > a:671)
> > >         at
> > >
> > >
> >
> com.cloud.hypervisor.vmware.manager.VmwareStorageManagerImpl.copyT
> > emplateFromSecondaryToPrimary(VmwareStorageManagerImpl.java:455)
> > >         at
> > >
> > >
> >
> com.cloud.hypervisor.vmware.manager.VmwareStorageManagerImpl.execu
> > te(VmwareStorageManagerImpl.java:133)
> > >         at
> > >
> > >
> >
> com.cloud.storage.resource.VmwareSecondaryStorageResourceHandler.exe
> > cute(VmwareSecondaryStorageResourceHandler.java:101)
> > >         at
> > >
> > >
> >
> com.cloud.storage.resource.VmwareSecondaryStorageResourceHandler.exe
> > cuteRequest(VmwareSecondaryStorageResourceHandler.java:65)
> > >         at
> > >
> > >
> >
> com.cloud.storage.resource.PremiumSecondaryStorageResource.executeRe
> > quest(PremiumSecondaryStorageResource.java:50)
> > >         at com.cloud.agent.Agent.processRequest(Agent.java:517)
> > >         at
> > com.cloud.agent.Agent$AgentRequestHandler.doTask(Agent.java:827)
> > >         at com.cloud.utils.nio.Task.run(Task.java:79)
> > >         at
> > >
> > >
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecu
> > t
> > or.java:886)
> > >         at
> > >
> > >
> > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.
> > ja
> > va:908)
> > >         at java.lang.Thread.run(Thread.java:662)
> > >

Reply via email to