Skip to content

[19.03 backport] Fix 'failed to get network during CreateEndpoint'#2565

Merged
selansen merged 1 commit intomoby:bump_19.03from
s0j:s0j_bump_19.03_fix-network-not-found
Jun 10, 2020
Merged

[19.03 backport] Fix 'failed to get network during CreateEndpoint'#2565
selansen merged 1 commit intomoby:bump_19.03from
s0j:s0j_bump_19.03_fix-network-not-found

Conversation

@s0j
Copy link
Copy Markdown

@s0j s0j commented Jun 9, 2020

backport of #2554 for the 19.03 branch

Fix 'failed to get network during CreateEndpoint' during container starting.
Change the error type to libnetwork.ErrNoSuchNetwork, so Start() in daemon/cluster/executor/container/controller.go will recreate the network.

Signed-off-by: Xinfeng Liu xinfeng.liu@gmail.com
(cherry picked from commit 1df7f7e)
Signed-off-by: Shane Jarych sjarych@mirantis.com

Fix 'failed to get network during CreateEndpoint' during container starting.
Change the error type to `libnetwork.ErrNoSuchNetwork`, so `Start()` in `daemon/cluster/executor/container/controller.go` will recreate the network.

Signed-off-by: Xinfeng Liu <xinfeng.liu@gmail.com>
(cherry picked from commit 1df7f7e)
Signed-off-by: Shane Jarych <sjarych@mirantis.com>
@s0j s0j marked this pull request as ready for review June 9, 2020 16:14
Copy link
Copy Markdown
Contributor

@SamWhited SamWhited left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Minor nit that the error should either be handled (ie logged) or returned, but not both, but it's a backport so probably not something to be fixed in this PR.

Copy link
Copy Markdown
Contributor

@selansen selansen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@selansen selansen merged commit 86d159c into moby:bump_19.03 Jun 10, 2020
@s0j s0j deleted the s0j_bump_19.03_fix-network-not-found branch June 11, 2020 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants