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

qfix: Do not reset IPContext configuration on the reselect #1582

Merged
merged 2 commits into from
Feb 5, 2024

Conversation

denis-tingaikin
Copy link
Member

@denis-tingaikin denis-tingaikin commented Feb 1, 2024

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?

  • Added unit testing to cover
  • Tested manually
  • Tested by integration testing
  • Have not tested

Types of changes

  • Bug fix
  • New functionality
  • Documentation
  • Refactoring
  • CI

Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com>
@denis-tingaikin denis-tingaikin force-pushed the allow-to-use-previous-settings branch from f2c3abc to 8cd752c Compare February 1, 2024 11:54
Copy link

codecov bot commented Feb 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

❗ No coverage uploaded for pull request base (main@90f0c79). Click here to learn what that means.

❗ Current head de39a26 differs from pull request most recent head e690672. Consider uploading reports for the commit e690672 to get more accurate results

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.
📢 Have feedback on the report? Share it here.

@denis-tingaikin denis-tingaikin force-pushed the allow-to-use-previous-settings branch from 1cf1f82 to de39a26 Compare February 1, 2024 12:04
Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com>
@denis-tingaikin denis-tingaikin force-pushed the allow-to-use-previous-settings branch from de39a26 to e690672 Compare February 1, 2024 12:57
)
}

func (n *strictIPAMServer) areAddressesValid(addresses []string) bool {
Copy link
Member

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.

Copy link
Member Author

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 ;)

@glazychev-art glazychev-art merged commit f37b863 into main Feb 5, 2024
15 checks passed
nsmbot pushed a commit to networkservicemesh/cmd-dashboard-backend that referenced this pull request Feb 5, 2024
…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>
nsmbot pushed a commit to networkservicemesh/cmd-map-ip-k8s that referenced this pull request Feb 5, 2024
…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>
nsmbot pushed a commit to networkservicemesh/cmd-ipam-vl3 that referenced this pull request Feb 5, 2024
…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>
nsmbot pushed a commit to networkservicemesh/sdk-kernel that referenced this pull request Feb 5, 2024
…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>
nsmbot pushed a commit to networkservicemesh/cmd-cluster-info-k8s that referenced this pull request Feb 5, 2024
…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>
nsmbot pushed a commit to networkservicemesh/cmd-csi-driver that referenced this pull request Feb 5, 2024
…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>
nsmbot pushed a commit to networkservicemesh/cmd-registry-proxy-dns that referenced this pull request Feb 5, 2024
…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>
nsmbot pushed a commit to networkservicemesh/cmd-nsc-init that referenced this pull request Feb 5, 2024
…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>
nsmbot pushed a commit to networkservicemesh/cmd-nsmgr that referenced this pull request Feb 5, 2024
…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>
nsmbot pushed a commit to networkservicemesh/sdk-k8s that referenced this pull request Feb 5, 2024
…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>
nsmbot pushed a commit to networkservicemesh/cmd-nse-vfio that referenced this pull request Feb 5, 2024
…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>
nsmbot pushed a commit to networkservicemesh/cmd-nse-remote-vlan that referenced this pull request Feb 5, 2024
…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>
nsmbot pushed a commit to networkservicemesh/cmd-nsmgr-proxy that referenced this pull request Feb 5, 2024
…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>
nsmbot pushed a commit to networkservicemesh/cmd-admission-webhook-k8s that referenced this pull request Feb 5, 2024
…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>
nsmbot pushed a commit to networkservicemesh/cmd-registry-memory that referenced this pull request Feb 5, 2024
…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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Healing with two NSEs could keep previous IPContext values
3 participants