-
Notifications
You must be signed in to change notification settings - Fork 14
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
fix problem with updating nsm crd resources #527
Conversation
Signed-off-by: denis-tingaikin <[email protected]>
ec6f50c
to
afd76af
Compare
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.
Looks good to me. I have some questions to understand the reasons and some details.
require.NoError(t, err) | ||
|
||
// 3. Check new client request | ||
nsc = domain.Nodes[0].NewClient(ctx, sandbox.GenerateTestToken) |
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.
Am I right in understanding that here we test an NSC restart, reconnect with same connection ID?
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.
As I can see by default it will generate a new connection id. See at https://github.com/networkservicemesh/sdk/blob/main/pkg/networkservice/chains/client/client.go#L43 -> https://github.com/networkservicemesh/sdk/blob/main/pkg/networkservice/chains/client/client.go#L55
require.NoError(t, err) | ||
|
||
require.Eventually(t, func() bool { | ||
return counter.Requests() >= 3 |
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.
In which case the Request count >3 is acceptable? (the =3 is evident)
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.
Since the client is using retry
chain element, it could produce more than 3 requests while the registry is restarting.
@@ -131,7 +131,7 @@ func (n *etcdNSRegistryServer) sendEvent(resp *registry.NetworkServiceResponse) | |||
|
|||
func (n *etcdNSRegistryServer) Register(ctx context.Context, request *registry.NetworkService) (*registry.NetworkService, error) { | |||
meta := metav1.ObjectMeta{ | |||
GenerateName: "nse-", | |||
GenerateName: "netsvc-", |
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.
Can this change cause compatibility issues during upgrade?
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.
I believe it's can't produce compatibility issues, it's related to case when applied network service via NSM api without a name.
…k-k8s@main PR link: networkservicemesh/sdk-k8s#527 Commit: cac9089 Author: Ed Warnicke Date: 2024-09-30 20:48:37 -0500 Message: - Merge pull request #527 from networkservicemesh/fix-etcd-ifcase-update Signed-off-by: NSMBot <[email protected]>
…k-k8s@main PR link: networkservicemesh/sdk-k8s#527 Commit: cac9089 Author: Ed Warnicke Date: 2024-09-30 20:48:37 -0500 Message: - Merge pull request #527 from networkservicemesh/fix-etcd-ifcase-update Signed-off-by: NSMBot <[email protected]>
…k-k8s@main PR link: networkservicemesh/sdk-k8s#527 Commit: cac9089 Author: Ed Warnicke Date: 2024-09-30 20:48:37 -0500 Message: - Merge pull request #527 from networkservicemesh/fix-etcd-ifcase-update Signed-off-by: NSMBot <[email protected]>
…k-k8s@main PR link: networkservicemesh/sdk-k8s#527 Commit: cac9089 Author: Ed Warnicke Date: 2024-09-30 20:48:37 -0500 Message: - Merge pull request #527 from networkservicemesh/fix-etcd-ifcase-update Signed-off-by: NSMBot <[email protected]>
…k-k8s@main PR link: networkservicemesh/sdk-k8s#527 Commit: cac9089 Author: Ed Warnicke Date: 2024-09-30 20:48:37 -0500 Message: - Merge pull request #527 from networkservicemesh/fix-etcd-ifcase-update Signed-off-by: NSMBot <[email protected]>
…k-k8s@main PR link: networkservicemesh/sdk-k8s#527 Commit: cac9089 Author: Ed Warnicke Date: 2024-09-30 20:48:37 -0500 Message: - Merge pull request #527 from networkservicemesh/fix-etcd-ifcase-update Signed-off-by: NSMBot <[email protected]>
…k-k8s@main PR link: networkservicemesh/sdk-k8s#527 Commit: cac9089 Author: Ed Warnicke Date: 2024-09-30 20:48:37 -0500 Message: - Merge pull request #527 from networkservicemesh/fix-etcd-ifcase-update Signed-off-by: NSMBot <[email protected]>
…k-k8s@main (#773) PR link: networkservicemesh/sdk-k8s#527 Commit: cac9089 Author: Ed Warnicke Date: 2024-09-30 20:48:37 -0500 Message: - Merge pull request #527 from networkservicemesh/fix-etcd-ifcase-update Signed-off-by: NSMBot <[email protected]> Co-authored-by: NSMBot <[email protected]>
…k-k8s@main (#480) PR link: networkservicemesh/sdk-k8s#527 Commit: cac9089 Author: Ed Warnicke Date: 2024-09-30 20:48:37 -0500 Message: - Merge pull request #527 from networkservicemesh/fix-etcd-ifcase-update Signed-off-by: NSMBot <[email protected]> Co-authored-by: NSMBot <[email protected]>
…k-k8s@main (#354) PR link: networkservicemesh/sdk-k8s#527 Commit: cac9089 Author: Ed Warnicke Date: 2024-09-30 20:48:37 -0500 Message: - Merge pull request #527 from networkservicemesh/fix-etcd-ifcase-update Signed-off-by: NSMBot <[email protected]> Co-authored-by: NSMBot <[email protected]>
…k-k8s@main (#463) PR link: networkservicemesh/sdk-k8s#527 Commit: cac9089 Author: Ed Warnicke Date: 2024-09-30 20:48:37 -0500 Message: - Merge pull request #527 from networkservicemesh/fix-etcd-ifcase-update Signed-off-by: NSMBot <[email protected]> Co-authored-by: NSMBot <[email protected]>
…d-forwarder-sriov@main PR link: networkservicemesh/cmd-forwarder-sriov#773 Commit: 0c2ec1c Author: Network Service Mesh Bot Date: 2024-09-30 20:52:12 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/sdk-k8s@main (#773) PR link: networkservicemesh/sdk-k8s#527 Commit: cac9089 Author: Ed Warnicke Date: 2024-09-30 20:48:37 -0500 Message: - Merge pull request #527 from networkservicemesh/fix-etcd-ifcase-update Signed-off-by: NSMBot <[email protected]>
…d-registry-k8s@main PR link: networkservicemesh/cmd-registry-k8s#480 Commit: 3358a66 Author: Network Service Mesh Bot Date: 2024-09-30 20:52:17 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/sdk-k8s@main (#480) PR link: networkservicemesh/sdk-k8s#527 Commit: cac9089 Author: Ed Warnicke Date: 2024-09-30 20:48:37 -0500 Message: - Merge pull request #527 from networkservicemesh/fix-etcd-ifcase-update Signed-off-by: NSMBot <[email protected]>
…d-nse-supplier-k8s@main PR link: networkservicemesh/cmd-nse-supplier-k8s#354 Commit: 818d038 Author: Network Service Mesh Bot Date: 2024-09-30 20:52:22 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/sdk-k8s@main (#354) PR link: networkservicemesh/sdk-k8s#527 Commit: cac9089 Author: Ed Warnicke Date: 2024-09-30 20:48:37 -0500 Message: - Merge pull request #527 from networkservicemesh/fix-etcd-ifcase-update Signed-off-by: NSMBot <[email protected]>
…d-admission-webhook-k8s@main PR link: networkservicemesh/cmd-admission-webhook-k8s#463 Commit: 220a756 Author: Network Service Mesh Bot Date: 2024-09-30 20:52:28 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/sdk-k8s@main (#463) PR link: networkservicemesh/sdk-k8s#527 Commit: cac9089 Author: Ed Warnicke Date: 2024-09-30 20:48:37 -0500 Message: - Merge pull request #527 from networkservicemesh/fix-etcd-ifcase-update Signed-off-by: NSMBot <[email protected]>
…k-k8s@main (#415) PR link: networkservicemesh/sdk-k8s#527 Commit: cac9089 Author: Ed Warnicke Date: 2024-09-30 20:48:37 -0500 Message: - Merge pull request #527 from networkservicemesh/fix-etcd-ifcase-update Signed-off-by: NSMBot <[email protected]> Co-authored-by: NSMBot <[email protected]>
…k-k8s@main (#318) PR link: networkservicemesh/sdk-k8s#527 Commit: cac9089 Author: Ed Warnicke Date: 2024-09-30 20:48:37 -0500 Message: - Merge pull request #527 from networkservicemesh/fix-etcd-ifcase-update Signed-off-by: NSMBot <[email protected]> Co-authored-by: NSMBot <[email protected]>
…d-forwarder-ovs@main PR link: networkservicemesh/cmd-forwarder-ovs#415 Commit: fa90e2e Author: Network Service Mesh Bot Date: 2024-09-30 20:52:43 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/sdk-k8s@main (#415) PR link: networkservicemesh/sdk-k8s#527 Commit: cac9089 Author: Ed Warnicke Date: 2024-09-30 20:48:37 -0500 Message: - Merge pull request #527 from networkservicemesh/fix-etcd-ifcase-update Signed-off-by: NSMBot <[email protected]>
…d-exclude-prefixes-k8s@main PR link: networkservicemesh/cmd-exclude-prefixes-k8s#318 Commit: 8991372 Author: Network Service Mesh Bot Date: 2024-09-30 20:52:43 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/sdk-k8s@main (#318) PR link: networkservicemesh/sdk-k8s#527 Commit: cac9089 Author: Ed Warnicke Date: 2024-09-30 20:48:37 -0500 Message: - Merge pull request #527 from networkservicemesh/fix-etcd-ifcase-update Signed-off-by: NSMBot <[email protected]>
…d-nse-supplier-k8s@main (#12322) PR link: networkservicemesh/cmd-nse-supplier-k8s#354 Commit: 818d038 Author: Network Service Mesh Bot Date: 2024-09-30 20:52:22 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/sdk-k8s@main (#354) PR link: networkservicemesh/sdk-k8s#527 Commit: cac9089 Author: Ed Warnicke Date: 2024-09-30 20:48:37 -0500 Message: - Merge pull request #527 from networkservicemesh/fix-etcd-ifcase-update Signed-off-by: NSMBot <[email protected]> Co-authored-by: NSMBot <[email protected]>
…d-forwarder-sriov@main (#12332) PR link: networkservicemesh/cmd-forwarder-sriov#773 Commit: 0c2ec1c Author: Network Service Mesh Bot Date: 2024-09-30 20:52:12 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/sdk-k8s@main (#773) PR link: networkservicemesh/sdk-k8s#527 Commit: cac9089 Author: Ed Warnicke Date: 2024-09-30 20:48:37 -0500 Message: - Merge pull request #527 from networkservicemesh/fix-etcd-ifcase-update Signed-off-by: NSMBot <[email protected]> Co-authored-by: NSMBot <[email protected]>
…d-registry-k8s@main (#12333) PR link: networkservicemesh/cmd-registry-k8s#480 Commit: 3358a66 Author: Network Service Mesh Bot Date: 2024-09-30 20:52:17 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/sdk-k8s@main (#480) PR link: networkservicemesh/sdk-k8s#527 Commit: cac9089 Author: Ed Warnicke Date: 2024-09-30 20:48:37 -0500 Message: - Merge pull request #527 from networkservicemesh/fix-etcd-ifcase-update Signed-off-by: NSMBot <[email protected]> Co-authored-by: NSMBot <[email protected]>
resolves #523 (comment) and networkservicemesh/integration-k8s-kind#1032