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

CAPD quickstart is broken when selecting a Kubernetes version not available from Kind #3795

Closed
benmoss opened this issue Oct 14, 2020 · 8 comments · Fixed by #3932
Closed
Assignees
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/bug Categorizes issue or PR as related to a bug. kind/documentation Categorizes issue or PR as related to documentation. lifecycle/active Indicates that an issue or PR is actively being worked on by a contributor.

Comments

@benmoss
Copy link

benmoss commented Oct 14, 2020

What steps did you take and what happened:
Followed the CAPD quickstart:

$ export KIND_EXPERIMENTAL_DOCKER_NETWORK=bridge
$ kind create cluster --config ~/kind-cluster-with-extramounts.yaml
(...success...)
$ clusterctl init --infrastructure docker
(...success...)
$ clusterctl config cluster bmo --kubernetes-version 1.19.2 --infrastructure docker --flavor development | k apply -f-
(...success...)
(...wait a while...)
$ k -n capd-system logs capd-controller-manager-846746f8b5-6lxp8 -c manager
I1014 15:37:24.604628       1 dockermachine_controller.go:214] controllers/DockerMachine/DockerMachine-controller "msg"="failed to create worker DockerMachine: command \"docker run --detach --tty --privileged --security-opt seccomp=unconfined --tmpfs /tmp --tmpfs /run --volume /var --volume /lib/modules:/lib/module
s:ro --hostname kubemark-control-plane-5xwnk --name kubemark-control-plane-5xwnk --label io.x-k8s.kind.cluster=kubemark --label io.x-k8s.kind.role=control-plane --expose 42677 --volume=/var/run/docker.sock:/var/run/docker.sock --publish=127.0.0.1:42677:6443/TCP kindest/node:v1.19.2\" failed with error: exit status
125, cleaning up so we can re-provision from a clean state" "cluster"="kubemark" "docker-cluster"="kubemark" "docker-machine"={"Namespace":"default","Name":"kubemark-control-plane-779bk"} "machine"="kubemark-control-plane-5xwnk"
I1014 15:37:34.721942       1 machine.go:195] controllers/DockerMachine/DockerMachine-controller "msg"="Creating control plane machine container" "cluster"="kubemark" "docker-cluster"="kubemark" "docker-machine"={"Namespace":"default","Name":"kubemark-control-plane-779bk"} "machine"="kubemark-control-plane-5xwnk"
Unable to find image 'kindest/node:v1.19.2' locally
docker: Error response from daemon: manifest for kindest/node:v1.19.2 not found: manifest unknown: manifest unknown.
See 'docker run --help'.
I1014 15:37:35.094651       1 dockermachine_controller.go:214] controllers/DockerMachine/DockerMachine-controller "msg"="failed to create worker DockerMachine: command \"docker run --detach --tty --privileged --security-opt seccomp=unconfined --tmpfs /tmp --tmpfs /run --volume /var --volume /lib/modules:/lib/module
s:ro --hostname kubemark-control-plane-5xwnk --name kubemark-control-plane-5xwnk --label io.x-k8s.kind.cluster=kubemark --label io.x-k8s.kind.role=control-plane --expose 44941 --volume=/var/run/docker.sock:/var/run/docker.sock --publish=127.0.0.1:44941:6443/TCP kindest/node:v1.19.2\" failed with error: exit status
125, cleaning up so we can re-provision from a clean state" "cluster"="kubemark" "docker-cluster"="kubemark" "docker-machine"={"Namespace":"default","Name":"kubemark-control-plane-779bk"} "machine"="kubemark-control-plane-5xwnk"

What did you expect to happen:
The control plane comes up successfully

Environment:

  • Cluster-api version: 0.3.10
  • Minikube/KIND version: 0.9.0
  • Kubernetes version: (use kubectl version): 1.18.6
  • OS (e.g. from /etc/os-release): ubuntu focal

/kind bug

@k8s-ci-robot k8s-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Oct 14, 2020
@fabriziopandini
Copy link
Member

/triage support
AFAIK there is not yet a kindest/node:v1.19.2 on docker hub

@k8s-ci-robot
Copy link
Contributor

@fabriziopandini: The label(s) triage/support cannot be applied, because the repository doesn't have them

In response to this:

/triage support
AFAIK there is not yet a kindest/node:v1.19.2 on docker hub

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@benmoss
Copy link
Author

benmoss commented Oct 14, 2020

Ohh that makes sense. It wasn't clear I needed to pick a k8s version that was available from kind.

@benmoss benmoss changed the title CAPD quickstart is broken CAPD quickstart is broken when selecting a Kubernetes version not available from Kind Oct 14, 2020
@vincepri
Copy link
Member

/kind documentation
/help

Let's add a note to the quick start that folks need to check which images are available

@k8s-ci-robot
Copy link
Contributor

@vincepri:
This request has been marked as needing help from a contributor.

Please ensure the request meets the requirements listed here.

If this request no longer meets these requirements, the label can be removed
by commenting with the /remove-help command.

In response to this:

/kind documentation
/help

Let's add a note to the quick start that folks need to check which images are available

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@k8s-ci-robot k8s-ci-robot added kind/documentation Categorizes issue or PR as related to documentation. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. labels Oct 16, 2020
@vincepri
Copy link
Member

/milestone Next

@k8s-ci-robot k8s-ci-robot added this to the Next milestone Oct 16, 2020
@wfernandes
Copy link
Contributor

/assign

@wfernandes
Copy link
Contributor

/lifecycle active

@k8s-ci-robot k8s-ci-robot added the lifecycle/active Indicates that an issue or PR is actively being worked on by a contributor. label Nov 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/bug Categorizes issue or PR as related to a bug. kind/documentation Categorizes issue or PR as related to documentation. lifecycle/active Indicates that an issue or PR is actively being worked on by a contributor.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants