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

[backport-4.13] CPO crash if HO is not upgraded

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • 4.13.z, 4.14
    • HyperShift
    • Hypershift Sprint 237, Hypershift Sprint 238, Hypershift Sprint 239, Hypershift Sprint 240
    • 4
    • No
    • Rejected
    • False
    • Hide

      None

      Show
      None

    Description

      This is a clone of issue OCPBUGS-14633. The following is the description of the original issue:

      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
      

      Attachments

        Issue Links

          Activity

            People

              rh-ee-brcox Bryan Cox
              openshift-crt-jira-prow OpenShift Prow Bot
              Jie Zhao Jie Zhao
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: