Uploaded image for project: 'OpenShift GitOps'
  1. OpenShift GitOps
  2. GITOPS-6248

Stuck Applicationset progressive sync

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • 1.17.0
    • None
    • ArgoCD
    • 8
    • False
    • Hide

      None

      Show
      None
    • False
    • GitOps Tangerine Sprint 14

      A progressive rollout enabled ApplicationSet sometimes get's stuck between rollout steps.

      The applicationset conditions seem to continuously flip between the following, seems like the controller does not append these but keeps overwriting itself:

      ...
        - lastTransitionTime: '2023-01-29T22:35:24Z'
          message: Successfully generated parameters for all Applications
          reason: ParametersGenerated
          status: 'True'
          type: ParametersGenerated
      ...
      ...
        - lastTransitionTime: '2023-01-29T22:34:44Z'
          message: ApplicationSet Rollout Rollout started
          reason: ErrorOccurred
          status: 'False'
          type: ParametersGenerated
      ...
      

      It seems to be caused by the controller calling r.setApplicationSetStatusCondition here with the paramtersGenerated argument set to false and then the controller within the same reconcile calls the function again here (maybe) with the parametersGenerated set to true which overwrites the progressive condition.

      To Reproduce

      Apply this applicationset.yaml. If the applicationset progressive sync works, try deleting the applicationset and re-applying it a few times.

      Expected behavior

      All applications rollout successfully.

      Upstream Reference

      https://github.com/argoproj/argo-cd/issues/12202

              ogondza@redhat.com Oliver Gondza
              rh-ee-anjoseph Anand Francis Joseph
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: