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

Resource "nutanix_subnet" fails when creating a managed IPAM network using a VLAN that overlaps with existing network #543

Closed
kingsleyck opened this issue Jan 31, 2023 · 1 comment
Assignees
Labels

Comments

@kingsleyck
Copy link

kingsleyck commented Jan 31, 2023

Nutanix Cluster Information

  • Nutanix Cluster (Prism Element / AOS): 5.20.3
  • Nutanix Prism Central: pc.2022.6.0.1

Terraform Version

Terraform v1.3.7
on windows_amd64

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

Affected Resource(s)

resource "nutanix_subnet"

Terraform Configuration Files

resource "nutanix_subnet" "next-iac-managed" {
  cluster_uuid = "<insertuuid>"

  name        = "next-iac-managed-example"
  vlan_id     = 0
  subnet_type = "VLAN"
  prefix_length = 20

  default_gateway_ip = "10.5.80.1"
  subnet_ip          = "10.5.80.0"

  dhcp_domain_name_server_list = ["8.8.8.8", "4.2.2.2"]
  dhcp_domain_search_list      = ["nutanix.com", "eng.nutanix.com"]
}

Expected Behavior

If there is not an existing VLAN 0 network with Nutanix IPAM enabled, the subnet should be created successfully (which the GUI allows). In addition, the error message is too ambiguous to understand the root cause.

Actual Behavior

Error: error waiting for subnet id (x) to create: error_detail: INTERNAL_ERROR: Subnet type provided is not supported, progress_message: create_subnet

The resource will only allow the subnet to be created when the VLAN is not 0. Changing the VLAN in the GUI post-create and updating the Terraform declaration functions as a workaround.

Steps to Reproduce

  1. Ensure a Network on VLAN 0 exists on the target cluster and is not configured for Nutanix IPAM.
  2. terraform apply

References

  • #0000 <!---Github Issue number --->
@abhimutant abhimutant self-assigned this Feb 28, 2023
@abhimutant abhimutant added the 1.9 label Mar 3, 2023
@abhimutant abhimutant added 1.8.2 and removed 1.9 labels Mar 21, 2023
@abhimutant
Copy link
Collaborator

PR: #562

@abhimutant abhimutant added 1.9 and removed 1.8.2 labels May 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants