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

image-registry-private-configuration-user does not take precedence when image-registry-private-configuration exists too

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.12
    • Image Registry
    • Low
    • No
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      If image-registry-private-configuration secret already exists in openshift-image-registry namespace, creating image-registry-private-configuration-user secret does not take precedence to supply storage account to registry.

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

      4.13.0-0.nightly-2024-04-22-142044 

      How reproducible:

      always

      Steps to Reproduce:

          1.Create image-registry-private-configuration-user secret with incorrect account info
          2.Check registry pod
          3.Update image-registry-private-configuration-user secret with correct account info, then update image-registry-private-configuration secret to the invalid account
          4. Check registry pod

      Actual results:

          2.image registry pods are still running, even they are recreated by deleted
          4. registry pods go to crash with account issues.

      Expected results:

          image-registry-private-configuration-user should take precedence.

      Additional info:

      In an cluster which image registry is not installed in day0, user configures registry with customer object storage, image-registry-private-configuration-user is created firstly, then image-registry-private-configuration secret will be created by operator with same account with image-registry-private-configuration-user secret.
      But if image registry is installed in day0, image-registry-private-configuration secret created earlier than image-registry-private-configuration-user secret, image-registry-private-configuration will not be updated by creating image-registry-private-configuration-user secret.

            fmissi Flavian Missi
            rh-ee-xiuwang XiuJuan Wang
            xiujuan wang xiujuan wang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: