Skip to content
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

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

Merged

Conversation

simonferquel
Copy link
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 <simon.ferquel@docker.com>
@lowenna
Copy link
Member

lowenna commented Sep 6, 2018

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

@simonferquel
Copy link
Contributor Author

ping @dineshgovindasamy, any feedback on this one ?

@simonferquel
Copy link
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
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
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

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

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.

None yet

7 participants