-
Notifications
You must be signed in to change notification settings - Fork 36
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
qfix: Do not reset IPContext configuration on the reselect #1582
Conversation
Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com>
f2c3abc
to
8cd752c
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1582 +/- ##
=======================================
Coverage ? 67.30%
=======================================
Files ? 261
Lines ? 12381
Branches ? 0
=======================================
Hits ? 8333
Misses ? 3524
Partials ? 524 ☔ View full report in Codecov by Sentry. |
1cf1f82
to
de39a26
Compare
Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com>
de39a26
to
e690672
Compare
) | ||
} | ||
|
||
func (n *strictIPAMServer) areAddressesValid(addresses []string) bool { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It depends on each NSE and IPAM needs, but here nothing prevent a NSC to request the connection with an IP that is used by another connection.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it's right. With this patch, we're shifting the responsibility of managing IP contexts to NSEs. I also added a new IPAM wrapper chain element that can be used for clearing unepected addresses (if someone will need this functionality in the future). At this moment, it's used only in unit tests, but it can also be used for common cases, for example, as described in the original issue: networkservicemesh/deployments-k8s#9888 ;)
…k@main PR link: networkservicemesh/sdk#1582 Commit: f37b863 Author: Denis Tingaikin Date: 2024-02-05 14:03:52 +0300 Message: - qfix: Do not reset IPContext configuration on the reselect (#1582) * do not reset IPContext configuration on the reselect Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com> * fix linter issues Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com> --------- Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1582 Commit: f37b863 Author: Denis Tingaikin Date: 2024-02-05 14:03:52 +0300 Message: - qfix: Do not reset IPContext configuration on the reselect (#1582) * do not reset IPContext configuration on the reselect Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com> * fix linter issues Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com> --------- Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1582 Commit: f37b863 Author: Denis Tingaikin Date: 2024-02-05 14:03:52 +0300 Message: - qfix: Do not reset IPContext configuration on the reselect (#1582) * do not reset IPContext configuration on the reselect Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com> * fix linter issues Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com> --------- Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1582 Commit: f37b863 Author: Denis Tingaikin Date: 2024-02-05 14:03:52 +0300 Message: - qfix: Do not reset IPContext configuration on the reselect (#1582) * do not reset IPContext configuration on the reselect Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com> * fix linter issues Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com> --------- Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1582 Commit: f37b863 Author: Denis Tingaikin Date: 2024-02-05 14:03:52 +0300 Message: - qfix: Do not reset IPContext configuration on the reselect (#1582) * do not reset IPContext configuration on the reselect Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com> * fix linter issues Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com> --------- Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1582 Commit: f37b863 Author: Denis Tingaikin Date: 2024-02-05 14:03:52 +0300 Message: - qfix: Do not reset IPContext configuration on the reselect (#1582) * do not reset IPContext configuration on the reselect Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com> * fix linter issues Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com> --------- Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1582 Commit: f37b863 Author: Denis Tingaikin Date: 2024-02-05 14:03:52 +0300 Message: - qfix: Do not reset IPContext configuration on the reselect (#1582) * do not reset IPContext configuration on the reselect Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com> * fix linter issues Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com> --------- Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1582 Commit: f37b863 Author: Denis Tingaikin Date: 2024-02-05 14:03:52 +0300 Message: - qfix: Do not reset IPContext configuration on the reselect (#1582) * do not reset IPContext configuration on the reselect Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com> * fix linter issues Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com> --------- Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1582 Commit: f37b863 Author: Denis Tingaikin Date: 2024-02-05 14:03:52 +0300 Message: - qfix: Do not reset IPContext configuration on the reselect (#1582) * do not reset IPContext configuration on the reselect Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com> * fix linter issues Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com> --------- Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1582 Commit: f37b863 Author: Denis Tingaikin Date: 2024-02-05 14:03:52 +0300 Message: - qfix: Do not reset IPContext configuration on the reselect (#1582) * do not reset IPContext configuration on the reselect Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com> * fix linter issues Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com> --------- Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1582 Commit: f37b863 Author: Denis Tingaikin Date: 2024-02-05 14:03:52 +0300 Message: - qfix: Do not reset IPContext configuration on the reselect (#1582) * do not reset IPContext configuration on the reselect Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com> * fix linter issues Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com> --------- Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1582 Commit: f37b863 Author: Denis Tingaikin Date: 2024-02-05 14:03:52 +0300 Message: - qfix: Do not reset IPContext configuration on the reselect (#1582) * do not reset IPContext configuration on the reselect Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com> * fix linter issues Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com> --------- Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1582 Commit: f37b863 Author: Denis Tingaikin Date: 2024-02-05 14:03:52 +0300 Message: - qfix: Do not reset IPContext configuration on the reselect (#1582) * do not reset IPContext configuration on the reselect Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com> * fix linter issues Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com> --------- Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1582 Commit: f37b863 Author: Denis Tingaikin Date: 2024-02-05 14:03:52 +0300 Message: - qfix: Do not reset IPContext configuration on the reselect (#1582) * do not reset IPContext configuration on the reselect Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com> * fix linter issues Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com> --------- Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@main PR link: networkservicemesh/sdk#1582 Commit: f37b863 Author: Denis Tingaikin Date: 2024-02-05 14:03:52 +0300 Message: - qfix: Do not reset IPContext configuration on the reselect (#1582) * do not reset IPContext configuration on the reselect Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com> * fix linter issues Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com> --------- Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
Description
As we'd discussed on the latest meeting, we decided not to clear the IP context on the NSC side. See at networkservicemesh/deployments-k8s#9888 (comment)
Issue link
Closes networkservicemesh/deployments-k8s#9888
How Has This Been Tested?
Types of changes