Skip to content
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

Envoy: add NACK processing #2991

Merged
merged 2 commits into from
Mar 1, 2018
Merged

Envoy: add NACK processing #2991

merged 2 commits into from
Mar 1, 2018

Conversation

jrajahalme
Copy link
Member

Since the last update on the cilium agent envoy API code, the behavior
had changed to keep sending the same resource version over and over if
Envoy rejects the resource. Fix this by properly differentiating
between ACKs and NACKs. A NACK now causes a watcher to wait until the
resource is updated before sending it over again.

This was found due to the new policy resources failing protobuf
content validation that Envoy checks for.

Signed-off-by: Jarno Rajahalme jarno@covalent.io

Signed-off-by: Jarno Rajahalme <jarno@covalent.io>
Since the last update on the cilium agent envoy API code, the behavior
had changed to keep sending the same resource version over and over if
Envoy rejects the resource. Fix this by properly differentiating
between ACKs and NACKs. A NACK now causes a watcher to wait until the
resource is updated before sending it over again.

This was found due to the new policy resources failing protobuf
content validation that Envoy checks for.

We should test for the NACK behavior as well to prevent future
regressions.

Signed-off-by: Jarno Rajahalme <jarno@covalent.io>
@jrajahalme jrajahalme added kind/bug This is a bug in the Cilium logic. pending-review area/proxy Impacts proxy components, including DNS, Kafka, Envoy and/or XDS servers. labels Mar 1, 2018
@jrajahalme jrajahalme requested a review from a team as a code owner March 1, 2018 22:29
@jrajahalme
Copy link
Member Author

test-me-please

@rlenglet rlenglet merged commit 9e0db26 into master Mar 1, 2018
@rlenglet rlenglet deleted the envoy-add-nack-processing branch March 1, 2018 23:45
@tgraf tgraf added the release-note/bug This PR fixes an issue in a previous release of Cilium. label Mar 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/proxy Impacts proxy components, including DNS, Kafka, Envoy and/or XDS servers. kind/bug This is a bug in the Cilium logic. release-note/bug This PR fixes an issue in a previous release of Cilium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants