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

CPO crash if HO is not upgraded

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.14.0
    • 4.14
    • HyperShift
    • No
    • Hypershift Sprint 237, Hypershift Sprint 238, Hypershift Sprint 239, Hypershift Sprint 240
    • 4
    • Proposed
    • False
    • Hide

      None

      Show
      None

      https://github.com/openshift/hypershift/pull/2437 created a binding between HO and CPO as a CPO that contains this PR crashes when deployed by an HO that does not.

      The reason appears to be related to the absence of the OPENSHIFT_IMG_OVERRIDES envvar on the CPO deployment.

      {"level":"info","ts":"2023-06-06T16:36:21Z","logger":"setup","msg":"Using CPO image","image":"registry.ci.openshift.org/ocp/4.14-2023-06-06-102645@sha256:2d81c28856f5c0a73e55e7cb6fbc208c738fb3ca7c200cc7eb46efb40c8e10d2"}
      panic: runtime error: index out of range [1] with length 1
      
      goroutine 1 [running]:
      github.com/openshift/hypershift/support/util.ConvertImageRegistryOverrideStringToMap({0x0, 0x0})
              /hypershift/support/util/util.go:237 +0x454
      main.NewStartCommand.func1(0xc000d80000, {0xc000a71180, 0x0, 0x8})
              /hypershift/control-plane-operator/main.go:345 +0x2225
      
            containers:
            - args:
              - run
              - --namespace
              - $(MY_NAMESPACE)
              - --deployment-name
              - control-plane-operator
              - --metrics-addr
              - 0.0.0.0:8080
              - --enable-ci-debug-output=false
              - --registry-overrides==
              command:
              - /usr/bin/control-plane-operator
      

              rh-ee-brcox Bryan Cox
              sjenning Seth Jennings
              Jie Zhao Jie Zhao
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: