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

infoblox_ip_allocation fails - doesn't know what to do with vm_name field #48

Closed
scumola opened this issue Jan 6, 2020 · 4 comments
Closed

Comments

@scumola
Copy link

scumola commented Jan 6, 2020

An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:

  • create

Terraform will perform the following actions:

infoblox_ip_allocation.demo_allocation will be created

  • resource "infoblox_ip_allocation" "demo_allocation" {
    • cidr = "10.120.0.0/13"
    • enable_dns = true
    • id = (known after apply)
    • ip_addr = "10.120.8.21"
    • network_view_name = "default"
    • tenant_id = "domain.com"
    • vm_name = "test01.domain.com"
      }

Plan: 1 to add, 0 to change, 0 to destroy.

Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.

Enter a value: yes

infoblox_ip_allocation.demo_allocation: Creating...

Error: Error allocating IP from network block(10.120.0.0/13): WAPI request error: 400('400 Bad Request')
Contents:
{ "Error": "AdmConProtoError: Unknown extensible attribute: VM Name",
"code": "Client.Ibap.Proto",
"text": "Unknown extensible attribute: VM Name"
}

on instances.tf line 112, in resource "infoblox_ip_allocation" "demo_allocation":
112: resource "infoblox_ip_allocation" "demo_allocation"{


The terraform stanza that creates this error is:

resource "infoblox_ip_allocation" "demo_allocation"{
vm_name="test01.domain.com"
ip_addr = aws_instance.test01.private_ip
cidr="10.120.0.0/13"
tenant_id="domain.com"
enable_dns=true
}

@saiprasannasastry
Copy link
Contributor

saiprasannasastry commented Jan 7, 2020

Do you have a cloud license installed? if not it will throw this error, to mitigate it add the following EA's in NIOS
VM Name: String Type
VM ID: String Type
Tenant ID: String Type
CMP Type: String Type
Cloud API Owned: List Type (Values True, False)
Network Name: String Type

@scumola
Copy link
Author

scumola commented Jan 7, 2020

No, I don't have the cloud license installed.
I'm not sure what you mean by "add the EA's in NIOS", sorry. How do I do that?

@scumola
Copy link
Author

scumola commented Jan 7, 2020

Nevermind, I added the EAs in NIOS. :)

Still crashing though.

An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
  + create

Terraform will perform the following actions:

  # infoblox_ip_association.demo_associate will be created
  + resource "infoblox_ip_association" "demo_associate" {
      + cidr              = "10.120.0.0/13"
      + id                = (known after apply)
      + ip_addr           = "10.120.8.21"
      + network_view_name = "default"
      + tenant_id         = "domain.com"
      + vm_id             = "i-07d94a2bdaeae1d59"
      + vm_name           = "test01"
    }

Plan: 1 to add, 0 to change, 0 to destroy.

Do you want to perform these actions?
  Terraform will perform the actions described above.
  Only 'yes' will be accepted to approve.

  Enter a value: yes

infoblox_ip_association.demo_associate: Creating...

Error: rpc error: code = Unavailable desc = transport is closing


