Repository navigation
Closed
Labels
Description
Version
$ openshift-install version
bin/openshift-install v0.10.0Platform (aws|libvirt|openstack):
libvirt
What happened?
Installer is failed to get the console route and exit after 10 mins due to context deadline exceeded.
What you expected to happen?
Installer should able to create the cluster without any issue.
How to reproduce it (as minimally and precisely as possible)?
$ env TF_VAR_libvirt_master_memory=8192 TF_VAR_libvirt_master_vcpu=4 ./bin/openshift-install create cluster --dir=test --log-level debug
[...]
INFO Waiting up to 10m0s for the openshift-console route to be created...
DEBUG Still waiting for the console route...
DEBUG Still waiting for the console route...
[...]
DEBUG Still waiting for the console route...
FATAL waiting for openshift-console URL: context deadline exceeded
$ export KUBECONFIG=/home/prkumar/work/github/practice/go/src/github.com/openshift/installer/test/auth/kubeconfig
$ kubectl get pods --all-namespaces
NAMESPACE NAME READY STATUS RESTARTS AGE
kube-system etcd-member-crcont-master-0 1/1 Running 0 17m
openshift-apiserver-operator openshift-apiserver-operator-7fc9bc59d9-wpbw6 1/1 Running 0 16m
openshift-apiserver apiserver-j6g59 1/1 Running 2 10m
openshift-cluster-api cluster-autoscaler-operator-7f74bdf7f9-26tsp 1/1 Running 0 12m
openshift-cluster-api clusterapi-manager-controllers-db4fbd5fc-f7x6x 2/4 ImagePullBackOff 0 11m
$ kubectl logs clusterapi-manager-controllers-db4fbd5fc-f7x6x -n openshift-cluster-api -c nodelink-controller | less
[...]
W0116 08:26:01.170879 1 main.go:379] no matching machine found for node
I0116 08:26:01.170935 1 main.go:312] finished syncing node, duration: 207.751µs
I0116 08:26:01.170988 1 main.go:296] Error syncing node crcont-master-0: no matching machine found for node: crcont-master-0
I0116 08:26:04.914170 1 main.go:147] updating node: crcont-master-0
I0116 08:26:04.914282 1 main.go:310] syncing node
I0116 08:26:04.914334 1 main.go:368] searching machine cache for IP match for node
W0116 08:26:04.914373 1 main.go:379] no matching machine found for node
I0116 08:26:04.914410 1 main.go:312] finished syncing node, duration: 129.151µs
I0116 08:26:04.914447 1 main.go:296] Error syncing node crcont-master-0: no matching machine found for node: crcont-master-0
$ kubectl logs clusterapi-manager-controllers-db4fbd5fc-f7x6x -n openshift-cluster-api -c machine-healthcheck
[...]
I0116 08:25:58.615279 1 machinehealthcheck_controller.go:73] Reconciling MachineHealthCheck triggered by /crcont-master-0
W0116 08:25:58.615409 1 machinehealthcheck_controller.go:92] No machine annotation for node crcont-master-0
I0116 08:26:08.629294 1 machinehealthcheck_controller.go:73] Reconciling MachineHealthCheck triggered by /crcont-master-0
W0116 08:26:08.629354 1 machinehealthcheck_controller.go:92] No machine annotation for node crcont-master-0
I0116 08:26:18.649707 1 machinehealthcheck_controller.go:73] Reconciling MachineHealthCheck triggered by /crcont-master-0
W0116 08:26:18.649756 1 machinehealthcheck_controller.go:92] No machine annotation for node crcont-master-0Anything else we need to know?
Looks like the issue with clusterapi-manager-controllers-db4fbd5fc-f7x6x pod since it is in ImagePullBackoff state and logs shows that it is not able to identify the master node.
References
- enter text here.
Activity
johwes commentedon Jan 16, 2019
I have the same issue, it fails to pull the image doing an "oc describe pod " shows the following.
Normal Scheduled 46m default-scheduler Successfully assigned openshift-cluster-api/clusterapi-manager-controllers-db4fbd5fc-bmlhw to ocp-master-0
Normal Pulled 46m kubelet, ocp-master-0 Container image "quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:3d1b7554af827639b86372f1d9c0fbdbe609c878381f40c433a1f788ec0fe5a7" already present on machine
Normal Started 46m kubelet, ocp-master-0 Started container
Normal Created 46m kubelet, ocp-master-0 Created container
Normal Pulled 46m kubelet, ocp-master-0 Container image "quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:3d1b7554af827639b86372f1d9c0fbdbe609c878381f40c433a1f788ec0fe5a7" already present on machine
Normal Started 46m kubelet, ocp-master-0 Started container
Normal Created 46m kubelet, ocp-master-0 Created container
Normal Pulling 46m (x2 over 46m) kubelet, ocp-master-0 pulling image "registry.svc.ci.openshift.org/ocp/4.0-art-latest-2019-01-15-010905@sha256:8b848ebe6ba72a678300a0fa9b7749bcef3b4230e355e1c789527e6d1c615225"
Warning Failed 46m (x4 over 46m) kubelet, ocp-master-0 Error: ImagePullBackOff
Normal BackOff 46m (x4 over 46m) kubelet, ocp-master-0 Back-off pulling image "registry.svc.ci.openshift.org/ocp/4.0-art-latest-2019-01-15-010905@sha256:8b848ebe6ba72a678300a0fa9b7749bcef3b4230e355e1c789527e6d1c615225"
Warning Failed 46m (x2 over 46m) kubelet, ocp-master-0 Error: ErrImagePull
Warning Failed 46m (x2 over 46m) kubelet, ocp-master-0 Failed to pull image "registry.svc.ci.openshift.org/ocp/4.0-art-latest-2019-01-15-010905@sha256:8b848ebe6ba72a678300a0fa9b7749bcef3b4230e355e1c789527e6d1c615225": rpc error: code = Unknown desc = Error reading manifest sha256:8b848ebe6ba72a678300a0fa9b7749bcef3b4230e355e1c789527e6d1c615225 in registry.svc.ci.openshift.org/ocp/4.0-art-latest-2019-01-15-010905: unauthorized: authentication required
Normal BackOff 36m (x39 over 46m) kubelet, ocp-master-0 Back-off pulling image "registry.svc.ci.openshift.org/ocp/4.0-art-latest-2019-01-15-010905@sha256:8b848ebe6ba72a678300a0fa9b7749bcef3b4230e355e1c789527e6d1c615225"
Warning Failed 1m (x188 over 46m) kubelet, ocp-master-0 Error: ImagePullBackOff
praveenkumar commentedon Jan 17, 2019
I tried today with master branch and didn't see this issue but then again with 0.10.0 tag it is occurring so might be something to do with the way we tag the payload for this tag?
johwes commentedon Jan 17, 2019
I also rebuilt from 0.9.1 tag and got it working with that.
crawford commentedon Jan 17, 2019
0.10.0 is a special release. It is the beta1 build, which means that it targets a different set of content than 0.9.1. I also noticed that the libvirt container isn't pushed to quay (unlike its AWS counterpart), so I think it was just missed in the release process.
praveenkumar commentedon Jan 18, 2019
@crawford thanks, that explain why it is happening with only
libvirt. Do we have any plan to push those missing libvirt containers to quay registry?bbrowning commentedon Jan 23, 2019
I just wanted to add that my team is hitting this issue as well and are stuck on 0.9.1 for now until we find a way to run 0.10.x locally with libvirt.
e-minguez commentedon Jan 23, 2019
Same issue with 0.10.1, console is not deployed because there are no workers available... because the clusterapi-manager-controllers is not up... because it is trying to pull the image from an internal registry which I cannot access:
wking commentedon Jan 23, 2019
This is a release issue, the installer just pins the update payloads the release folks push to quay.io. It's being tracked here.
smarterclayton commentedon Jan 29, 2019
You must have a pull secret to api.ci in order to access libvirt, because the installer team has chosen not to build libvirt for OCP.
smarterclayton commentedon Jan 29, 2019
If you're not in the openshift GitHub organization, you can't get one.
libvirt isn't supported in the official installer. You need to use the origin variant or not use libvirt.
smarterclayton commentedon Jan 29, 2019
git clone openshift/installer, run hack/build-go.sh, and that's origin
21 remaining items
wking commentedon Mar 8, 2019
I haven't run it on libvirt in a while, but if the router for some reason needs 2+ compute nodes now, we'd want to update the default and some validation. Or is the issue total compute memory constraints or similar, and not actually compute replica count?
praveenkumar commentedon Mar 11, 2019
@ssbano From which commit (component) it is required to have 2 worker to make it work in case of libvirt platform? If this is hard requirement then it would be problematic for us (Code Ready Container team), we are trying only single node cluster (with no worker).
I tested 0.14.0 tag with single worker and everything worked as expected. but today when I am trying out the master then getting following error (is this because of that limitation?)
zeenix commentedon Apr 29, 2019
I think this is likely a duplicate of #1007
praveenkumar commentedon Jun 24, 2019
Already fixed.