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 stale hyperkit.pid making minikube start hang #3593

Merged
merged 5 commits into from
Jan 30, 2019

Conversation

balopat
Copy link
Contributor

@balopat balopat commented Jan 26, 2019

Fixes #2994.

@tstromberg
Copy link
Contributor

tstromberg commented Jan 28, 2019

Is some additional work required here?

--- FAIL: TestDocker (190.68s)
	util.go:246: got state: "(minikube) Found hyperkit pid: 12365\nRunning", expected "Running"

pkg/drivers/hyperkit/driver.go Outdated Show resolved Hide resolved
pkg/drivers/hyperkit/driver.go Outdated Show resolved Hide resolved
pkg/drivers/hyperkit/driver.go Show resolved Hide resolved
pkg/drivers/hyperkit/driver.go Outdated Show resolved Hide resolved
pkg/drivers/hyperkit/driver.go Outdated Show resolved Hide resolved
pkg/drivers/hyperkit/driver.go Outdated Show resolved Hide resolved
pkg/drivers/hyperkit/driver.go Outdated Show resolved Hide resolved
pkg/drivers/hyperkit/driver.go Outdated Show resolved Hide resolved
pkg/drivers/hyperkit/driver.go Outdated Show resolved Hide resolved
@tstromberg
Copy link
Contributor

tstromberg commented Jan 28, 2019

This change is wonderful and I can't wait to see it merged. Thank you!

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jan 28, 2019
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: balopat

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 approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 28, 2019
@balopat
Copy link
Contributor Author

balopat commented Jan 28, 2019

Is some additional work required here?

--- FAIL: TestDocker (190.68s)
	util.go:246: got state: "(minikube) Found hyperkit pid: 12365\nRunning", expected "Running"

That was a bug that an additional debugging line introduced! I removed the offending log.

@balopat balopat added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 28, 2019
Driver: "virtio-blk",
},
}
//}
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove comment

@tstromberg
Copy link
Contributor

tstromberg commented Jan 29, 2019

Looks great. Please merge once test failures are addressed. The most recent one looks novel, but unfortunately there isn't much in the way of info:

 15:47:58 | > (minikube) clean start, hyperkit pid file doesn't exist: /Users/jenkins/minikube-integration/darwin-amd64-hyperkit-3593-77386-5af2f1eafc7a5d00238d05637682bf4264343497/.minikube/machines/minikube/hyperkit.pid
 15:47:58 | > (minikube) Using UUID 23979220-2357-11e9-ac78-38c98626f627
 15:48:00 | ! E0128 15:48:00.546915   77513 start.go:205] Error starting host: Error creating host: Error creating machine: Error in driver during machine creation: getting MAC address from UUID: vmnet: error from vmnet.framework: -1
 15:48:00 | ! .
 15:48:00 | !  Retrying.
 15:48:00 | ! I0128 15:48:00.546971   77513 utils.go:114] non-retriable error: Error creating host: Error creating machine: Error in driver during machine creation: getting MAC address from UUID: vmnet: error from vmnet.framework: -1
 15:48:00 | > minikube failed :( exiting with error code 1
 15:48:00 | ! E0128 15:48:00.546993   77513 start.go:211] Error starting host:  Error creating host: Error creating machine: Error in driver during machine creation: getting MAC address from UUID: vmnet: error from vmnet.framework: -1

@k8s-ci-robot
Copy link
Contributor

New changes are detected. LGTM label has been removed.

@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 29, 2019
@balopat balopat added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 29, 2019
@balopat
Copy link
Contributor Author

balopat commented Jan 29, 2019

It's an odd error that doesn't occur locally. I reverted a weird change in the disk setup - not sure why it was moved (this was an older code of mine that I was playing with - might have been an accidental mouse move?) - the issue might have been related.

@balopat
Copy link
Contributor Author

balopat commented Jan 29, 2019

It seems that something (maybe the first bad build here?) broke the hyperkit build - and it is now breaking on the master builds too with the same vmnet error. I am suspecting environmental/host level state to be responsible, we'll have to look tomorrow.

@balopat
Copy link
Contributor Author

balopat commented Jan 29, 2019

in fact there is a running hyperkit instance:

55199   ??  S     18:06.13 /usr/local/bin/hyperkit -A -u -F /Users/jenkins/minikube-integration/darwin-amd64-hyperkit-master-54872-00be38dadc7c4301471c9d6657853252bc729e4a/.minikube/machines/minikube/hyperkit.pid -c 2 -m 2048M -s 0:0,hostbridge -s 31,lpc -s 1:0,virtio-net -U 304f5632-22ae-11e9-846f-38c98626f627 -s 2:0,virtio-blk,/Users/jenkins/minikube-integration/darwin-amd64-hyperkit-master-54872-00be38dadc7c4301471c9d6657853252bc729e4a/.minikube/machines/minikube/minikube.rawdisk -s 3,ahci-cd,/Users/jenkins/minikube-integration/darwin-amd64-hyperkit-master-54872-00be38dadc7c4301471c9d6657853252bc729e4a/.minikube/machines/minikube/boot2docker.iso -s 4,virtio-rnd -l com1,autopty=/Users/jenkins/minikube-integration/darwin-amd64-hyperkit-master-54872-00be38dadc7c4301471c9d6657853252bc729e4a/.minikube/machines/minikube/tty,log=/Users/jenkins/minikube-integration/darwin-amd64-hyperkit-master-54872-00be38dadc7c4301471c9d6657853252bc729e4a/.minikube/machines/minikube/console-ring -f kexec,/Users/jenkins/minikube-integration/darwin-amd64-hyperkit-master-54872-00be38dadc7c4301471c9d6657853252bc729e4a/.minikube/machines/minikube/bzimage,/Users/jenkins/minikube-integration/darwin-amd64-hyperkit-master-54872-00be38dadc7c4301471c9d6657853252bc729e4a/.minikube/machines/minikube/initrd,earlyprintk=serial loglevel=3 user=docker console=ttyS0 console=tty0 noembed nomodeset norestore waitusb=10 systemd.legacy_systemd_cgroup_controller=yes base host=minikube

I'm going to kill it and retry the job.

@balopat
Copy link
Contributor Author

balopat commented Jan 29, 2019

Some curious experiments:
while the rouge hyperkit server was running I tried to spin up a new hyperkit server manually.

$ sudo /usr/local/bin/hyperkit -A -u -F /Users/jenkins/minikube-integration/btest/.minikube/machines/minikube/hyperkit.pid -c 2 -m 2048M -s 0:0,hostbridge -s 31,lpc -s 1:0,virtio-net -U 304f5632-22ae-11e9-846f-38c98626f627 -s 2:0,virtio-blk,/Users/jenkins/minikube-integration/btest/.minikube/machines/minikube/minikube.rawdisk -s 3,ahci-cd,/Users/jenkins/minikube-integration/btest/.minikube/machines/minikube/boot2docker.iso -s 4,virtio-rnd -l com1,autopty=/Users/jenkins/minikube-integration/btest/.minikube/machines/minikube/tty,log=/Users/jenkins/minikube-integration/btest/.minikube/machines/minikube/console-ring -f kexec,/Users/jenkins/minikube-integration/btest/.minikube/machines/minikube/bzimage,/Users/jenkins/minikube-integration/btest/.minikube/machines/minikube/initrd,earlyprintk=serial loglevel=3 user=docker console=ttyS0 console=tty0 noembed nomodeset norestore waitusb=10 systemd.legacy_systemd_cgroup_controller=yes base host=minikube
virtio_net: Could not create vmnet interface, permission denied or no entitlement?

When I killed the server, for a while I still got virtio_net: Could not create vmnet interface, permission denied or no entitlement? and just a couple of minutes later the expected:

$ sudo /usr/local/bin/hyperkit -A -u -F /Users/jenkins/minikube-integration/btest/.minikube/machines/minikube/hyperkit.pid -c 2 -m 2048M -s 0:0,hostbridge -s 31,lpc -s 1:0,virtio-net -U 304f5632-22ae-11e9-846f-38c98626f627 -s 2:0,virtio-blk,/Users/jenkins/minikube-integration/btest/.minikube/machines/minikube/minikube.rawdisk -s 3,ahci-cd,/Users/jenkins/minikube-integration/btest/.minikube/machines/minikube/boot2docker.iso -s 4,virtio-rnd -l com1,autopty=/Users/jenkins/minikube-integration/btest/.minikube/machines/minikube/tty,log=/Users/jenkins/minikube-integration/btest/.minikube/machines/minikube/console-ring -f kexec,/Users/jenkins/minikube-integration/btest/.minikube/machines/minikube/bzimage,/Users/jenkins/minikube-integration/btest/.minikube/machines/minikube/initrd,earlyprintk=serial loglevel=3 user=docker console=ttyS0 console=tty0 noembed nomodeset norestore waitusb=10 systemd.legacy_systemd_cgroup_controller=yes base host=minikube
Could not open backing file: No such file or directory
Could not open backing file: No such file or directory

Which is expected as the directory did not contain the initrd, bzimage. rawdisk and boot2docker.iso files.

I bounced the jenkins job - let's see where that gets us.

@balopat
Copy link
Contributor Author

balopat commented Jan 29, 2019

I wonder where the collision was - one candidate is host=minikube - and would make sense that virtio-net wouldn't allow two hosts with the same name...

@tstromberg
Copy link
Contributor

@minikube-bot OK to test

1 similar comment
@tstromberg
Copy link
Contributor

@minikube-bot OK to test

@k8s-ci-robot k8s-ci-robot merged commit fd38580 into kubernetes:master Jan 30, 2019
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. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants