Uploaded image for project: 'Project Quay'
  1. Project Quay
  2. PROJQUAY-10828

Repository mirror retry feature does not work when incorrect credentials are configured

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False

      Description of problem:

      After configuring repository mirror with incorrect credentials,  mirror worker will try once then report a synchronization failure. It will not retry 3 times as designed. The "Retries Remaining" filed will show "2/3" finally.

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

      ------------------------------
      $ oc get $(oc get pod -l name=quay-operator-alm-owned -o name -n quay-enterprise) -o jsonpath='{.spec.containers[0].image}' -n quay-enterprise
      registry.redhat.io/quay/quay-operator-rhel9@sha256:c3b128ea1e37cadeba371aef55788a1cb787e03062e20ae9dac758a11ad77aca
      ------------------------------
      $ oc get $(oc get pod -l app=quay -o NAME -n quay-enterprise|head -n 1) -o jsonpath='{.spec.containers[0].image}' -n quay-enterprise
      registry.redhat.io/quay/quay-rhel9@sha256:ccc89e77ff43aea998d0e166b42fae8b2b8b6d507bb039b26c64d232f87f1ed5
      ------------------------------
      $ oc get quayregistry -o jsonpath='{.items[0].status.currentVersion}'  -n quay-enterprise
      3.17.0 

       

      Steps to reproduce:

      1 Configure a repository mirror policy, except for the external repository credential fields, all other fields remain correct.

      2. Click "Sync Now" button to trigger a repository mirror process

      3. Observe the operation of the retry function.

      Actual results:

      Mirror worker will try once then report a synchronization failure.It will not retry 3 times as designed. The "Retries Remaining" filed  will show "2/3".

      The final status of "Retries Remaining" in UI

      The whole repository mirror process logs

      Expected results

      Mirror worker should retry 3 times before reporting the final status "FAIL".
       

              hgovinda Harish Govindarajulu
              rhwhu Weihua Hu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: