-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Kong routes requests to targets deleted via Admin API #8757
Comments
I'm wondering if it might be same issue or at least related to #8517. But in your case it logs at least a more or less meaningful error message. Maybe same but different but same. |
@23henne Thanks for pointing me to that other issue. It does indeed look similar. I'm still having trouble reproducing in a non-production environment, but if I can, I'll also mention it in the other issue. |
Same issue here ,Kong 2.8.1 logs shows requests routed to old IP ,but admin api /targets show only one target with new ip. |
This may be related to #8976 |
Hi @mkornatz! Thanks for you report. The log you shared is short of the stack traceback. Can you share the next lines after |
Hello @locao I'm Matt's colleague and I believe that that is the stack traceback, as Matt mentioned |
Some issue, kong version is 2.1.4. Use kong admin api add one target(10...:47179) and remove one target(10...:57593). |
The related PR is #10384. Close it. |
Hi Team, We are trying to reproduce the issue in Non-Production environment, but we haven't been able to do so yet. We shall share more detail if we are able to reproduce the issue. Kong Configuration: |
Is there an existing issue for this?
Kong version (
$ kong version
)2.8.1
Current Behavior
When deleting a target from an upstream via the Admin API, we see a recurring issue where the Kong Gateway proxy nodes continue to route traffic to the target. The Admin API shows the correct state (the target is removed), but we can confirm from the request logs that traffic is still being routed to the target long after the target is removed.
Our current workaround has been to restart the proxy nodes when we detect this issue, which resolves the issue, but is causing other side-effects, such as cutting off long running API requests.
About 1 second after the target is removed, using the
DELETE /ustreams/{upstream_id}/targets/{target_id}
Admin API, we see log entries like the following coming from the Kong Gateway. Note: these log lines may be out of order due to how our logging system collects entries with the same timestamp.Intermixed with those errors above, we also see several log entries like the following related to the given target/upstream.
This issue is intermittent, and doesn't always occur. It seems to be most prevalent when the targets being delete are having issues and have become unresponsive or take a very long time (30s) to respond to requests.
Expected Behavior
When a target is removed from an upstream, we expect that traffic will no longer be routed to it. With
eventual
Kong worker consistency, we don't expect this change to be immediately applied. However, we do expect it to take effect within at least several seconds after the target is removed.Steps To Reproduce
Anything else?
The text was updated successfully, but these errors were encountered: