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

Wrong Additional Trusted Bundle Name Reconciled to the CPO

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Undefined Undefined
    • None
    • 4.14.z, 4.15.0
    • HyperShift
    • No
    • Hypershift Sprint 243
    • 1
    • False
    • Hide

      None

      Show
      None
    • Hide
      * Previously, after creating a hosted cluster, to create a config map, if you used a name other than `user-ca-bundle`, the deployment if the Control Plane Operator (CPO) failed. With this update, you can use unique names to create a config map. The CPO is deployed successfully. (link:https://issues.redhat.com/browse/OCPBUGS-19419[*OCPBUGS-19419*])

      Show
      * Previously, after creating a hosted cluster, to create a config map, if you used a name other than `user-ca-bundle`, the deployment if the Control Plane Operator (CPO) failed. With this update, you can use unique names to create a config map. The CPO is deployed successfully. (link: https://issues.redhat.com/browse/OCPBUGS-19419 [* OCPBUGS-19419 *])
    • Bug Fix
    • Done

      Description of problem:

      The wrong additional trusted bundle name is reconciled to the CPO deployment in the HCC - https://github.com/openshift/hypershift/blob/369e0f18212b658e0bd6ebe3b9f6f387008ec5bd/hypershift-operator/controllers/hostedcluster/hostedcluster_controller.go#L1291. A user most likely would never run into this using the CLI to create the cluster because it defaults the right name - user-ca-bundle, https://github.com/openshift/hypershift/blob/5ec788802880d550f2164a2210cf90e8d0f32225/api/fixtures/example.go#L501 

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

       

      How reproducible:

      Every time

      Steps to Reproduce:

      1. Create a ConfigMap with a name other than user-ca-bundle for the value to go into the additional-trust-bundle field on a HC yaml spec
      2. Deploy the HC yaml spec
      3. Observe the CPO fail to deploy
      

      Actual results:

      CPO fails to deploy

      Expected results:

      CPO should deploy

      Additional info:

      On https://github.com/openshift/hypershift/blob/369e0f18212b658e0bd6ebe3b9f6f387008ec5bd/hypershift-operator/controllers/hostedcluster/hostedcluster_controller.go#L1291, we should pass the name we reconciled here (i.e. user-ca-bundle) https://github.com/openshift/hypershift/blob/248df10f8606696cd284521efccc31471445aa63/hypershift-operator/controllers/hostedcluster/hostedcluster_controller.go#L1755 

            pstefans@redhat.com Patryk Stefanski
            rh-ee-brcox Bryan Cox
            Jie Zhao Jie Zhao
            Cesar Wong
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: