-
Notifications
You must be signed in to change notification settings - Fork 17
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
IP and policy removal not working on connection update #426
Comments
I feel this is totally related to networkservicemesh/cmd-forwarder-vpp#441 To resolve the issue we should rework each chain element from sdk-vpp and add a chec on change. |
cc @edwarnicke |
Right, it is related. Just in my use case, the NSC is intentionally changing the content of the IP context. From my tests, the ipadress and iprule chain elements are working fine for adding but not for removing. |
@LionelJouin That likely is related to needing to update the chain elements that do that work. @denis-tingaikin One other thing to watch carefully is that we are only doing the work on the return stroke of the call in those chain elements. If the NSE is OK allowing the NSC to update IP context... that's fine... but its not OK to act on NSC requests to update IPContext until the NSE has returned those updated (meaning it thinks they are valid). @LionelJouin Does that make sense to you? |
yes, it's clear to me. |
@LionelJouin networkservicemesh/sdk#1234 is merged. Could you test is it solves the problem? |
I tried it, it works fine, It solved this issue: networkservicemesh/sdk#1231 |
@LionelJouin and does it also solve your issue here with IP policy removal on connection update? Or is that still open? |
no, it is not solved, this issue is still open (#426). |
@edwarnicke @denis-tingaikin How the forwarder resiliency could be handled? Handling IP addresses would be easy since it is possible to get the IP addresses by checking the interface directly and then compare them to the ones in the IPContext to find which ones have to be added or removed. But I believe this would be more complex for the policy routes, how the forwarder could remember which rule/table belongs to which policy? (in case the forwarder crashes/restarts/...) |
Hello @LionelJouin, |
Hi, yes, I think so. For instance, if the forwarder restarts, then the policies map will be emptied, and then the forwarder will loose track of which ip tables/rules it was managing previously. |
Ah.. got it. |
@LionelJouin One other thing to keep in mind is that if your NSE wants to trigger a change... it should probably use: Which is to say:
Basically... this way you don't have to wait around for a Refresh to happen at Expiration. |
@LionelJouin |
There is still 2e2 tests to develop and other properties to support. We could keep this issue, otherwise I would open new ones for the e2e and properties |
@LionelJouin Agree on tracking the other issues. I'd suggest opening new issues and referencing this one. |
After some testing with this change: networkservicemesh/sdk#1231. I found it was possible to add new IP addresses and policy routes by just requesting (updating) a new time without having to close the connection.
The issue I noticed is that it is not possible to remove any IP or policy route while they are removed from the IP context in the request.
The text was updated successfully, but these errors were encountered: