minikube: StartHost failed : container addresses should have 2 values, got 3 values
I use a second network to give a range of ips to Metallb. Everyting work fine except at restart. Minikube complain about having two networks. I have to disconnect the second network before each restart. And then reconnect.
I find nothing helpful in the doc / github Issues.
Steps to reproduce the issue:
- minukube start --vm-driver=docker
- docker network create my-net
- docker network connect my-net minikube
- minikube stop
- minikube start
Full output of failed command:
๐ Updating the running docker "minikube" container ...
I0101 20:57:39.509944 3016595 machine.go:88] provisioning docker machine ...
I0101 20:57:39.509978 3016595 ubuntu.go:169] provisioning hostname "minikube"
I0101 20:57:39.510046 3016595 cli_runner.go:111] Run: docker container inspect -f "'{{(index (index .NetworkSettings.Ports "22/tcp") 0).HostPort}}'" minikube
I0101 20:57:39.550282 3016595 main.go:119] libmachine: Using SSH client type: native
I0101 20:57:39.550473 3016595 main.go:119] libmachine: &{{{<nil> 0 [] [] []} docker [0x80b6c0] 0x80b680 <nil> [] 0s} 127.0.0.1 49332 <nil> <nil>}
I0101 20:57:39.550495 3016595 main.go:119] libmachine: About to run SSH command:
sudo hostname minikube && echo "minikube" | sudo tee /etc/hostname
I0101 20:57:39.694466 3016595 main.go:119] libmachine: SSH cmd err, output: <nil>: minikube
I0101 20:57:39.694552 3016595 cli_runner.go:111] Run: docker container inspect -f "'{{(index (index .NetworkSettings.Ports "22/tcp") 0).HostPort}}'" minikube
I0101 20:57:39.733676 3016595 main.go:119] libmachine: Using SSH client type: native
I0101 20:57:39.733849 3016595 main.go:119] libmachine: &{{{<nil> 0 [] [] []} docker [0x80b6c0] 0x80b680 <nil> [] 0s} 127.0.0.1 49332 <nil> <nil>}
I0101 20:57:39.733873 3016595 main.go:119] libmachine: About to run SSH command:
if ! grep -xq '.*\sminikube' /etc/hosts; then
if grep -xq '127.0.1.1\s.*' /etc/hosts; then
sudo sed -i 's/^127.0.1.1\s.*/127.0.1.1 minikube/g' /etc/hosts;
else
echo '127.0.1.1 minikube' | sudo tee -a /etc/hosts;
fi
fi
I0101 20:57:39.862874 3016595 main.go:119] libmachine: SSH cmd err, output: <nil>:
I0101 20:57:39.862918 3016595 ubuntu.go:175] set auth options {CertDir:/home/ggjulio/.minikube CaCertPath:/home/ggjulio/.minikube/certs/ca.pem CaPrivateKeyPath:/home/ggjulio/.minikube/certs/ca-key.pem CaCertRemotePath:/etc/docker/ca.pem ServerCertPath:/home/ggjulio/.minikube/machines/server.pem ServerKeyPath:/home/ggjulio/.minikube/machines/server-key.pem ClientKeyPath:/home/ggjulio/.minikube/certs/key.pem ServerCertRemotePath:/etc/docker/server.pem ServerKeyRemotePath:/etc/docker/server-key.pem ClientCertPath:/home/ggjulio/.minikube/certs/cert.pem ServerCertSANs:[] StorePath:/home/ggjulio/.minikube}
I0101 20:57:39.863002 3016595 ubuntu.go:177] setting up certificates
I0101 20:57:39.863023 3016595 provision.go:83] configureAuth start
I0101 20:57:39.863092 3016595 cli_runner.go:111] Run: docker container inspect -f "{{range .NetworkSettings.Networks}}{{.IPAddress}},{{.GlobalIPv6Address}}{{end}}" minikube
I0101 20:57:39.904544 3016595 provision.go:86] duration metric: configureAuth took 41.505805ms
W0101 20:57:39.904583 3016595 ubuntu.go:180] configureAuth failed: error getting ip during provisioning: container addresses should have 2 values, got 3 values: [192.168.49.2 172.20.0.2 ]
I0101 20:57:39.904600 3016595 retry.go:31] will retry after 110.466ยตs: Temporary Error: error getting ip during provisioning: container addresses should have 2 values, got 3 values: [192.168.49.2 172.20.0.2 ]
I0101 20:57:39.904801 3016595 provision.go:83] configureAuth start
โ ~ docker container inspect -f "{{range .NetworkSettings.Networks}}{{.IPAddress}},{{.GlobalIPv6Address}}{{end}}" minikube
192.168.49.2,172.20.0.2,
Full output of minikube start command used, if not already included:
โ ~ minikube start
๐ minikube v1.16.0 on Ubuntu 20.04
โจ Using the docker driver based on existing profile
๐ Starting control plane node minikube in cluster minikube
๐ Restarting existing docker container for "minikube" ...
๐คฆ StartHost failed, but will try again: container addresses should have 2 values, got 3 values: [192.168.49.2 172.20.0.2 ]
๐ Updating the running docker "minikube" container ...
About this issue
- Original URL
- State: open
- Created 3 years ago
- Reactions: 1
- Comments: 19 (6 by maintainers)
Iโm freezing this issue as it is a genuine minikube bug. Help wanted!