kubernetes/minikube

KVM: log more details when minikube is failed to start

Aperta

#11.835 aperta il 30 giu 2021

 (4 commenti) (1 reazione) (0 assegnatari)Go (5222 fork)batch import
co/kvm2-driverhelp wantedkind/featurelifecycle/frozenos/linuxpriority/backlog

Metriche repository

Star
 (31.799 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

ATM, if minikube is faiiled to start with kvm driver the logs are not very informative:

I0519 13:34:43.422786  164784 main.go:128] libmachine: (minikube) DBG | I0519 13:34:43.422686  165018 retry.go:31] will retry after 9.953714808s: waiting for machine to come up
I0519 13:34:53.379360  164784 main.go:128] libmachine: (minikube) DBG | domain minikube has defined MAC address 52:54:00:b6:34:03 in network mk-minikube
I0519 13:34:53.379793  164784 main.go:128] libmachine: (minikube) DBG | unable to find current IP address of domain minikube in network mk-minikube
I0519 13:34:53.379829  164784 main.go:128] libmachine: (minikube) DBG | I0519 13:34:53.379705  165018 retry.go:31] will retry after 15.120437328s: waiting for machine to come up
I0519 13:35:08.502351  164784 main.go:128] libmachine: (minikube) DBG | domain minikube has defined MAC address 52:54:00:b6:34:03 in network mk-minikube
I0519 13:35:08.502779  164784 main.go:128] libmachine: (minikube) DBG | unable to find current IP address of domain minikube in network mk-minikube
I0519 13:35:08.503645  164784 main.go:128] libmachine: (minikube) KVM machine creation complete!
I0519 13:35:08.503778  164784 client.go:171] LocalClient.Create took 1m6.867506221s
I0519 13:35:10.504966  164784 start.go:129] duration metric: createHost completed in 1m8.91454672s
I0519 13:35:10.505033  164784 start.go:80] releasing machines lock for "minikube", held for 1m8.914751391s
W0519 13:35:10.505316  164784 out.go:235] * Failed to start kvm2 VM. Running "minikube delete" may fix it: creating host: create: Error creating machine: Error in driver during machine creation: IP not available after waiting: machine minikube didn't return IP after 1 minute
* Failed to start kvm2 VM. Running "minikube delete" may fix it: creating host: create: Error creating machine: Error in driver during machine creation: IP not available after waiting: machine minikube didn't return IP after 1 minute
I0519 13:35:10.509795  164784 out.go:170] 

W0519 13:35:10.509971  164784 out.go:235] X Exiting due to GUEST_PROVISION: Failed to start host: creating host: create: Error creating machine: Error in driver during machine creation: IP not available after waiting: machine minikube didn't return IP after 1 minute
X Exiting due to GUEST_PROVISION: Failed to start host: creating host: create: Error creating machine: Error in driver during machine creation: IP not available after waiting: machine minikube didn't return IP after 1 minute
W0519 13:35:10.509981  164784 out.go:424] no arguments passed for "* \n" - returning raw string
W0519 13:35:10.509989  164784 out.go:235] * 

Printing more details, like the output of virsh net-info/net-dumpxml/dominfo/dumpxml could help a lot to investigate such issues

Guida contributor