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

Add missing neighnat rollback and increase SNAT/DNAT table size #448

Merged
merged 3 commits into from
Dec 6, 2023

Conversation

PlagueCZ
Copy link
Contributor

@PlagueCZ PlagueCZ commented Dec 4, 2023

As explained in the linked issue, missing rollback was preventing the cleanup and subsequent reuse of a NAT/VIP IP address.

As this came to be because of OSC running out of available entries in DNAT table (without that situation this bug cannot be reproduced), I also increased the table capacity from 100 to 256.

There is a pytest to demonstrate the problem in test/neighnat_rollback

Fixes #447

@github-actions github-actions bot added bug Something isn't working size/S labels Dec 4, 2023
@PlagueCZ
Copy link
Contributor Author

PlagueCZ commented Dec 5, 2023

As discussed with @byteocean I increased the table size more and put an explanation next to it.

There was a suggestion to remove errorcheck in neighnat deletion, which I like, but I think that the "non existing" error should still be reacted to as to not perform a task when the user sends a bad argument over gRPC.

Copy link
Collaborator

@guvenc guvenc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Extra thanks for the test case.

src/grpc/dp_grpc_impl.c Show resolved Hide resolved
@guvenc
Copy link
Collaborator

guvenc commented Dec 6, 2023

@PlagueCZ Could you please rebase ? Thanks.

@guvenc guvenc merged commit be3da49 into main Dec 6, 2023
7 checks passed
@guvenc guvenc deleted the fix/neighnat_rollback branch December 6, 2023 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working size/S
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Creating VIP fails with DNAT_EXISTS
3 participants