prudhvitella/terraform-provider-infoblox

Incompatible API version with plugin. Plugin version: 1, Ours: 2

Closed this issue · 11 comments

I'm currently using Terraform v0.6.15. What terraform version is this plugin compatible with? Are there any releases that are compatible with newer versions of terraform?

gbolo commented

+1

It is compatible with v0.6.x releases. This plugin needs to be updated once 0.7.X is released due to plugin-protocol changes.

gbolo commented

Was it compiled against the v0.6.x release of terraform? (the binaries you released) This is how I am testing:

root@ansible ~ $ terraform version
Terraform v0.6.16

root@ansible ~ $ wget https://github.com/prudhvitella/terraform-provider-infoblox/releases/download/pre-release/linux_amd64_terraform-provider-infoblox -O /usr/local/bin/terraform-provider-infoblox

root@ansible ~ $ chmod +x /usr/local/bin/terraform-provider-infoblox

root@ansible ~/ansible-dev/terraform $ cat test.tf
# Configure the Infoblox provider
provider "infoblox" {
    username = "test"
    password = "test"
    host  = "test.local"
    sslverify = false
}
resource "infoblox_record" "foobar" {
    value = "192.168.0.10"
    name = "terraform"
    domain = "mydomain.com"
    type = "A"
    ttl = 3600
}

root@ansible ~/ansible-dev/terraform $ terraform plan
Error configuring: 1 error(s) occurred:

* Incompatible API version with plugin. Plugin version: 1, Ours: 2

prudhvitella, can you verify these steps on a VM? terraform binaries were taken from official source:
https://releases.hashicorp.com/terraform/0.6.16/terraform_0.6.16_linux_amd64.zip

I'll verify and let you know.

@gbolo I was able to reproduce the issue. I added vendoring and built the plugin against v0.6.16 tag. The latest build should work now.

I am also developing a third-party plugin and I'm having the same issue.

$ terraform version
Terraform v0.6.16

$ terraform plan 
Error configuring: 1 error(s) occurred:

* Incompatible API version with plugin. Plugin version: 1, Ours: 2

Is it possible to make my plugin work with the latest version of terraform?

It is possible. Compile against v0.6.16 by using tools like govendor or govend

@prudhvitella It works! Thanks for the fix.

Closing since it works

Hi @prudhvitella

i am getting same error with Terraform v0.9.8

  • provider.infoblox: Incompatible API version with plugin. Plugin version: 2, Ours: 4

n/m, I rebuilt and seems to work. thanks for this very nice provider :)