-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
NodeMeta filtering Catalog List Services API is not working #17422
Comments
I am experiencing this as well:
So, the Other filters work as expected:
This is happening on these different Consul versions:
Expected outcomeThe
|
I looked into this a bit. The problem is that here: consul/agent/consul/catalog_endpoint.go Lines 596 to 600 in 7f4fd27
We uses Workaround for now is to use the deprecated |
Thank you @lkysow Good to hear about your discovery, we are already using node-meta like workaround, I hope the fix will be no tricky. Let us know whether is gonna be implemented in the future |
We are experiencing a incorrect working of filtering in Catalog API, according to documentation https://developer.hashicorp.com/consul/api-docs/catalog#list-services use of node-meta is deprecated and you suggest to use filter instead, using filter for NodeMeta keys are not working with
/v1/catalog/services/?filter=NodeMeta.network_segment=="default"
its response is empty with a 200 http code, however it works fine with a specific service/v1/catalog/service/<anyservice>/?filter=NodeMeta.network_segment=="default"
The text was updated successfully, but these errors were encountered: