Skip to content

[19.03 backport] allocateNetwork: fix network sandbox not cleaned up on failure#41081

Merged
AkihiroSuda merged 1 commit intomoby:19.03from
thaJeztah:19.03_backport_fix_sandbox_cleanup
Jul 26, 2020
Merged

[19.03 backport] allocateNetwork: fix network sandbox not cleaned up on failure#41081
AkihiroSuda merged 1 commit intomoby:19.03from
thaJeztah:19.03_backport_fix_sandbox_cleanup

Conversation

@thaJeztah
Copy link
Copy Markdown
Member

partial backport (only the first commit) of #41020

The defer function was checking for the local err variable, not on the error that was returned by the function. As a result, the sandbox would never be cleaned up for containers that used "none" networking, and a failiure occured during setup.

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

The defer function was checking for the local `err` variable, not
on the error that was returned by the function. As a result, the
sandbox would never be cleaned up for containers that used "none"
networking, and a failiure occured during setup.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit b98b8df)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah thaJeztah added this to the 19.03.12 milestone Jun 8, 2020
@tiborvass
Copy link
Copy Markdown
Contributor

2s timeout in TestDaemonDNSFallback might be too little for ppc64

Copy link
Copy Markdown
Member

@cpuguy83 cpuguy83 left a comment

Choose a reason for hiding this comment

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

LGTM

@thaJeztah thaJeztah modified the milestones: 19.03.12, 19.03.13 Jun 30, 2020
@AkihiroSuda AkihiroSuda merged commit 2d4bfdc into moby:19.03 Jul 26, 2020
@thaJeztah thaJeztah deleted the 19.03_backport_fix_sandbox_cleanup branch July 26, 2020 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants