-
Notifications
You must be signed in to change notification settings - Fork 40
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-esm 0.6.0 & 0.6.1 actually doesn't check services from all namespaces #143
Comments
Hey @hsharma8693! Looking at ESM/Namespaces/ACLs it looks like Consul-ESM might be designed to be run in a cluster. Where you have a master/control ESM instance in the global namespace to detect and hand out the work to a separate ESM instance running with a Token that was created in that Namespace. Token's created in a Namespace use that Namespace as their "default". So that comment line...
... means the "default" namespace granted by the Token (which falls back to global if no Namespace was given for the Token). Do you know if your customer has tried that setup? Based on the notes and such it doesn't look like it. It looks like they are trying to use 1 ESM global instance to watch all Namespaces. Thanks! |
Yes, I am wanting to check services across all namespaces that the acl token is permissions for. Currently esm will form a cluster from instances of itself across all namespaces, but then only run checks for services registered in the default namespace (in which the acl token is defined). |
Thanks for that @optiz0r! I was looking at this as a bug report but knowing it is actually working as intended and that this is more a change to that than a fix is a big help in making sense of things and figuring out what needs to be done. |
It's raised as a bug report internally rather than a feature request
because the readme implies the desired behaviour is the expected one, and
its not working as described. Looking at the code, it's clear the
functionality isn't implemented as yet. We raised the initial feature
request for namespace support a couple years ago, and it was only partially
implemented.
…On Wed, 16 Nov 2022, 06:54 John Eikenberry, ***@***.***> wrote:
Thanks for that @optiz0r <https://github.com/optiz0r>!
I was looking at this as a bug report but knowing it is actually working
as intended and that this is more a change to that than a fix is a big help
in making sense of things and figuring out what needs to be done.
—
Reply to this email directly, view it on GitHub
<#143 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAH3VLYWMP6HUG4JRC77FU3WISAIXANCNFSM5YTUNE7A>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
It makes sense to me given the history. Namespace support was written as part of a larger patch set by a community member and was probably targeted at their use case and that didn't get communicated well in the documentation. I can see it as a bug from an external point of view and didn't mean to imply any sort of deception. Just more that upon attaining a better understanding of the internals it seemed it was more a communications/documentation issue and I appreciate the confirmation. |
Describe the bug
consul-esm 0.6.0 & consul-esm 0.6.1 actually doesn't check services from all namespaces
To Reproduce
Following reproduction steps what customer suggested, I tried to reproduce the steps and observe the same issue.
Run consul-esm with a consul policy that gives it read privileges to all namespaces, and all services in all namespaces (e.g. using a global-management token)
Expect the external node to be marked as critical, due to the test service not getting any response to probes on localhost:1234. Observe that the check never changes state from passing, and that logs do not show consul-esm adding a check for the test service at all.
Expected behavior
There should be more checks detected, as they have other services registered in non-default namespaces. They have added a service registration with an initial check result of passing but which is not actually running, so they would expect the service check to be quickly switched to critical by consul-esm, but that is not happening.
Environment:
Server configuration file(s) and read output of any relevant mount/role/etc configuration:
Attached in repro steps
Is there a workaround? If so, how satisfied is the customer with the workaround?
NA
Additional context
Customer has highlighted following things what they observed in last ticket #53909 raised by him, where same functionality of checks for all services across namespaces was discussed. However, with consul-esm 0.6.0 & 0.6.1 it was not being addressed. Besides, customer has highlighted couple of inputs by referring to codebase.
Regards,
Himanshu Sharma
Sr. Support Engineer | Consul
HashiCorp
The text was updated successfully, but these errors were encountered: