-
Notifications
You must be signed in to change notification settings - Fork 317
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
Can't deploy primary DC of federated cluster with managed system ACLs #1873
Comments
Setting loglevel to trace:
|
After several days of debugging this and trying different combinations of values, I finally figured out what was causing this to break.
Turns out, the primaryDatacenter value should only be specified on non-primary datacenters. Removing this causes the deploy to succeed. Unless there's a valid configuration where |
Will go ahead and close let us know if that is not the case, and we'll re-open. |
edit: see last comment for root cause. TLDR; specifying the primaryDatacenter key on the primary datacenter causes the deployment to break.
Community Note
Overview of the Issue
When consul is deployed from charts on a primary datacenter with managed system ACLs (+ createReplicationToken), internal grpc communication doesn't work, which causes initialization to fail.
Note: The hashicorp repo is only showing the 1.0.2 charts, which is what I'm using
Reproduction Steps
First, I'll show the working working
values.yaml
:Deployed as above, I'm able to properly deploy consul. However, for a production federated deployment, we want to set:
With this change, I see the following pods:
Logs from the mesh-gateway-init container of the mesh-gateway pod:
( this seems like it's due to the set of servers being empty https://github.com/hashicorp/consul-server-connection-manager/blob/f9b5452b527e26e64d4606a9eeee334181ae3e4b/discovery/resolver.go#L55-L60 ... the "bad resolver state" mesage presumably comes from grpc-go when a resolver gets passed an empty list of addresses )
The text was updated successfully, but these errors were encountered: