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

HCP: imageRegistryOverrides information are extracted only once on HyperShift operator initialization and never refreshed

XMLWordPrintable

    • Critical
    • No
    • Hypershift Sprint 254
    • 1
    • Rejected
    • False
    • Hide

      None

      Show
      None
    • Hide
      * Previously, the information from `imageRegistryOverrides` was only extracted once on the HyperShift Operator initialization and did not refresh. With this release, the Hypershift Operator retrieves the new `ImageContentSourcePolicy` files from the management cluster and adds them to the Hypershift Operator and Control Plane Operator in every reconciliation loop. (link:https://issues.redhat.com/browse/OCPBUGS-33713[*OCPBUGS-33713*])
      Show
      * Previously, the information from `imageRegistryOverrides` was only extracted once on the HyperShift Operator initialization and did not refresh. With this release, the Hypershift Operator retrieves the new `ImageContentSourcePolicy` files from the management cluster and adds them to the Hypershift Operator and Control Plane Operator in every reconciliation loop. (link: https://issues.redhat.com/browse/OCPBUGS-33713 [* OCPBUGS-33713 *])
    • Bug Fix
    • Done

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

      Description of problem:

      HO uses the ICSP/IDMS from mgmt cluster to extract the OCP release metadata to be used in the HostedCluster.
      
      But they are extracted only once in main.go:
      https://github.com/jparrill/hypershift/blob/9bf1403ae09c0f262ebfe006267e3b442cc70149/hypershift-operator/main.go#L287-L293
      before starting the HC and NP controllers but they are never refreshed anymore when ICSP/IDMS changes on the management cluster neither when a new HostedCluster is created.
      
          

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

          4.14 4.15 4.16

      How reproducible:

      100%
      
      
          

      Steps to Reproduce:

          1. ensure that HO is already running
          2. create an ICSP or a IMDS on the management cluster
          3. try to create an hosted-cluster
          

      Actual results:

      the imageRegistryOverrides setting for the new hosted-cluster ignores the ICSP/IMDS created when the HO was already running.
      Killing HO operator pod and wait for it to restart will bring to a different result.
      
          

      Expected results:

      HO is consistently consuming  ICSP/IMDS info at runtime without the need to be restarted
      
          

      Additional info:

          It affects disconnected deployments

              jparrill@redhat.com Juan Manuel Parrilla Madrid
              openshift-crt-jira-prow OpenShift Prow Bot
              He Liu He Liu
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: