Uploaded image for project: 'MicroShift'
  1. MicroShift
  2. USHIFT-5217

microshift fails to start when provided with emtpy ovn.yaml

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • openshift-4.19
    • openshift-4.18, openshift-4.19
    • None
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • 3
    • None
    • None
    • uShift Sprint 265
    • None
    • None
    • None

      Description of problem:

      if for some reason ovn.yaml is empty microshfift wont start

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

      4.18

      How reproducible:

      Always

      Steps to Reproduce:

      1.create empty file with  `touch /etc/microshift/ovn.yaml`
      2.restart microshift
      
      

      Actual results:

      micrsoshift fails to start with a error in the logs:
      
      Dec 17 10:46:12 microshift-local microshift[6178]: infrastructure-services-manager I1217 10:46:12.805683    6178 core.go:138] Applying corev1 api components/openshift-dns/dns/namespace.yaml
      Dec 17 10:46:12 microshift-local microshift[6178]: infrastructure-services-manager I1217 10:46:12.806757    6178 core.go:138] Applying corev1 api components/openshift-dns/dns/service.yaml
      Dec 17 10:46:12 microshift-local microshift[6178]: infrastructure-services-manager I1217 10:46:12.808065    6178 rbac.go:192] Handling rbac components/openshift-dns/dns/cluster-role.yaml
      Dec 17 10:46:12 microshift-local microshift[6178]: infrastructure-services-manager I1217 10:46:12.809043    6178 rbac.go:192] Handling rbac components/openshift-dns/dns/cluster-role-binding.yaml
      Dec 17 10:46:12 microshift-local microshift[6178]: infrastructure-services-manager I1217 10:46:12.810125    6178 core.go:138] Applying corev1 api components/openshift-dns/dns/service-account.yaml
      Dec 17 10:46:12 microshift-local microshift[6178]: infrastructure-services-manager I1217 10:46:12.810858    6178 core.go:138] Applying corev1 api components/openshift-dns/node-resolver/service-account.yaml
      Dec 17 10:46:12 microshift-local microshift[6178]: infrastructure-services-manager I1217 10:46:12.811612    6178 core.go:138] Applying corev1 api components/openshift-dns/dns/configmap.yaml
      Dec 17 10:46:12 microshift-local microshift[6178]: infrastructure-services-manager I1217 10:46:12.812437    6178 apps.go:88] Applying apps api components/openshift-dns/dns/daemonset.yaml
      Dec 17 10:46:12 microshift-local microshift[6178]: infrastructure-services-manager I1217 10:46:12.813811    6178 apps.go:242] DaemonSet "openshift-dns/dns-default" changes: {"spec":{"template":{"spec":{"serviceAccount":null}}}}
      Dec 17 10:46:12 microshift-local microshift[6178]: kube-apiserver I1217 10:46:12.815448    6178 controller.go:615] quota admission added evaluator for: daemonsets.apps
      Dec 17 10:46:12 microshift-local microshift[6178]: infrastructure-services-manager I1217 10:46:12.816137    6178 recorder_logging.go:44] &Event{ObjectMeta:{dummy.1811f10dbca4438d  dummy    0 0001-01-01 00:00:00 +0000 UTC <nil> <nil> map[] map[] [] [] []},InvolvedObject:ObjectReference{Kind:Pod,Namespace:dummy,Name:dummy,UID:,APIVersion:v1,ResourceVersion:,FieldPath:,},Reason:Dae>
      Dec 17 10:46:12 microshift-local microshift[6178]: infrastructure-services-manager I1217 10:46:12.816149    6178 apps.go:88] Applying apps api components/openshift-dns/node-resolver/daemonset.yaml
      Dec 17 10:46:12 microshift-local microshift[6178]: infrastructure-services-manager I1217 10:46:12.818050    6178 apps.go:242] DaemonSet "openshift-dns/node-resolver" changes: {}
      Dec 17 10:46:12 microshift-local microshift[6178]: infrastructure-services-manager I1217 10:46:12.821976    6178 recorder_logging.go:44] &Event{ObjectMeta:{dummy.1811f10dbcfd1c90  dummy    0 0001-01-01 00:00:00 +0000 UTC <nil> <nil> map[] map[] [] [] []},InvolvedObject:ObjectReference{Kind:Pod,Namespace:dummy,Name:dummy,UID:,APIVersion:v1,ResourceVersion:,FieldPath:,},Reason:Dae>
      Dec 17 10:46:12 microshift-local microshift[6178]: infrastructure-services-manager E1217 10:46:12.822160    6178 manager.go:113] infrastructure-services-manager panicked: runtime error: invalid memory address or nil pointer dereference
      Dec 17 10:46:12 microshift-local microshift[6178]: infrastructure-services-manager E1217 10:46:12.822203    6178 manager.go:114] Stopping MicroShift
      Dec 17 10:46:12 microshift-local microshift[6178]: infrastructure-services-manager I1217 10:46:12.822194    6178 manager.go:132] "SERVICE STOPPED" service="infrastructure-services-manager" since-start="31.129928247s"
      
      

      Expected results:

       

      Additional info:

      SOS report https://drive.google.com/file/d/17YMi7jupwGhU02LxJJFyePjjlzuEGU6e/view?usp=sharing

              eslutsky Evgeny Slutsky
              eslutsky Evgeny Slutsky
              None
              None
              Douglas Hensel Douglas Hensel
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: