You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
Attaching two NICs with vCenter results into an InvalidArgument error.
deploy: Deploy of VM 16 on vCenter cluster Cluster1 with /var/lib/one/vms/16/deployment.0 failed due to
"InvalidArgument: A specified parameter was not correct: deviceChange[1].device.key"on attempt #2.
To Reproduce
Instantiate a template and adding (or template already has) two NICs attached.
Expected behavior
Virtual machines is being created without errors.
Details
Affected Component: vCenter Driver
Hypervisor: vCenter 7.0
Version: 6.8.3
Additional context
So i might have identified already where it fails:
the device_change contains two devices with same key -101.
markush81
changed the title
deploy: Deploy of VM 16 on vCenter cluster Cluster1 with /var/lib/one/vms/16/deployment.0 failed due to "InvalidArgument: A specified parameter was not correct: deviceChange[1].device.key"on attempt #2
InvalidArgument: A specified parameter was not correct: deviceChange[1].device.key" - vCenter adding two NICs
Jul 24, 2024
Description
Attaching two NICs with vCenter results into an InvalidArgument error.
To Reproduce
Instantiate a template and adding (or template already has) two NICs attached.
Expected behavior
Virtual machines is being created without errors.
Details
Additional context
So i might have identified already where it fails:
device_change
contains two devices with same key-101
.calculate_add_nic_spec
is calculating acard_num
based on@item['config.hardware.device']
which on a new vm seems to never contain the NIC devices, this results into same number forcard_spec[:key] = -100 - card_num.to_i
@unic
but it is never used@uniqc
atcard_spec[:key] = -100 - @uniqc.to_i
and:label => 'net' + @uniqc.to_s,
gives the expected result (not sure if first place plays a role.So this already could be the fix needed. I am not sure what about the other part when converting to a template.
calculate_add_nic_spec_autogenerate_mac
Progress Status
The text was updated successfully, but these errors were encountered: