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

Return an error if there is no DNS address. #1424

Merged

Conversation

glazychev-art
Copy link
Contributor

Description

This PR partially reverts this - #1416
The previous approach using monitor and sending REFRESH_REQUESTED event is not suitable, since there is some time (even if very little) between the Request and MonitorConnections. Because of this, we get into a situation where both the Request and the event may not update the DNS context.

In this PR we return an error until the address is assigned. But we must allow Request to itself, because that Request is what selects the addresses.

Issue link

networkservicemesh/integration-k8s-kind#750

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

@codecov
Copy link

codecov bot commented Feb 20, 2023

Codecov Report

❗ No coverage uploaded for pull request base (main@ff8f08b). Click here to learn what that means.
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1424   +/-   ##
=======================================
  Coverage        ?   70.15%           
=======================================
  Files           ?      242           
  Lines           ?    10956           
  Branches        ?        0           
=======================================
  Hits            ?     7686           
  Misses          ?     2771           
  Partials        ?      499           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@glazychev-art glazychev-art force-pushed the vl3_dns_wait_ip branch 3 times, most recently from 1fab66e to 0f49980 Compare February 20, 2023 09:05
Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>
@glazychev-art glazychev-art marked this pull request as ready for review February 20, 2023 10:16
@denis-tingaikin denis-tingaikin merged commit 26b7ec8 into networkservicemesh:main Feb 20, 2023
nsmbot pushed a commit to networkservicemesh/cmd-cluster-info-k8s that referenced this pull request Feb 20, 2023
…k@main

PR link: networkservicemesh/sdk#1424

Commit: 26b7ec8
Author: Artem Glazychev
Date: 2023-02-20 18:05:48 +0700
Message:
  - Return an error if there is no DNS address. (#1424)
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-admission-webhook-k8s that referenced this pull request Feb 20, 2023
…k@main

PR link: networkservicemesh/sdk#1424

Commit: 26b7ec8
Author: Artem Glazychev
Date: 2023-02-20 18:05:48 +0700
Message:
  - Return an error if there is no DNS address. (#1424)
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-map-ip-k8s that referenced this pull request Feb 20, 2023
…k@main

PR link: networkservicemesh/sdk#1424

Commit: 26b7ec8
Author: Artem Glazychev
Date: 2023-02-20 18:05:48 +0700
Message:
  - Return an error if there is no DNS address. (#1424)
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-ipam-vl3 that referenced this pull request Feb 20, 2023
…k@main

PR link: networkservicemesh/sdk#1424

Commit: 26b7ec8
Author: Artem Glazychev
Date: 2023-02-20 18:05:48 +0700
Message:
  - Return an error if there is no DNS address. (#1424)
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-nsc-init that referenced this pull request Feb 20, 2023
…k@main

PR link: networkservicemesh/sdk#1424

Commit: 26b7ec8
Author: Artem Glazychev
Date: 2023-02-20 18:05:48 +0700
Message:
  - Return an error if there is no DNS address. (#1424)
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-nse-remote-vlan that referenced this pull request Feb 20, 2023
…k@main

PR link: networkservicemesh/sdk#1424

Commit: 26b7ec8
Author: Artem Glazychev
Date: 2023-02-20 18:05:48 +0700
Message:
  - Return an error if there is no DNS address. (#1424)
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-nse-vfio that referenced this pull request Feb 20, 2023
…k@main

PR link: networkservicemesh/sdk#1424

Commit: 26b7ec8
Author: Artem Glazychev
Date: 2023-02-20 18:05:48 +0700
Message:
  - Return an error if there is no DNS address. (#1424)
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-nsmgr-proxy that referenced this pull request Feb 20, 2023
…k@main

PR link: networkservicemesh/sdk#1424

Commit: 26b7ec8
Author: Artem Glazychev
Date: 2023-02-20 18:05:48 +0700
Message:
  - Return an error if there is no DNS address. (#1424)
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-nsmgr that referenced this pull request Feb 20, 2023
…k@main

PR link: networkservicemesh/sdk#1424

Commit: 26b7ec8
Author: Artem Glazychev
Date: 2023-02-20 18:05:48 +0700
Message:
  - Return an error if there is no DNS address. (#1424)
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-registry-memory that referenced this pull request Feb 20, 2023
…k@main

PR link: networkservicemesh/sdk#1424

Commit: 26b7ec8
Author: Artem Glazychev
Date: 2023-02-20 18:05:48 +0700
Message:
  - Return an error if there is no DNS address. (#1424)
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-registry-proxy-dns that referenced this pull request Feb 20, 2023
…k@main

PR link: networkservicemesh/sdk#1424

Commit: 26b7ec8
Author: Artem Glazychev
Date: 2023-02-20 18:05:48 +0700
Message:
  - Return an error if there is no DNS address. (#1424)
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/sdk-kernel that referenced this pull request Feb 20, 2023
…k@main

PR link: networkservicemesh/sdk#1424

Commit: 26b7ec8
Author: Artem Glazychev
Date: 2023-02-20 18:05:48 +0700
Message:
  - Return an error if there is no DNS address. (#1424)
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/sdk-k8s that referenced this pull request Feb 20, 2023
…k@main

PR link: networkservicemesh/sdk#1424

Commit: 26b7ec8
Author: Artem Glazychev
Date: 2023-02-20 18:05:48 +0700
Message:
  - Return an error if there is no DNS address. (#1424)
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.

2 participants