Skip to content

MCC taking a while to create MachineConfigs #203

Closed

Description

@jlebon

Split out from #199 (comment):

It took quite a while for the MCC to create the MachineConfigs:

$ kubectl get machineconfigs
No resources found.

A few minutes later:

$ kubectl get machineconfigs
NAME        AGE
00-master   1m
00-worker   1m

I'm sure 7f7366afead827ab5aa47ce67d5903c9 will show up if I wait a bit longer.

The MCC logs show the following:

I1129 23:24:23.120333       1 start.go:44] Version: 3.11.0-278-g628ad5d1-dirty
I1129 23:24:23.319527       1 leaderelection.go:185] attempting to acquire leader lease  openshift-machine-config-operator/machine-config-controller...
E1129 23:26:19.915022       1 event.go:259] Could not construct reference to: '&v1.ConfigMap{TypeMeta:v1.TypeMeta{Kind:"", APIVersion:""}, ObjectMeta:v1.ObjectMeta{Name:"machine-config-controller", GenerateName:"", Namespace:"openshift-machine-config-operator", SelfLink:"/api/v1/namespaces/openshift-machine-config-operator/configmaps/machine-config-controller", UID:"913656b5-f42d-11e8-9834-12202f72768c", ResourceVersion:"7816", Generation:0, CreationTimestamp:v1.Time{Time:time.Time{wall:0x0, ext:63679130518, loc:(*time.Location)(0x1c60aa0)}}, DeletionTimestamp:(*v1.Time)(nil), DeletionGracePeriodSeconds:(*int64)(nil), Labels:map[string]string(nil), Annotations:map[string]string{"control-plane.alpha.kubernetes.io/leader":"{\"holderIdentity\":\"machine-config-controller-5f644d794f-l55l5_e7aa2bc2-f42d-11e8-a035-0a580a800025\",\"leaseDurationSeconds\":90,\"acquireTime\":\"2018-11-29T23:26:19Z\",\"renewTime\":\"2018-11-29T23:26:19Z\",\"leaderTransitions\":1}"}, OwnerReferences:[]v1.OwnerReference(nil), Initializers:(*v1.Initializers)(nil), Finalizers:[]string(nil), ClusterName:""}, Data:map[string]string(nil), BinaryData:map[string][]uint8(nil)}'
due to: 'no kind is registered for the type v1.ConfigMap'. Will not report event: 'Normal' 'LeaderElection' 'machine-config-controller-5f644d794f-l55l5_e7aa2bc2-f42d-11e8-a035-0a580a800025 became leader'
I1129 23:26:19.922331       1 leaderelection.go:194] successfully acquired lease openshift-machine-config-operator/machine-config-controller
I1129 23:26:20.128953       1 template_controller.go:111] Starting MachineConfigController-TemplateController
I1129 23:26:20.221709       1 render_controller.go:103] Starting MachineConfigController-RenderController
I1129 23:26:20.323361       1 node_controller.go:117] Starting MachineConfigController-NodeController
I1129 23:26:21.319588       1 render.go:91] ignoring non-directory path ".gitkeep"
E1129 23:29:05.801651       1 node_controller.go:345] Empty CurrentMachineConfig
E1129 23:29:05.804675       1 node_controller.go:345] Empty CurrentMachineConfig

Activity

  1. ashcrow commented on Nov 30, 2018

    @ashcrow
    Member

    /cc @abhinavdahiya @crawford

    Is it expected to take a few minutes to render machineconfigs? If so, do we need to take that into consideration and increase the wait time for retrieving them in the MCD?

  2. ashcrow commented on Nov 30, 2018

    @ashcrow
    Member

    This is an issue, though I don't think this is the issue that's causing the bulk of problems in #199.

  3. ashcrow commented on Dec 4, 2018

    @ashcrow
    Member

    MCD developers are still hitting timeout issues after upping the wait time to 5 minutes + retries. As part of @kikisdeliveryservice trying to get her SSH key work merged is going to try upping the timeout and retry to a bit above 20 minutes to see if that unblocks installation when MCC doesn't have content available.

  4. sjenning commented on Dec 4, 2018

    @sjenning
    Contributor

    I encountered this as well. 8m delay from user MachineConfig creation to MCC rendering the composite MachineConfig.

    $ oc get machineconfig
    NAME                               AGE
    00-master                          9m
    00-worker                          9m
    01-master-kubelet                  9m
    01-worker-kubelet                  9m
    8a1a7ae860d031798bf0891d5d0b4771   1m
    b1aa55302e97f6fe2a028fa268340d75   1m
    
  5. cgwalters commented on Dec 5, 2018

    @cgwalters
    Member

    I had all sorts of problems (including this one) but after starting to use openshift/installer#785 everything got a lot more reliable and faster. I had problems like oc commands timing out (which I think were the apiserver being OOMKilled or similar).

    The cluster I just installed has the machineconfigs created just fine, and neither my master nor worker are degraded.

    When we're having these discussions, let's all be clear about which platform we're installing on. I think everyone here is hacking using libvirt. If you are, please try out my PR!

  6. ashcrow commented on Dec 5, 2018

    @ashcrow
    Member

    Thanks for the info @cgwalters!

  7. jlebon commented on Dec 21, 2018

    @jlebon
    MemberAuthor

    Closing this one. Haven't seen it or heard anyone hit it since the 4G bump. (Please comment/reopen if that's not the case!)

  8. kikisdeliveryservice commented on Dec 21, 2018

    @kikisdeliveryservice
    Contributor

    FWIW, I haven't run into this since I switched over to AWS. :)

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions