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

Rework etcd chain element to distinguish between begin.Unregister() and nse.Unregister() events #460

Merged
merged 3 commits into from
Nov 8, 2023

Conversation

NikitaSkrynnik
Copy link
Contributor

@NikitaSkrynnik NikitaSkrynnik commented Oct 13, 2023

Issue

#456

Description

How we distinguish between events from begin and NSE:

  1. etcd puts NSE version into context on NSE register
  2. expire uses the version from this context when it calls begin.Unregister(). (Changes for expire can be found here: Extend expireContext in expire chain element with values from request context sdk#1533)
  3. if etcd on Unregister gets the version for the context, it know that this Unregister event has been sent from begin. If context doensn't have the version, etcd just deletes NSE without version checking.

@dualBreath
Copy link

The following tests failed:
Test_K8sNSRegistry_FindWatch
TestScaledRegistry_NSEUnregisterInAnotherRegistryUseCase
Could current changes cause this problem?

@NikitaSkrynnik
Copy link
Contributor Author

NikitaSkrynnik commented Nov 2, 2023

@dualBreath These tests will start working when this PR networkservicemesh/sdk#1542 is merged.

@dualBreath
Copy link

LGTM

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>
@denis-tingaikin denis-tingaikin merged commit 7331026 into networkservicemesh:main Nov 8, 2023
11 checks passed
nsmbot pushed a commit to networkservicemesh/cmd-exclude-prefixes-k8s that referenced this pull request Nov 8, 2023
…k-k8s@main

PR link: networkservicemesh/sdk-k8s#460

Commit: 7331026
Author: Denis Tingaikin
Date: 2023-11-08 17:56:15 +0300
Message:
  - Merge pull request #460 from NikitaSkrynnik/scale
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-forwarder-vpp that referenced this pull request Nov 8, 2023
…k-k8s@main

PR link: networkservicemesh/sdk-k8s#460

Commit: 7331026
Author: Denis Tingaikin
Date: 2023-11-08 17:56:15 +0300
Message:
  - Merge pull request #460 from NikitaSkrynnik/scale
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-registry-k8s that referenced this pull request Nov 8, 2023
…k-k8s@main

PR link: networkservicemesh/sdk-k8s#460

Commit: 7331026
Author: Denis Tingaikin
Date: 2023-11-08 17:56:15 +0300
Message:
  - Merge pull request #460 from NikitaSkrynnik/scale
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-forwarder-ovs that referenced this pull request Nov 8, 2023
…k-k8s@main

PR link: networkservicemesh/sdk-k8s#460

Commit: 7331026
Author: Denis Tingaikin
Date: 2023-11-08 17:56:15 +0300
Message:
  - Merge pull request #460 from NikitaSkrynnik/scale
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-nse-supplier-k8s that referenced this pull request Nov 8, 2023
…k-k8s@main

PR link: networkservicemesh/sdk-k8s#460

Commit: 7331026
Author: Denis Tingaikin
Date: 2023-11-08 17:56:15 +0300
Message:
  - Merge pull request #460 from NikitaSkrynnik/scale
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-forwarder-sriov that referenced this pull request Nov 8, 2023
…k-k8s@main

PR link: networkservicemesh/sdk-k8s#460

Commit: 7331026
Author: Denis Tingaikin
Date: 2023-11-08 17:56:15 +0300
Message:
  - Merge pull request #460 from NikitaSkrynnik/scale
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-admission-webhook-k8s that referenced this pull request Nov 8, 2023
…k-k8s@main

PR link: networkservicemesh/sdk-k8s#460

Commit: 7331026
Author: Denis Tingaikin
Date: 2023-11-08 17:56:15 +0300
Message:
  - Merge pull request #460 from NikitaSkrynnik/scale
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.

3 participants