Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Analysis Step Stuck After Inconclusive Result in Argo Rollouts #3015

Closed
pasha-codefresh opened this issue Sep 5, 2023 · 0 comments · Fixed by #3016
Closed

Analysis Step Stuck After Inconclusive Result in Argo Rollouts #3015

pasha-codefresh opened this issue Sep 5, 2023 · 0 comments · Fixed by #3016
Assignees
Labels
bug Something isn't working

Comments

@pasha-codefresh
Copy link
Member

pasha-codefresh commented Sep 5, 2023

I encountered an issue when using Argo Rollouts in the Argo Rollouts repository. The problem occurs when I create rollouts that include an analysis step with an inconclusive result, followed by a pause step. Subsequently, when I attempt to promote the rollout using the kubectl argo rollouts promote command, the analysis step becomes stuck, and the rollout does not proceed as expected.

Steps to Reproduce:

  1. Create a rollout YAML manifest that includes an analysis step with inconclusive results, followed by a pause step.
  2. Apply the rollout manifest to your Kubernetes cluster.
  3. Trigger the rollout using kubectl argo rollouts promote.

Expected Behavior:
The rollout should proceed as expected, with the analysis step functioning correctly and allowing further steps to execute after the analysis step.

Actual Behavior:
The analysis step becomes stuck, preventing the rollout from progressing further after the inconclusive analysis result.

Example Rollout YAML Manifest:

strategy:
  canary:
    steps:
      - setWeight: 20
      - analysis:
          templates:
          - templateName: star-w-template-3-inconclusive
      - pause: {duration: 50s}
      - pause: {duration: 40s}
      - pause: {duration: 40s}

Example AnalysisTemplate:

kind: AnalysisTemplate
apiVersion: argoproj.io/v1alpha1
metadata:
  name: star-w-template-3-inconclusive
spec:
  metrics:
  - name: starw-api-2
    count: 2
    interval: 5s
    initialDelay: 5s
    inconclusiveLimit: 1
    consecutiveErrorLimit: 3
    failureCondition: result == '170'
    successCondition: result == '175'
    failureLimit: 2
    provider:
      web:
        url: https://swapi.dev/api/people/1
        timeoutSeconds: 20 # defaults to 10 seconds
        jsonPath: "{$.height}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant