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

consul_config_entry_service_defaults panics when actually specifying defaults #381

Open
simonctrlz opened this issue Nov 23, 2023 · 0 comments
Assignees

Comments

@simonctrlz
Copy link

simonctrlz commented Nov 23, 2023

Terraform Version

Terraform v1.6.4
on linux_amd64
+ provider registry.terraform.io/hashicorp/consul v2.20.0
+ provider registry.terraform.io/hashicorp/local v2.2.3
+ provider registry.terraform.io/hashicorp/random v3.5.1

Affected Resource(s)

Please list the resources as a list, for example:

  • consul_config_entry_service_defaults

Terraform Configuration Files

# this works:
resource "consul_config_entry_service_defaults" "bug" {
  name = "bug"
  protocol = "http"
  expose {}
  upstream_config {}
}

# this does not:
resource "consul_config_entry_service_defaults" "bug" {
  name = "bug"
  protocol = "http"
  expose {}
  upstream_config {
    defaults {
      limits {
        max_connections = 4096
        max_pending_requests = 8192
        max_concurrent_requests = 8192
      }
    }
  }
}

Panic Output

https://gist.github.com/simonctrlz/3ce56dab47c6253a1742938a4524a829

Important Factoids

Consul v1.15.5
Once you applied an empty service default, subsequent plans or destroy attempts will fail with similar panics.

@simonctrlz simonctrlz changed the title consul_config_entry_service_defaults crashes when actually specifying defaults consul_config_entry_service_defaults panics when actually specifying defaults Nov 23, 2023
@remilapeyre remilapeyre self-assigned this Nov 27, 2023
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