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

Increase host creation timeout #7565

Merged
merged 2 commits into from
Apr 16, 2020
Merged

Conversation

tstromberg
Copy link
Contributor

To address #7561

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Apr 10, 2020
@tstromberg
Copy link
Contributor Author

/ok-to-test

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: tstromberg

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the ok-to-test Indicates a non-member PR verified by an org member that is safe to test. label Apr 10, 2020
@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 10, 2020
@tstromberg tstromberg changed the title Increase libmachine timeout to 5 minutes Increase libmachine timeout Apr 10, 2020
@minikube-pr-bot
Copy link

kvm2 Driver
docker Driver

@codecov-io
Copy link

Codecov Report

Merging #7565 into master will not change coverage by %.
The diff coverage is 0.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #7565   +/-   ##
=======================================
  Coverage   36.49%   36.49%           
=======================================
  Files         147      147           
  Lines        9109     9109           
=======================================
  Hits         3324     3324           
  Misses       5398     5398           
  Partials      387      387           
Impacted Files Coverage Δ
pkg/minikube/machine/start.go 54.00% <0.00%> (ø)

@tstromberg tstromberg changed the title Increase libmachine timeout Increase host creation timeout Apr 10, 2020
// Allow two minutes to create host before failing fast
if err := timedCreateHost(h, api, 2*time.Minute); err != nil {

if err := timedCreateHost(h, api, 4*time.Minute); err != nil {
Copy link
Member

@medyagh medyagh Apr 10, 2020

Choose a reason for hiding this comment

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

one of the reasons that this was made lower was to catch
connecting to SSH...

that meant the SSH keys were not copied to the machine, and no matter how long u try it would not be helpful

how about make this timedCreateHost smarter and fail fast on the things that we can do NOTHING about it
(like SSH problems or network or something like that ?) and for other use cases we can even make it wait longer than 4 mins, we can even do 6 ( good for slow CI machines)

Copy link
Member

Choose a reason for hiding this comment

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

here is the exact error message if you wanna catch that one to fail fast:

I0212 20:18:31.490329   17811 main.go:110] libmachine: Error dialing TCP: dial tcp 192.168.64.44:22: connect: connection refused
I0212 20:18:35.497395   17811 main.go:110] libmachine: Error dialing TCP: dial tcp 192.168.64.44:22: connect: connection refused
I0212 20:18:39.502636   17811 main.go:110] libmachine: Error dialing TCP: dial tcp 192.168.64.44:22: connect: connection refused
I0212 20:18:43.512406   17811 main.go:110] libmachine: Error dialing TCP: dial tcp 192.168.64.44:22: connect: connection refused

(maybe this might need a PR on libmachine (not sure))

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think it's feasible to detect other conditions. Is 3 minutes an acceptable compromise?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants