-
Notifications
You must be signed in to change notification settings - Fork 85
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
nsxt_policy_dhcp_v4_static_binding.static_ip_mac_stage0 #1134
Comments
Hi @rubinthomas, thanks for filing this issue! |
Also more detailed config would help us replicate this |
Not sure how to give the full code but here is the sample of it main.tf
vm.tf
out.tf
NSX.tf
Basically I'm passing an array of VM Templates to clone as VMs to be deployed. terraform.tfvars
The VM Mac Address from template is static, but when cloning I am trying to force the cloned VM to get a dynamic Mac and then assign the NSX-T static IP to it using the new Mac Address assigned to the cloned VM to be able to assign a defined static IP as per the array. |
Hi @annakhm It does work but I'm not sure what is the exact cause that this bug comes up with. Anyways my code does work with
But since it was requested I posted what I got from the terraform commands here:
Outputs:
MacBook-Pro test % terraform graph
|
Describe the bug
Error: Provider produced inconsistent final plan
When expanding the plan for nsxt_policy_dhcp_v4_static_binding.static_ip_mac_stage1["SRH9XG_GUI"] to include new values learned so far during apply, provider
"registry.terraform.io/vmware/nsxt" produced an invalid new value for .mac_address: was cty.StringVal("00:50:56:b7:b7:14"), but now cty.StringVal("00:50:56:b7:38:63").
This is a bug in the provider, which should be reported in the provider's own issue tracker.
Reproduction steps
When creating a VM from a template with a use_static_mac = false
and assigning the VM with the dynamic mac address generated from the VM assignment to a NSX DHCP static binding it fails with above error
Code:
Expected behavior
It should assign the VM mac address from generated VM to the NSXT
nsxt_policy_dhcp_v4_static_binding
resource to assign a Mac Address to allow for binding the generated dynamic mac address to the VMAdditional context
No response
The text was updated successfully, but these errors were encountered: