Skip to content
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

ip_endpoint_list type is mandatory even if documentation says the opposite #669

Open
pipoe2h opened this issue Jan 16, 2024 · 0 comments · May be fixed by #693
Open

ip_endpoint_list type is mandatory even if documentation says the opposite #669

pipoe2h opened this issue Jan 16, 2024 · 0 comments · May be fixed by #693
Labels

Comments

@pipoe2h
Copy link

pipoe2h commented Jan 16, 2024

Nutanix Cluster Information

Please provide the version of:

  • AOS 6.7
  • PC 2023.4

Terraform Version

Terraform v1.4.1
on linux_arm64

  • provider registry.terraform.io/nutanix/nutanix v1.9.4

Affected Resource(s)

nutanix_virtual_machine

Terraform Configuration Files

resource "nutanix_virtual_machine" "ndb_appliance" {
  name                 = var.ndb_appliance_vm_name
  cluster_uuid         = data.nutanix_subnet.vlan.cluster_uuid
  num_vcpus_per_socket = var.ndb_appliance_vm_config.num_vcpus_per_socket
  num_sockets          = var.ndb_appliance_vm_config.num_sockets
  memory_size_mib      = var.ndb_appliance_vm_config.memory_size_mib * 1024
  disk_list {
    data_source_reference = {
      kind = "image"
      uuid = nutanix_image.install_disk.id
    }
    device_properties {
      device_type = "DISK"
      disk_address = {
        device_index = 0
        adapter_type = "SCSI"
      }
    }
  }

  nic_list {
    subnet_uuid = data.nutanix_subnet.vlan.id
    ip_endpoint_list {
      ip = "10.38.4.76"
    }
  }
}

Debug Output

│ Error: error: {
│ "api_version": "3.1",
│ "code": 422,
│ "message_list": [
│ {
│ "details": {
│ "spec.resources.nic_list.0.ip_endpoint_list.0.type": [
│ "u'' is not one of ['ASSIGNED', 'LEARNED']"
│ ]
│ },
│ "message": "Request could not be processed.",
│ "reason": "INVALID_REQUEST"
│ }
│ ],
│ "state": "ERROR"
│ }

References

Documentation says that assigned is default, but it seems the provider isn't passing one to the PC API.

@Haroon-Dweikat-Ntx Haroon-Dweikat-Ntx closed this as completed by moving to In Review in Terraform 1.9.6 Oct 1, 2024
@Haroon-Dweikat-Ntx Haroon-Dweikat-Ntx closed this as completed by moving to In Review in Terraform 1.9.6 Oct 1, 2024
@Haroon-Dweikat-Ntx Haroon-Dweikat-Ntx linked a pull request Oct 1, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: This is need to review
Development

Successfully merging a pull request may close this issue.

3 participants