Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-49959

Panic in the MCC when using OCL v1 GA

XMLWordPrintable

    • Critical
    • None
    • 2
    • MCO Sprint 266, MCO Sprint 267
    • 2
    • False
    • Hide

      None

      Show
      None
    • Release Note Not Required
    • In Progress

      Description of problem:

      MCC pod reports a panic when we install a cluster using the PR that makes OCL v1 GA.
      
      The panic doesn't seem related to OCL it self, but with the ManagedBootImages functionality. Nevertheless, we only have been able to reproduce it when we use the mentioned PR to build the cluster.
          

      Version-Release number of selected component (if applicable):

      We only have been able to reproduce the issue while using this PR to create the cluster
      https://github.com/openshift/api/pull/2192
      
      
          

      How reproducible:

      2 out of 2. Not sure if always.
          

      Steps to Reproduce:

          1. Use https://github.com/openshift/api/pull/2192 to create payload image
          2. Install the cluster using the image generated in step 1
          
          

      Actual results:

      MCC reports a panic in its 'previous' logs
      
      $ oc logs -p machine-config-controller-5b4b8d7d94-bmhdh
      ......
      I0206 09:55:53.678676       1 kubelet_config_controller.go:222] Re-syncing all kubelet config controller generated MachineConfigs due to apiServer cluster change
      E0206 09:55:53.678746       1 template_controller.go:245] "Unhandled Error" err="couldn't get ControllerConfig on dependency callback &%!w(errors.StatusError=errors.StatusError{ErrStatus:v1.Status{TypeMeta:v1.TypeMeta{Kind:\"\", APIVersion:\"\"}, ListMeta:v1.ListMeta{SelfLink:\"\", ResourceVersion:\"\", Continue:\"\", RemainingItemCount:(*int64)(nil)}, Status:\"Failure\", Message:\"controllerconfig.machineconfiguration.openshift.io \\\"machine-config-controller\\\" not found\", Reason:\"NotFound\", Details:(*v1.StatusDetails)(0xc0009a0de0), Code:404}})"
      I0206 09:55:53.679532       1 reflector.go:368] Caches populated for *v1.ClusterVersion from github.com/openshift/client-go/config/informers/externalversions/factory.go:125
      I0206 09:55:53.680703       1 template_controller.go:198] Re-syncing ControllerConfig due to apiServer cluster change
      I0206 09:55:53.680747       1 reflector.go:368] Caches populated for *v1.ConfigMap from k8s.io/client-go/informers/factory.go:160
      I0206 09:55:53.686268       1 machine_set_boot_image_controller.go:221] configMap coreos-bootimages added, reconciling enrolled machine resources
      panic: runtime error: invalid memory address or nil pointer dereference
      [signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x3a87c1a]
      
      goroutine 372 [running]:
      github.com/openshift/machine-config-operator/pkg/controller/machine-set-boot-image.(*Controller).syncMAPIMachineSets(0xc000dc8900, {0x43aeec5, 0x17})
      	/go/src/github.com/openshift/machine-config-operator/pkg/controller/machine-set-boot-image/machine_set_boot_image_controller.go:329 +0xba
      github.com/openshift/machine-config-operator/pkg/controller/machine-set-boot-image.(*Controller).addConfigMap.func1()
      	/go/src/github.com/openshift/machine-config-operator/pkg/controller/machine-set-boot-image/machine_set_boot_image_controller.go:225 +0x25
      created by github.com/openshift/machine-config-operator/pkg/controller/machine-set-boot-image.(*Controller).addConfigMap in goroutine 347
      	/go/src/github.com/openshift/machine-config-operator/pkg/controller/machine-set-boot-image/machine_set_boot_image_controller.go:225 +0x145
      
      
          

      Expected results:

      No panic should be reported
          

      Additional info:

      
          

              djoshy David Joshy
              sregidor@redhat.com Sergio Regidor de la Rosa
              Sergio Regidor de la Rosa Sergio Regidor de la Rosa
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: