Closed Loki-Afro closed 3 years ago
Each VM has two network interfaces, one for the SSH control traffic and one for Kubernetes. So it is trying to determine the IP of the “public” (but still host-only) interface.
What does your /var/lib/libvirt/dnsmasq/virbr?.status
look like ? Normally it would look something like this, which is what minikube is trying to parse in this case...
[
{
"ip-address": "192.168.39.191",
"mac-address": "dc:2a:e0:a1:db:8f",
"hostname": "minikube",
"client-id": "01:dc:2a:e0:a1:db:8f",
"expiry-time": 1583092337
}
]
The error reporting could be improved, but it seems something odd with the new libvirt/dnsmasq
You probably want to check the systemd logs of both services, if there were any dnsmasq issues ?
Machines that are not running, have an empty virbr status:
[
]
Maybe that is what is happening here ? (it would parse as "")
/var/lib/libvirt/dnsmasq/virbr0.status
[
{
"ip-address": "192.168.122.86",
"mac-address": "ec:ac:5b:47:35:d5",
"hostname": "minikube",
"client-id": "01:ec:ac:5b:47:35:d5",
"expiry-time": 1583101280
}
]
/var/lib/libvirt/dnsmasq/virbr1.status
[
{
"ip-address": "192.168.39.92",
"mac-address": "b0:ff:7d:f4:d2:97",
"hostname": "minikube",
"client-id": "01:b0:ff:7d:f4:d2:97",
"expiry-time": 1583101280
}
]
also virsh is reporting that the vm is running
virsh list --all
Id Name State
--------------------------
2 minikube running
I just noticed but duno if its related
root@anubis ~ # journalctl -fu libvirtd
-- Logs begin at Thu 2020-02-06 21:30:30 CET. --
Mar 01 22:26:26 anubis libvirtd[1198]: End of file while reading data: Input/output error
Mar 01 22:26:26 anubis libvirtd[1198]: End of file while reading data: Input/output error
Mar 01 22:26:26 anubis libvirtd[1198]: End of file while reading data: Input/output error
Mar 01 22:26:26 anubis libvirtd[1198]: End of file while reading data: Input/output error
don't know what is causing this issue or if is even related.
seems like when calling minikube ip
a new End of file while reading data: Input/output error
is thrown
Those status files look perfectly normal, hard to tell why the parsing fails (like you have reported)
Another reason would be if the MAC are not matching, but no real reason why they should not...
PR's welcome to add the debugging you need. Send em on over!
Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale
.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close
.
Send feedback to sig-testing, kubernetes/test-infra and/or fejta. /lifecycle stale
Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten
.
Rotten issues close after an additional 30d of inactivity.
If this issue is safe to close now please do so with /close
.
Send feedback to sig-testing, kubernetes/test-infra and/or fejta. /lifecycle rotten
Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen
.
Mark the issue as fresh with /remove-lifecycle rotten
.
Send feedback to sig-testing, kubernetes/test-infra and/or fejta. /close
@fejta-bot: Closing this issue.
The exact command to reproduce the issue:
minikube status --alsologtostderr -v=7
The full output of the command that failed:
The output of the
minikube logs
command:The operating system version: Fedora 31
Trying to install minikube on a fresh Fedora 31 via kvm2 driver leads to that minikube is unable to determine a ip for the running vm. As you can see via
minikube logs
it says it can't connect via ssh .. well .. if there is no ip how could it ;)I looked into the code and found a few interesting bits
I guess since this is a fresh fedora installation and it is usually pretty miuch bleeding edge the later code gets called.
lookupIPFromStatusFile
then callsparseStatusAndReturnIP
where I guess lies my problem.Line 321 AND 335 in netowork.go do NOT return any error but return an empty ip address which fails here https://github.com/kubernetes/minikube/blob/4f1a16385b5b13df3101626fc21d28809913f95f/pkg/drivers/kvm/kvm.go#L202 well fails ... it does check for the error but not the ip.
So my request is to get some more logging into these 2 lines to debug such issues further.
Is there a way to let minikube force to use a specific ip (to skip that weird discovery process) - just for a workaround?