Skip to content

[libvirt] Failed to get console route for v0.10.0 tag and ImagePullBackoff for clusterapi-manager-controllers #1078

Closed

Description

@praveenkumar

Version

$ openshift-install version
bin/openshift-install v0.10.0

Platform (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-0

Anything 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

  1. johwes commented on Jan 16, 2019

    @johwes

    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

  2. praveenkumar commented on Jan 17, 2019

    @praveenkumar
    ContributorAuthor

    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?

  3. johwes commented on Jan 17, 2019

    @johwes

    I also rebuilt from 0.9.1 tag and got it working with that.

  4. crawford commented on Jan 17, 2019

    @crawford
    Contributor

    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.

  5. praveenkumar commented on Jan 18, 2019

    @praveenkumar
    ContributorAuthor

    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.

    @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?

  6. bbrowning commented on Jan 23, 2019

    @bbrowning

    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.

  7. e-minguez commented on Jan 23, 2019

    @e-minguez
    Contributor

    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:

    5m          5m           2         clusterapi-manager-controllers-db4fbd5fc-nhqnb.157c848781ca4d28   Pod          spec.containers{controller-manager}            Warning   Failed              kubelet, minwi-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
    
  8. wking commented on Jan 23, 2019

    @wking
    Member

    This is a release issue, the installer just pins the update payloads the release folks push to quay.io. It's being tracked here.

  9. smarterclayton commented on Jan 29, 2019

    @smarterclayton
    Contributor

    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.

  10. smarterclayton commented on Jan 29, 2019

    @smarterclayton
    Contributor

    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.

  11. smarterclayton commented on Jan 29, 2019

    @smarterclayton
    Contributor

    git clone openshift/installer, run hack/build-go.sh, and that's origin

  12. 21 remaining items

  13. wking commented on Mar 8, 2019

    @wking
    Member

    Are you using the latest version of the installer?

    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?

  14. praveenkumar commented on Mar 11, 2019

    @praveenkumar
    ContributorAuthor

    @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?)

    $ oc get events -n openshift-ingress
    LAST SEEN   TYPE      REASON              OBJECT                                 MESSAGE
    8m23s       Warning   FailedCreate        replicaset/router-default-76d66d6844   Error creating: pods "router-default-76d66d6844-" is forbidden: unable to validate against any security context constraint: [provider restricted: .spec.securityContext.hostNetwork: Invalid value: true: Host network is not allowed to be used spec.containers[0].securityContext.hostNetwork: Invalid value: true: Host network is not allowed to be used spec.containers[0].securityContext.containers[0].hostPort: Invalid value: 80: Host ports are not allowed to be used spec.containers[0].securityContext.containers[0].hostPort: Invalid value: 443: Host ports are not allowed to be used spec.containers[0].securityContext.containers[0].hostPort: Invalid value: 1936: Host ports are not allowed to be used]
    
  15. zeenix commented on Apr 29, 2019

    @zeenix
    Contributor

    I think this is likely a duplicate of #1007

  16. praveenkumar commented on Jun 24, 2019

    @praveenkumar
    ContributorAuthor

    Already fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions