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
After creating a new VM in terraform any modifications to the VM fails with "IP address with type 'LEARNED' not allowed".
Description:
A change introduced on Nutanix v3 APIs on 5.11 now does a validation of ip endpoint list sent in the request. The validation rejects if ip_endpoint_list contains an ip address of type LEARNED.
I have successfully tested this on Nutanix v3 APIs for a VM with DHCP ip address. This test is not via terraform but via regular curl request. When ip_endpoint_list is empty in my PUT request the change went through fine, but when i copy over the ip_endpoint_list from the status output of the corresponding GET request the call fails with ,
Nutanix v3 APIs don't expect ip_endpoint_list to be populated for DHCP ip address so we can skip the ip_endpoint_list for all LEARNED type ip addresses.
The text was updated successfully, but these errors were encountered:
Issue
After creating a new VM in terraform any modifications to the VM fails with "IP address with type 'LEARNED' not allowed".
Description:
A change introduced on Nutanix v3 APIs on 5.11 now does a validation of ip endpoint list sent in the request. The validation rejects if ip_endpoint_list contains an ip address of type LEARNED.
I have successfully tested this on Nutanix v3 APIs for a VM with DHCP ip address. This test is not via terraform but via regular curl request. When ip_endpoint_list is empty in my PUT request the change went through fine, but when i copy over the ip_endpoint_list from the status output of the corresponding GET request the call fails with ,
in the API request fails with
I believe we should check for ip type LEARNED and skip it here,
https://github.com/terraform-providers/terraform-provider-nutanix/blob/34a9c14c88956bce549deb60599602e2a5b224d2/nutanix/resource_nutanix_virtual_machine.go#L1617
Nutanix v3 APIs don't expect ip_endpoint_list to be populated for DHCP ip address so we can skip the ip_endpoint_list for all LEARNED type ip addresses.
The text was updated successfully, but these errors were encountered: