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 vault_raft_autopilot doesn't work anymore on non enterprise customers #1718

Closed
DocEmmetBrown opened this issue Jan 9, 2023 · 0 comments · Fixed by #1721
Closed
Assignees
Milestone

Comments

@DocEmmetBrown
Copy link

DocEmmetBrown commented Jan 9, 2023

Hi there,

I have a new issue with the 3.12.0 version of the provider, and the vault_raft_autopilot resource:

Terraform Version

Run terraform -v to show the version. If you are not running the latest version of Terraform, please upgrade because your issue may have already been fixed.

Terraform v1.3.7
on darwin_arm64
+ provider registry.terraform.io/hashicorp/vault v3.12.0

Affected Resource(s)

Please list the resources as a list, for example:

  • vault_raft_autopilot

Terraform Configuration Files

resource "vault_raft_autopilot" "autopilot" {
  cleanup_dead_servers               = true
  dead_server_last_contact_threshold = "30s"
  last_contact_threshold             = "10s"
  max_trailing_logs                  = 1000
  min_quorum                         = 3
  server_stabilization_time          = "10s"
}

Debug Output

│ Error: error writing "sys/storage/raft/autopilot/configuration": Error making API request.
│
│ URL: PUT https://<my server url>/v1/sys/storage/raft/autopilot/configuration
│ Code: 400. Errors:
│
│ * disable_upgrade_migration is only available in Vault Enterprise
│
│   with vault_raft_autopilot.autopilot,
│   on raft.tf line 1, in resource "vault_raft_autopilot" "autopilot":
│    1: resource "vault_raft_autopilot" "autopilot" {

Expected Behavior

Vault raft configuration should be updated

Actual Behavior

It errors since version 3.12.0 of the vault provider, I believe that it might be related to this patch : #1705

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. Change anything in the vault_raft_autopilot config
  2. terraform apply

Important Factoids

  • Vault server version is 1.12.1
  • I did try adding disable_upgrade_migration = false to the block without success
  • reverting to 3.11.0 fixes the problem.
  • It can be reproduced by issuing curl -X PUT -H "X-Vault-Request: true" -H "X-Vault-Token: $(vault print token)" -d '{"disable_upgrade_migration":false }' https://<my server url>/v1/sys/storage/raft/autopilot/configuration

References

Are there any other GitHub issues (open or closed) or Pull Requests that should be linked here? For example:

Thanks for your help

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

Successfully merging a pull request may close this issue.

2 participants