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

Terraform error and stops working after executing nsxt_policy_ip_address_allocation #448

Closed
tankunsheng opened this issue Sep 3, 2020 · 1 comment
Labels
bug Bug

Comments

@tankunsheng
Copy link

Terraform error and stops working after executing nsxt_policy_ip_address_allocation without providing allocation_ip (should be optional as per stated in the docs)
image

Following the docs for ip address allocation, I did the following without specifying an allocation_ip

resource "nsxt_policy_ip_address_allocation" "test" {
  display_name  = "test"
  description   = "Terraform provisioned IpAddressAllocation"
  pool_path     = nsxt_policy_ip_pool.pool1.path
  # allocation_ip = "12.12.12.12"
}

An error was thrown after applying
image

Subsequent terraform plan and apply fails and throws "Error: com.vmware.vapi.std.errors.invalid_request"
image

but in actuality, the IP has been allocated successfully as it can be seen on the nsxmgr webpage and queried from List IP Pool Allocations endpoint /v1/pools/ip-pools/{poolid}/allocations

This issue does not occur if an allocation_ip is specified upfront.

terraform version = v0.13.2 and v0.13.1
vmware/nsxt version = "3.0.1"

@annakhm annakhm added the bug Bug label Sep 3, 2020
@annakhm
Copy link
Collaborator

annakhm commented Sep 18, 2020

Thanks @tankunsheng for filing this. Fixing with #468

@annakhm annakhm closed this as completed Sep 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug
Projects
None yet
Development

No branches or pull requests

2 participants