-
Notifications
You must be signed in to change notification settings - Fork 241
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
Fixed windows CNI issues #223
Conversation
cni/network/network_windows.go
Outdated
@@ -55,7 +56,8 @@ func handleConsecutiveAdd(containerId, endpointId string, nwInfo *network.Networ | |||
return result, nil | |||
} | |||
|
|||
return nil, nil | |||
err = fmt.Errorf("endpoint %v not found", endpointId) |
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.
Try to return the error returned from the platform instead of constructing a new one.
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.
done.
defer func() { | ||
if err != nil { | ||
log.Printf("[net] HNSEndpointRequest DELETE id:%v", hnsResponse.Id) | ||
hnsResponse, err := hcsshim.HNSEndpointRequest("DELETE", hnsResponse.Id, "") |
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.
Hopefully the IPAddress is also released from the IPAM following this somewhere in CNI
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.
yes it will free up..will test once.
Does this resolve #218? |
yes it should |
/lgtm Try following scenarios () Deploy a service |
What this PR does / why we need it:
Which issue this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close that issue when PR gets merged): fixes #Special notes for your reviewer:
Release note: