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

backport "feat: CNS/CNI async pod delete (#2183)" to release/v1.4 #2245

Merged
merged 1 commit into from
Sep 26, 2023

Conversation

rbtr
Copy link
Contributor

@rbtr rbtr commented Sep 23, 2023

cherry-pick of #2183 to release/v1.4 branch


Reason for Change:

Issue Fixed:

Requirements:

Notes:

@rbtr rbtr added cns Related to CNS. cni Related to CNI. release/1.4 Change affects v1.4 release train labels Sep 23, 2023
@rbtr rbtr requested a review from camrynl September 23, 2023 00:01
@rbtr rbtr requested a review from a team as a code owner September 23, 2023 00:01
@rbtr rbtr self-assigned this Sep 23, 2023
@rbtr rbtr requested a review from thatmattlong September 23, 2023 00:01
@rbtr rbtr changed the title cherry-pick "feat: CNS/CNI async pod delete (#2183)" to release/v1.4 backport "feat: CNS/CNI async pod delete (#2183)" to release/v1.4 Sep 23, 2023
* initial changes for cni/cns delete deadlock

* add logs and set watcher path

* working fswatcher, removing extra debug lines

* watcher changes for azure-ipam

* remove additional logger from fsnotify and address comments

* /deleteIDs directory as part of cnsconfig

* add feature flag for async delete

* adds some unit test + remove changes for azure-ipam(split pr, dependency conflicts)

* update ut

* update uts

* swift configmap update

* fix configmap for test

* addressing comments

* fix lint

* adding cause to connection error struct

* connectionerr lint

* addressing comments, change watchfs to watcher method

* add ctx to releaseIP func

* log containerID in failure to add watcher, exit select if context is cancelled

* fix logs in network.go after rebase

* catch release ip error in invoker_cns.go

* retry on failure to release ip

* lint fix

* rework asyncdelete watcher

Signed-off-by: Evan Baker <[email protected]>

* include podinterfaceID in file for releaseIP

* close file before delete

---------

Signed-off-by: Evan Baker <[email protected]>
Co-authored-by: Evan Baker <[email protected]>
@camrynl camrynl merged commit f954e86 into Azure:release/v1.4 Sep 26, 2023
35 of 42 checks passed
@rbtr rbtr deleted the release/v1.4 branch September 26, 2023 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cni Related to CNI. cns Related to CNS. release/1.4 Change affects v1.4 release train
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants