vmware/pyvmomi-community-samples

deploy_ovf.py / Invalid value 'XX' for element 'Connection'.",

Open

#566 opened on Apr 19, 2019

View on GitHub
 (1 comment) (0 reactions) (0 assignees)Python (914 forks)batch import
help wanted

Repository metrics

Stars
 (972 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

I export an OVA from VSphere Web Client tar xf file.ova ./deploy_ovf.py -s XX -u XX --datacenter_name XX--datastore_name XX --cluster_name XX -v *.vmdk -f *.ovf Warnings during processing: (vmodl.MethodFault) [ (vim.fault.OvfElementInvalidValue) { dynamicType = , dynamicProperty = (vmodl.DynamicProperty) [], msg = "Line 109: Invalid value 'PORTGROUP' for element 'Connection'.", faultCause = , faultMessage = (vmodl.LocalizableMessage) [], lineNumber = 109, name = 'Connection', value = 'PORTGROUP' } ]

The bloc in the OVF looks like:

      <Item>
        <rasd:AddressOnParent>7</rasd:AddressOnParent>
        <rasd:AutomaticAllocation>true</rasd:AutomaticAllocation>
        <rasd:Connection>PORTGROUP</rasd:Connection>
        <rasd:Description>E1000 ethernet adapter on "PORTGROUP"</rasd:Description>
        <rasd:ElementName>Network adapter 1</rasd:ElementName>
        <rasd:InstanceID>10</rasd:InstanceID>
        <rasd:ResourceSubType>E1000</rasd:ResourceSubType>
        <rasd:ResourceType>10</rasd:ResourceType>
        <vmw:Config ovf:required="false" vmw:key="slotInfo.pciSlotNumber" vmw:value="32" />
        <vmw:Config ovf:required="false" vmw:key="wakeOnLanEnabled" vmw:value="true" />
      </Item>

Contributor guide