-
Notifications
You must be signed in to change notification settings - Fork 454
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: A specified parameter was not correct: spec.deviceChange.device.port.switchUuid
#1737
Comments
Hello, revog! 🖐 Thank you for submitting an issue for this provider. The issue will now enter into the issue lifecycle. If you want to contribute to this project, please review the contributing guidelines and information on submitting pull requests. |
spec.deviceChange.device.port.switchUuid
👋 I'm having the same issue, I receive EDIT:
|
I have the same issue. Our network was moved to a VDS port group now Terraform fails when trying to reconfigure the VM
|
I just ran into this as well - it was self-inflected but maybe provide some insight. Does the vSphere environments where this occur have multiple vCenter clusters with port groups with the same name? |
currently experiencing this issue after adding the option to target 2 vsphere hosts in the same plan, what makes this happen? is there a fix or workaround? terraform version 1.5.7 |
I also experience this issue when creating a VM with a manual MAC address for its network interface. It happens about 50% of the times, the behaviour is not deterministic. |
We found the issue on our side, some hosts were not in a network I wanted to create the vm on with a network interface in that network. |
I also encountered this error. We are trying to migrate VMs from one cluster to another using terraform. Simultaneously change one cluster to another and one portgroup to another. Migration takes place from one distribution switch to another. The storage does not change. It seems that the problem is that the provider tries to apply one thing first - either cluster change, leaving the switch change for later, or vice versa. It seems that if the migration of both the cluster and the network was done in one transaction, it would have been successful. |
I am also encountering this issue while migrating a VM from one cluster to another. When i look at vSphere logs, it shows that provider is trying to move NICs from portgroup to a target cluster portgroup before actually moving the VM to the target cluster, resulting in the following error : Host A-host-from-source-cluster is not a member of VDS one-VDS-from-target-cluster |
Community Guidelines
Terraform
v1.0.5
Terraform Provider
v2.1.1
VMware vSphere
v7.0.3
Description
Within a cluster migration we need have to change the VM's cluster, datastore (SAN to vSAN) and network (vSwitch to DVS).
It seems that the network change does not work correctly.
Error in TF:
Error shown in vCenter:
A specified parameter was not correct: spec.deviceChange.device.port.switchUuid Host esx01.local is not a member of VDS vdswitch_cld_appl
esx01.local is a node in the old cluster which in which the networks are configures with standard vSwitches. The new cluster consists of vSAN nodes and there we use distributed vSwitches.
Affected Resources or Data Sources
resource/vsphere_virtual_machine
Terraform Configuration
Debug Output
https://gist.github.com/revog/82b79a5104f4924e84beb10a4d2f5336
Panic Output
No response
Expected Behavior
TF Provider migrates the VM to the new cluster by changing the datastore and network aswell.
Actual Behavior
VM migration and TF execution fails
Steps to Reproduce
Environment Details
No response
Screenshots
No response
References
No response
The text was updated successfully, but these errors were encountered: