-
Notifications
You must be signed in to change notification settings - Fork 260
disable cleaning up hns network and state files from windows cni #879
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
Conversation
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
cnm/ipam/ipam.go
Outdated
| requiresRequestReplay = false | ||
| returnCode = 0 | ||
| returnStr = "Success" | ||
| rehydrateIpamInfoOnReboot = true |
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 thought this should be "false"?
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.
this is not cni..true for cnm
…working into remove_cleanup
42d3a96 to
e3bf3e1
Compare
|
|
Nope this one: https://github.com/Azure/aks-engine/blob/master/staging/provisioning/windows/cleanupnetwork.ps1 |
rbtr
left a comment
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.
blocking on gofmt
cni/ipam/ipam.go
Outdated
|
|
||
| const ( | ||
| ipamV6 = "azure-vnet-ipamv6" | ||
| rehydrateIpamInfoOnReboot = false |
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.
needs gofmt
cni/network/network.go
Outdated
|
|
||
| const ( | ||
| rehydrateNetworkInfoOnReboot = false | ||
| ) |
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.
simplify single declaration
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.
why do we need a constant false? this just hides whatever the real test is from me when I read the code where it is checked (like, is this actually a "is running on windows" bit?)
I think it would be much clearer if, where ever we use this conditional, we were checking the actual underlying condition that makes this switch
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.
nope this is not running on windows.. cnm and cni uses same code path. have to rehydrate for cnm but not for cni
cni/network/network_linux.go
Outdated
| ) | ||
|
|
||
| const ( | ||
| snatConfigFileName = "/tmp/snatConfig" |
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.
simplify single declaration
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
auto trigger pipeline getting failed due to some infra issue. Manually triggered pipeline for this PR: https://msazure.visualstudio.com/One/_build/results?buildId=44757594&view=results |
Reason for Change:
Disable cleaning up hns network and state files from windows cni. Since state and hns network is cleaned up by CRI startup script, no need for cni to cleanup those.
Issue Fixed:
Requirements:
Notes:
This PR is workaround for the issue: #947