panic: runtime error: invalid memory address or nil pointer dereference
2020-01-07T06:32:17.571-0700 [DEBUG] plugin.terraform-provider-infoblox: [signal SIGSEGV: segmentation violation code=0x1 addr=0x30 pc=0x1a18d98]
2020-01-07T06:32:17.571-0700 [DEBUG] plugin.terraform-provider-infoblox:
2020-01-07T06:32:17.571-0700 [DEBUG] plugin.terraform-provider-infoblox: goroutine 70 [running]:
2020-01-07T06:32:17.571-0700 [DEBUG] plugin.terraform-provider-infoblox: github.com/infobloxopen/terraform-provider-infoblox/infoblox.Resource(0xc0002defc0, 0x1bb6b20, 0xc0001da000, 0x1, 0x1)
2020-01-07T06:32:17.571-0700 [DEBUG] plugin.terraform-provider-infoblox: 	/Users/swebb/work/terraform-provider-infoblox/infoblox/resourceIPAssociation.go:189 +0x618
2020-01-07T06:32:17.571-0700 [DEBUG] plugin.terraform-provider-infoblox: github.com/infobloxopen/terraform-provider-infoblox/infoblox.resourceIPAssociationCreate(0xc0002defc0, 0x1bb6b20, 0xc0001da000, 0x2, 0x2671d80)
2020-01-07T06:32:17.572-0700 [DEBUG] plugin.terraform-provider-infoblox: 	/Users/swebb/work/terraform-provider-infoblox/infoblox/resourceIPAssociation.go:86 +0xc8
2020-01-07T06:32:17.572-0700 [DEBUG] plugin.terraform-provider-infoblox: github.com/hashicorp/terraform/helper/schema.(*Resource).Apply(0xc000164b00, 0xc000280c80, 0xc000166c80, 0x1bb6b20, 0xc0001da000, 0xc0004aa201, 0xc000158b10, 0xc0004aa320)
2020-01-07T06:32:17.572-0700 [DEBUG] plugin.terraform-provider-infoblox: 	/Users/swebb/work/terraform-provider-infoblox/vendor/github.com/hashicorp/terraform/helper/schema/resource.go:305 +0x365
2020-01-07T06:32:17.572-0700 [DEBUG] plugin.terraform-provider-infoblox: github.com/hashicorp/terraform/helper/schema.(*Provider).Apply(0xc000164d00, 0xc0002298e0, 0xc000280c80, 0xc000166c80, 0xc0000f0ce8, 0xc0000cc7c0, 0x1b21480)
2020-01-07T06:32:17.572-0700 [DEBUG] plugin.terraform-provider-infoblox: 	/Users/swebb/work/terraform-provider-infoblox/vendor/github.com/hashicorp/terraform/helper/schema/provider.go:289 +0x99
2020-01-07T06:32:17.572-0700 [DEBUG] plugin.terraform-provider-infoblox: github.com/hashicorp/terraform/helper/plugin.(*GRPCProviderServer).ApplyResourceChange(0xc0000104c8, 0x1ef6200, 0xc000417b30, 0xc0000cefc0, 0xc0000104c8, 0xc000417b30, 0xc000078a58)
2020-01-07T06:32:17.572-0700 [DEBUG] plugin.terraform-provider-infoblox: 	/Users/swebb/work/terraform-provider-infoblox/vendor/github.com/hashicorp/terraform/helper/plugin/grpc_provider.go:885 +0x892
2020-01-07T06:32:17.572-0700 [DEBUG] plugin.terraform-provider-infoblox: github.com/hashicorp/terraform/internal/tfplugin5._Provider_ApplyResourceChange_Handler(0x1c5dfa0, 0xc0000104c8, 0x1ef6200, 0xc000417b30, 0xc0002809b0, 0x0, 0x1ef6200, 0xc000417b30, 0xc00023e480, 0x177)
2020-01-07T06:32:17.572-0700 [DEBUG] plugin.terraform-provider-infoblox: 	/Users/swebb/work/terraform-provider-infoblox/vendor/github.com/hashicorp/terraform/internal/tfplugin5/tfplugin5.pb.go:3189 +0x217
2020-01-07T06:32:17.572-0700 [DEBUG] plugin.terraform-provider-infoblox: google.golang.org/grpc.(*Server).processUnaryRPC(0xc00055aa80, 0x1f02ee0, 0xc00056a900, 0xc0001d8300, 0xc00057c390, 0x26463c0, 0x0, 0x0, 0x0)
2020-01-07T06:32:17.572-0700 [DEBUG] plugin.terraform-provider-infoblox: 	/Users/swebb/work/terraform-provider-infoblox/vendor/google.golang.org/grpc/server.go:998 +0x46a
2020-01-07T06:32:17.572-0700 [DEBUG] plugin.terraform-provider-infoblox: google.golang.org/grpc.(*Server).handleStream(0xc00055aa80, 0x1f02ee0, 0xc00056a900, 0xc0001d8300, 0x0)
2020-01-07T06:32:17.572-0700 [DEBUG] plugin.terraform-provider-infoblox: 	/Users/swebb/work/terraform-provider-infoblox/vendor/google.golang.org/grpc/server.go:1278 +0xd97
2020-01-07T06:32:17.572-0700 [DEBUG] plugin.terraform-provider-infoblox: google.golang.org/grpc.(*Server).serveStreams.func1.1(0xc000036230, 0xc00055aa80, 0x1f02ee0, 0xc00056a900, 0xc0001d8300)
2020-01-07T06:32:17.572-0700 [DEBUG] plugin.terraform-provider-infoblox: 	/Users/swebb/work/terraform-provider-infoblox/vendor/google.golang.org/grpc/server.go:717 +0xbb
2020-01-07T06:32:17.572-0700 [DEBUG] plugin.terraform-provider-infoblox: created by google.golang.org/grpc.(*Server).serveStreams.func1
2020-01-07T06:32:17.572-0700 [DEBUG] plugin.terraform-provider-infoblox: 	/Users/swebb/work/terraform-provider-infoblox/vendor/google.golang.org/grpc/server.go:715 +0xa1
2020/01/07 06:32:17 [DEBUG] infoblox_ip_association.demo_associate: apply errored, but we're indicating that via the Error pointer rather than returning it: rpc error: code = Unavailable desc = transport is closing
2020/01/07 06:32:17 [TRACE] <root>: eval: *terraform.EvalMaybeTainted
2020/01/07 06:32:17 [TRACE] EvalMaybeTainted: infoblox_ip_association.demo_associate encountered an error during creation, so it is now marked as tainted
2020/01/07 06:32:17 [TRACE] <root>: eval: *terraform.EvalWriteState
2020/01/07 06:32:17 [TRACE] EvalWriteState: removing state object for infoblox_ip_association.demo_associate
2020/01/07 06:32:17 [TRACE] <root>: eval: *terraform.EvalApplyProvisioners
2020/01/07 06:32:17 [TRACE] EvalApplyProvisioners: infoblox_ip_association.demo_associate has no state, so skipping provisioners
2020/01/07 06:32:17 [TRACE] <root>: eval: *terraform.EvalMaybeTainted
2020-01-07T06:32:17.575-0700 [DEBUG] plugin: plugin process exited: path=/Users/swebb/.terraform.d/plugins/terraform-provider-infoblox pid=1945 error="exit status 2"
2020/01/07 06:32:17 [TRACE] EvalMaybeTainted: infoblox_ip_association.demo_associate encountered an error during creation, so it is now marked as tainted
2020/01/07 06:32:17 [TRACE] <root>: eval: *terraform.EvalWriteState
2020/01/07 06:32:17 [TRACE] EvalWriteState: removing state object for infoblox_ip_association.demo_associate
2020/01/07 06:32:17 [TRACE] <root>: eval: *terraform.EvalIf
2020/01/07 06:32:17 [TRACE] <root>: eval: *terraform.EvalIf
2020/01/07 06:32:17 [TRACE] <root>: eval: *terraform.EvalWriteDiff
2020/01/07 06:32:17 [TRACE] <root>: eval: *terraform.EvalApplyPost
2020/01/07 06:32:17 [ERROR] <root>: eval: *terraform.EvalApplyPost, err: rpc error: code = Unavailable desc = transport is closing
2020/01/07 06:32:17 [ERROR] <root>: eval: *terraform.EvalSequence, err: rpc error: code = Unavailable desc = transport is closing
2020/01/07 06:32:17 [TRACE] [walkApply] Exiting eval tree: infoblox_ip_association.demo_associate
2020/01/07 06:32:17 [TRACE] vertex "infoblox_ip_association.demo_associate": visit complete
2020/01/07 06:32:17 [TRACE] dag/walk: upstream of "provider.infoblox (close)" errored, so skipping
2020/01/07 06:32:17 [TRACE] dag/walk: upstream of "meta.count-boundary (EachMode fixup)" errored, so skipping
2020/01/07 06:32:17 [TRACE] dag/walk: upstream of "root" errored, so skipping
2020/01/07 06:32:17 [TRACE] statemgr.Filesystem: creating backup snapshot at terraform.tfstate.backup
2020/01/07 06:32:17 [TRACE] statemgr.Filesystem: state has changed since last snapshot, so incrementing serial to 207
2020/01/07 06:32:17 [TRACE] statemgr.Filesystem: writing snapshot at terraform.tfstate
2020/01/07 06:32:17 [TRACE] statemgr.Filesystem: removing lock metadata file .terraform.tfstate.lock.info
2020/01/07 06:32:17 [TRACE] statemgr.Filesystem: unlocking terraform.tfstate using fcntl flock
2020-01-07T06:32:17.611-0700 [DEBUG] plugin: plugin exited



!!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!

Terraform crashed! This is always indicative of a bug within Terraform.
A crash log has been placed at "crash.log" relative to your current
working directory. It would be immensely helpful if you could please
report the crash with Terraform[1] so that we can fix this.

When reporting bugs, please include your terraform version. That
information is available on the first line of crash.log. You can also
get it by running 'terraform --version' on the command line.

[1]: https://github.com/hashicorp/terraform/issues

!!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!

@saiprasannasastry
Copy link
Contributor

closing as the issue is solved and the another issue has already been raised for the crash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants