Fix network interface leak issue#1851
Closed
moypray wants to merge 1 commit intomoby:masterfrom
Closed
Conversation
Author
|
I have updated the PR. could someone take a look? Thanks~ |
|
Hi @moypray looks like there is several failures in the CI |
Author
|
@fcrisciani Thanks for your reply, IThe CI error is |
0a44ad3 to
efed7e6
Compare
Author
|
@fcrisciani I have updated the PR, And all the CI passed. Now I just add a |
Description: When the network resource(sandbox or interface) is created and not saved in store, And docker got killed or crashed, there will be network resource leak. Solution: Add a saving db operation before CreateEndpoint on host. Signed-off-by: Wentao Zhang <zhangwentao234@huawei.com>
Contributor
|
code LGTM |
Contributor
|
(not super familiar with the code though) |
Author
|
@vieux thanks for your reply, |
Member
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix Issue: #1850
Description:
When the network resource(sandbox or interface) is created and not saved in store,
And docker got killed or crashed, there will be network resource leak.
Solution:
Save the resource to datastore first, then create the network resource.
Signed-off-by: Wentao Zhang zhangwentao234@huawei.com