-
Notifications
You must be signed in to change notification settings - Fork 2k
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 service deregistration gets "ACL not found" w/ Workload Identities #23494
Comments
Hi, i believe this can be the same issue i reported here #16616 (comment). Thanks. |
@ngcmac, Yes , Its the same behaviour we see in our Nomad infrastructure too. Job gets restarted because of connectivity issue with vault/consul and it fails to de-register service in consul because of token issue. However , Issue occurrence is intermediate and couldn't replicate the same behaviour in local dev mode setup . |
Hi, I was wondering if there was any progress on this / resolution? As we get closer to 1.9 and workload identities being required would be nice to know things will work. |
Hi @drofloh, it's still in the queue. But check out the deprecation notices we updated a few weeks ago here: https://developer.hashicorp.com/nomad/docs/release-notes/nomad/upcoming#nomad-1-10-0-lts. WI won't be required for Consul/Vault until Nomad 1.10.0. |
I'm picking this up, but I'm going to close it out as strictly a duplicate of #20159. That issue has more data around debugging so it'll be easier to track the work there. |
Product Version
OS : CentOS Linux release 7.9.2009
Nomad Version : v1.7.3
Consul Version: v1.17.3
Issue Description
We are getting :"Unexpected response code: 403 (ACL not found)" error in nomad logs and due to which services in consul is not getting registered/unregistered unless nomad service is restarted.
In our Nomad cluster we have around 100+ Jobs running and this issue is observed intermittently on one/two Job. Every time its a different Job that gets Impacted.
we are using the JWT mechanism outlined in Consul ACL with Nomad Workload Identities | Nomad | HashiCorp Developer to authenticate Nomad workloads against Consul.
ACL not found Issue is observed only in Test and UAT Environment where we have enabled WI to integrate with Consul.
We verified the Token used for service check from /opt/consul/checks(consul data dir) and found out that token used in check is no longer available in the consul.
And the issue gets fixed only after restart the nomad service.
Reproduction Steps
Tried to reproduce the issue in local dev environment , However in local the service registration and de-registration is happening as expected.
Nomad server and client config snippet
Nomad client:
Nomad Server:
Nomad log snippet:
The text was updated successfully, but these errors were encountered: