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.13, 4.12, 4.14, 4.15, 4.16
    • Image Registry
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • Low
    • No
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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
              None
              None
              XiuJuan Wang XiuJuan Wang
              None
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: