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

0.12 beta 2: "Internal validation of the provider failed" #410

Closed
maur1th opened this issue May 9, 2019 · 6 comments
Closed

0.12 beta 2: "Internal validation of the provider failed" #410

maur1th opened this issue May 9, 2019 · 6 comments

Comments

@maur1th
Copy link

maur1th commented May 9, 2019

Terraform Version

Terraform v0.12.0-beta2
+ provider.vault v1.6.0-dev20190216h01-dev

Affected Resource(s)

The whole Vault provider apparently.

Terraform Configuration Files

provider "vault" {
  address         = "endpoint_url"
  skip_tls_verify = false
}

resource "vault_generic_secret" "example" {
  path = "secret/foo"

  data_json = jsonencode({
    "foo" : "bar"
    "hello" : "world"
  })
}

Debug Output

https://gist.github.com/maur1th/afcc5e8eefcbc56021d23dbc28daed87

Expected Behavior

Should have created a secret in Vault.

Actual Behavior

Error: Internal validation of the provider failed! This is always a bug
with the provider itself, and not a user issue. Please report
this bug:

4 errors occurred:
	* resource vault_identity_group_alias: id is a reserved field name
	* resource vault_identity_group: id is a reserved field name
	* resource vault_identity_entity: id is a reserved field name
	* resource vault_identity_entity_alias: id is a reserved field name

Steps to Reproduce

terraform apply

@maur1th
Copy link
Author

maur1th commented May 14, 2019

Tried with rc1 as well, same results.

@EliaSaSe
Copy link

Hi @maur1th

For testing purposes, I'm trying to upgrade to terraform 0.12rc1.

When I'm using Terraform v0.12.0-rc1 with the vault provider (build from master today), I'm getting the error Error: Failed to instantiate provider "vault" to obtain schema: Incompatible API version with plugin. Plugin version: 4, Client versions: [5]. So this provider is not ready for terraform 0.12?

Why do you not have this api version error with provider.vault v1.6.0-dev20190216h01-dev?
Where did you get this build?

Best regards
Elia

@maur1th
Copy link
Author

maur1th commented May 21, 2019

Hi @EliaSaSe, I got it from the development snapshots S3 bucket mentioned in the Terraform 0.12 beta 2 announcement.

@EliaSaSe
Copy link

EliaSaSe commented May 24, 2019

Hi @maur1th, thank you for the urls to this build. I can reproduce this errors to.

I'm going to use the branch https://github.com/cvbarros/terraform-provider-vault/tree/terraform-0.12 for testing purposes, until 0.12 is official supported by this provider.

@paultyng
Copy link
Contributor

Fixes for this should be in #446

@paultyng
Copy link
Contributor

#446 is merged and should be going out shortly.

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

3 participants