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

Add join VNET call for every AZR NC unpublish call with fixed UTs #3016

Merged
merged 6 commits into from
Sep 16, 2024

Conversation

smittal22
Copy link
Contributor

@smittal22 smittal22 commented Sep 13, 2024

Reason for Change:
For AZR scenarios, if NMAgent is restarted, it loses state and does not know what VNETs to subscribe to. As it no longer has VNET state, successive put nc or delete nc calls would fail. We, however, always call join VNET before put nc call. This PR adds such a flow for delete AZR nc calls as well.

PS: We don't need this flow for regular NCs, as NMAgent there uses NMA swift module to rehydrate VNETs if state is lost.

Requirements:

Notes:

@smittal22 smittal22 requested a review from a team as a code owner September 13, 2024 16:08
@smittal22 smittal22 requested a review from csfmomo September 13, 2024 16:08
@smittal22 smittal22 self-assigned this Sep 13, 2024
@smittal22 smittal22 added the AZR AZR related PR label Sep 13, 2024
@smittal22 smittal22 force-pushed the sakmittal/fix-unpublish-bug branch from 437daa7 to c0b1d57 Compare September 13, 2024 16:15
@smittal22
Copy link
Contributor Author

/azp run Azure Container Networking PR

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@Azure Azure deleted a comment from azure-pipelines bot Sep 13, 2024
@smittal22 smittal22 enabled auto-merge September 13, 2024 16:38
cns/restserver/api.go Outdated Show resolved Hide resolved
cns/restserver/api.go Outdated Show resolved Hide resolved
cns/restserver/api_test.go Show resolved Hide resolved
@smittal22 smittal22 force-pushed the sakmittal/fix-unpublish-bug branch from d53b7e7 to cca60f4 Compare September 13, 2024 19:52
@smittal22
Copy link
Contributor Author

/azp run Azure Container Networking PR

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@smittal22 smittal22 added this pull request to the merge queue Sep 13, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 14, 2024
@smittal22 smittal22 added this pull request to the merge queue Sep 14, 2024
@smittal22 smittal22 removed this pull request from the merge queue due to a manual request Sep 14, 2024
@smittal22 smittal22 added this pull request to the merge queue Sep 14, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 15, 2024
@paulyufan2 paulyufan2 added this pull request to the merge queue Sep 15, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 15, 2024
@paulyufan2 paulyufan2 added this pull request to the merge queue Sep 16, 2024
Merged via the queue into master with commit ed2b57a Sep 16, 2024
14 checks passed
@paulyufan2 paulyufan2 deleted the sakmittal/fix-unpublish-bug branch September 16, 2024 03:20
@rbtr rbtr mentioned this pull request Sep 26, 2024
14 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AZR AZR related PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants