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

failed to delete 'service' config entry: discovery chain "service" uses inconsistent protocols #398

Closed
danihuerta opened this issue Feb 20, 2024 · 1 comment

Comments

@danihuerta
Copy link

Terraform Version

Terraform v1.5.7
on linux_amd64

  • provider registry.terraform.io/hashicorp/consul v2.20.0

Affected Resource(s)

Please list the resources as a list, for example:

consul_config_entry_service_defaults

Terraform Configuration Files

resource "consul_config_entry_service_defaults" "app" {
name = "app"
protocol = "http"
expose {}
}

resource "consul_config_entry_service_defaults" "new-app" {
name = "new-app"
protocol = "http"
expose {}
}

Debug Output

Error: failed to delete 'new-app' config entry: Unexpected response code: 500 (discovery chain "app" uses inconsistent protocols; service "new-app" has "tcp" which is not "http") │ Error: failed to delete 'app' config entry: Unexpected response code: 500 (discovery chain "app" uses inconsistent protocols; service "new-app" has "http" which is not "tcp")

Expected Behavior
It applies.

Actual Behavior
It didn't apply. If I retry the 'terraform destroy' it works. Sometimes is the same when applying.

@danihuerta
Copy link
Author

The solution was to include a DEPENDENCY in the service splitter configuration file so then it wait until the default settings were applied.

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

1 participant