Invalid vmodl.DynamicProperty value 'mgmt-net' for element 'Connection'
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 2.3k
- Forks
- 763
- PR merge metrics
- No merged PRs in 30d
Description
Exported OVF from vCenter.
Utilized OVF for reference utilizing ovf_deploy in community sample...
Two networks adapters are assigned to guest, however, the second one is assigned to same as the first.
OVF section below.
<Item>
<rasd:AddressOnParent>7</rasd:AddressOnParent>
<rasd:AutomaticAllocation>true</rasd:AutomaticAllocation>
<rasd:Connection>mgmt-net</rasd:Connection>
<rasd:Description>E1000 ethernet adapter of {mgmt_net}</rasd:Description>
<rasd:ElementName>Network adapter 1</rasd:ElementName>
<rasd:InstanceID>11</rasd:InstanceID>
<rasd:ResourceSubType>E1000</rasd:ResourceSubType>
<rasd:ResourceType>10</rasd:ResourceType>
<vmw:Config ovf:required="false" vmw:key="wakeOnLanEnabled" vmw:value="true"/>
</Item>
<Item>
<rasd:AddressOnParent>8</rasd:AddressOnParent>
<rasd:AutomaticAllocation>true</rasd:AutomaticAllocation>
<rasd:Connection >data-net</rasd:Connection>
<rasd:Description>VmxNet3 ethernet adapter on {data_net}</rasd:Description>
<rasd:ElementName>Network adapter 2</rasd:ElementName>
<rasd:InstanceID>14</rasd:InstanceID>
<rasd:ResourceSubType>VmxNet3</rasd:ResourceSubType>
<rasd:ResourceType>10</rasd:ResourceType>
<vmw:Config ovf:required="false" vmw:key="wakeOnLanEnabled" vmw:value="true"/>
</Item>
Spec that is created...
},
(vim.vm.device.VirtualDeviceSpec) {
dynamicType = <unset>,
dynamicProperty = (vmodl.DynamicProperty) [],
operation = 'add',
fileOperation = <unset>,
device = (vim.vm.device.VirtualE1000) {
dynamicType = <unset>,
dynamicProperty = (vmodl.DynamicProperty) [],
key = -104,
deviceInfo = <unset>,
backing = (vim.vm.device.VirtualEthernetCard.NetworkBackingInfo) {
dynamicType = <unset>,
dynamicProperty = (vmodl.DynamicProperty) [],
deviceName = 'mgmt-net',
useAutoDetect = <unset>,
network = <unset>,
inPassthroughMode = <unset>
},
connectable = (vim.vm.device.VirtualDevice.ConnectInfo) {
dynamicType = <unset>,
dynamicProperty = (vmodl.DynamicProperty) [],
startConnected = true,
allowGuestControl = true,
connected = true,
status = <unset>
},
slotInfo = <unset>,
controllerKey = <unset>,
unitNumber = <unset>,
addressType = 'generated',
macAddress = <unset>,
wakeOnLanEnabled = true,
resourceAllocation = <unset>,
externalId = <unset>,
uptCompatibilityEnabled = <unset>
},
profile = (vim.vm.ProfileSpec) []
},
(vim.vm.device.VirtualDeviceSpec) {
dynamicType = <unset>,
dynamicProperty = (vmodl.DynamicProperty) [],
operation = 'add',
fileOperation = <unset>,
device = (vim.vm.device.VirtualVmxnet3) {
dynamicType = <unset>,
dynamicProperty = (vmodl.DynamicProperty) [],
key = -105,
deviceInfo = <unset>,
backing = (vim.vm.device.VirtualEthernetCard.NetworkBackingInfo) {
dynamicType = <unset>,
dynamicProperty = (vmodl.DynamicProperty) [],
deviceName = 'mgmt-net',
useAutoDetect = <unset>,
network = <unset>,
inPassthroughMode = <unset>
},
connectable = (vim.vm.device.VirtualDevice.ConnectInfo) {
dynamicType = <unset>,
dynamicProperty = (vmodl.DynamicProperty) [],
startConnected = true,
allowGuestControl = true,
connected = true,
status = <unset>
},
slotInfo = <unset>,
controllerKey = <unset>,
unitNumber = <unset>,
addressType = 'generated',
macAddress = <unset>,
wakeOnLanEnabled = true,
resourceAllocation = <unset>,
externalId = <unset>,
uptCompatibilityEnabled = <unset>
},
profile = (vim.vm.ProfileSpec) []
}
Error Message:
warning = (vmodl.MethodFault) [
(vim.fault.OvfElementInvalidValue) {
dynamicType = <unset>,
dynamicProperty = (vmodl.DynamicProperty) [],
msg = "Line 120: Invalid value 'mgmt-net' for element 'Connection'.",
faultCause = <unset>,
faultMessage = (vmodl.LocalizableMessage) [],
lineNumber = 120,
name = 'Connection',
value = 'mgmt-net'
},
(vim.fault.OvfElementInvalidValue) {
dynamicType = <unset>,
dynamicProperty = (vmodl.DynamicProperty) [],
msg = "Line 131: Invalid value 'data-net' for element 'Connection'.",
faultCause = <unset>,
faultMessage = (vmodl.LocalizableMessage) [],
lineNumber = 131,
name = 'Connection',
value = 'data-net'
}
],
error = (vmodl.MethodFault) []
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the OVF network-adapter handling used by the ovf_deploy community sample, focusing on the rasd:Connection values and the resulting VirtualEthernetCard.NetworkBackingInfo objects shown in the report. Reproduce the supplied OVF with distinct mgmt-net and data-net adapters and trace why those values are rejected. Done means the reported OVF is processed without OvfElementInvalidValue warnings and the adapters retain their intended networks.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- infrastructure
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100