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

fix problem with updating nsm crd resources #527

Merged
merged 1 commit into from
Oct 1, 2024

Conversation

denis-tingaikin
Copy link
Member

Signed-off-by: denis-tingaikin <[email protected]>
Copy link
Contributor

@ljkiraly ljkiraly left a 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)
Copy link
Contributor

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?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

require.NoError(t, err)

require.Eventually(t, func() bool {
return counter.Requests() >= 3
Copy link
Contributor

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)

Copy link
Member Author

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-",
Copy link
Contributor

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?

Copy link
Member Author

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.

@edwarnicke edwarnicke merged commit cac9089 into main Oct 1, 2024
11 checks passed
nsmbot pushed a commit to networkservicemesh/cmd-exclude-prefixes-k8s that referenced this pull request Oct 1, 2024
…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]>
nsmbot pushed a commit to networkservicemesh/cmd-forwarder-vpp that referenced this pull request Oct 1, 2024
…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]>
nsmbot pushed a commit to networkservicemesh/cmd-forwarder-sriov that referenced this pull request Oct 1, 2024
…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]>
nsmbot pushed a commit to networkservicemesh/cmd-nse-supplier-k8s that referenced this pull request Oct 1, 2024
…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]>
nsmbot pushed a commit to networkservicemesh/cmd-forwarder-ovs that referenced this pull request Oct 1, 2024
…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]>
nsmbot pushed a commit to networkservicemesh/cmd-registry-k8s that referenced this pull request Oct 1, 2024
…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]>
nsmbot pushed a commit to networkservicemesh/cmd-admission-webhook-k8s that referenced this pull request Oct 1, 2024
…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]>
nsmbot added a commit to networkservicemesh/cmd-forwarder-sriov that referenced this pull request Oct 1, 2024
…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]>
nsmbot added a commit to networkservicemesh/cmd-registry-k8s that referenced this pull request Oct 1, 2024
…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]>
nsmbot added a commit to networkservicemesh/cmd-nse-supplier-k8s that referenced this pull request Oct 1, 2024
…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]>
nsmbot added a commit to networkservicemesh/cmd-admission-webhook-k8s that referenced this pull request Oct 1, 2024
…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]>
nsmbot pushed a commit to networkservicemesh/deployments-k8s that referenced this pull request Oct 1, 2024
…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]>
nsmbot pushed a commit to networkservicemesh/deployments-k8s that referenced this pull request Oct 1, 2024
…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]>
nsmbot pushed a commit to networkservicemesh/deployments-k8s that referenced this pull request Oct 1, 2024
…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]>
nsmbot pushed a commit to networkservicemesh/deployments-k8s that referenced this pull request Oct 1, 2024
…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]>
nsmbot added a commit to networkservicemesh/cmd-forwarder-ovs that referenced this pull request Oct 1, 2024
…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]>
nsmbot added a commit to networkservicemesh/cmd-exclude-prefixes-k8s that referenced this pull request Oct 1, 2024
…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]>
nsmbot pushed a commit to networkservicemesh/deployments-k8s that referenced this pull request Oct 1, 2024
…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]>
nsmbot pushed a commit to networkservicemesh/deployments-k8s that referenced this pull request Oct 1, 2024
…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]>
nsmbot added a commit to networkservicemesh/deployments-k8s that referenced this pull request Oct 1, 2024
…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]>
nsmbot added a commit to networkservicemesh/deployments-k8s that referenced this pull request Oct 1, 2024
…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]>
nsmbot added a commit to networkservicemesh/deployments-k8s that referenced this pull request Oct 1, 2024
…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]>
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