Skip to content

Fix long startup on windows, with non-hns governed Hyper-V networks#37774

Merged
thaJeztah merged 1 commit intomoby:masterfrom
simonferquel:windows-network-plugin-miss-fix
Oct 3, 2018
Merged

Fix long startup on windows, with non-hns governed Hyper-V networks#37774
thaJeztah merged 1 commit intomoby:masterfrom
simonferquel:windows-network-plugin-miss-fix

Conversation

@simonferquel
Copy link
Copy Markdown
Contributor

Similar to a related issue where previously, private Hyper-V networks
would each add 15 secs to the daemon startup (see #33053), non-hns governed internal
networks are reported by hns as network type "internal" which is not
mapped to any network plugin (and thus we get the same plugin load retry
loop as before).

This issue hits Docker for Desktop because we setup such a network for
the Linux VM communication.

- What I did

Added "internal" in the list of network plugins skipped on windows startup sequence

- How I did it

Just modified an existing "if" block handling the "private" network type

- How to verify it

  • Create an internal HyperV virtual switch
  • Start docker daemon
  • Make sure the logs don't say things like
Unable to locate plugin: internal, retrying in 1s
Unable to locate plugin: internal, retrying in 2s
Unable to locate plugin: internal, retrying in 4s
Unable to locate plugin: internal, retrying in 8s

Similar to a related issue where previously, private Hyper-V networks
would each add 15 secs to the daemon startup, non-hns governed internal
networks are reported by hns as network type "internal" which is not
mapped to any network plugin (and thus we get the same plugin load retry
loop as before).

This issue hits Docker for Desktop because we setup such a network for
the Linux VM communication.

Signed-off-by: Simon Ferquel <[email protected]>
@lowenna
Copy link
Copy Markdown
Member

lowenna commented Sep 6, 2018

SGTM, but I'd like our networking team to verify too. @dineshgovindasamy, PTAL.

@simonferquel
Copy link
Copy Markdown
Contributor Author

ping @dineshgovindasamy, any feedback on this one ?

@simonferquel
Copy link
Copy Markdown
Contributor Author

ping @vdemeester this PR needs a bit of shaking. On Docker Desktop for Windows it adds 15 sec startup time per Hyper-V network not managed by HNS (on Windows 10 build 1803+).

Copy link
Copy Markdown
Member

@vdemeester vdemeester left a comment

Choose a reason for hiding this comment

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

LGTM 🐯

Copy link
Copy Markdown
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

LGTM

@codecov
Copy link
Copy Markdown

codecov bot commented Oct 3, 2018

Codecov Report

Merging #37774 into master will decrease coverage by 0.44%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master   #37774      +/-   ##
==========================================
- Coverage   36.09%   35.64%   -0.45%     
==========================================
  Files         610      610              
  Lines       45115    46347    +1232     
==========================================
+ Hits        16284    16521     +237     
- Misses      26591    27559     +968     
- Partials     2240     2267      +27

@dineshgovindasamy
Copy link
Copy Markdown

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants