Open httin opened 1 year ago
This issue is stale because it has been open 60 days with no activity.
This is still happening to me
We are affected by this too.
Using the standard istio 500 error rate metric as post-analysis, let it fail, get into aborted state.
retry
the rollout using the plugin, it spins up new revision pods, but fails immediately based on previous post-analysis run results, shouldn't it try checks again as part of retry
?
Checklist:
Describe the bug Once AnalysisRuns got failed, the release is always aborted immediately after retrying. It is reproducible. If I delete the AnalysisRuns object, retrying works as expected.
Rollout Spec
```yaml apiVersion: argoproj.io/v1alpha1 kind: Rollout metadata: name: myservice-rollout spec: progressDeadlineSeconds: 2700 revisionHistoryLimit: 3 strategy: blueGreen: activeService: myservice-service autoPromotionEnabled: true prePromotionAnalysis: args: - name: latest-hash valueFrom: podTemplateHashValue: Latest templates: - templateName: myservice-functional-test - templateName: myservice-load-test - templateName: myservice-metrics previewService: myservice-service-green scaleDownDelayRevisionLimit: 1 scaleDownDelaySeconds: 300 workloadRef: apiVersion: apps/v1 kind: Deployment name: myservice-deploy ```To Reproduce
Expected behavior
Screenshots
Version v1.5.0
Logs
Log for every retrying attempt
``` [argo-rollouts-bfff65d56-bk97r] time="2023-06-07T06:57:51Z" level=info msg="Start processing" resource=bluegreen/myservice-rollout [argo-rollouts-bfff65d56-bk97r] time="2023-06-07T06:57:51Z" level=info msg="Started syncing rollout" generation=3 namespace=bluegreen resourceVersion=937675920 rollout=myservice-rollout [argo-rollouts-bfff65d56-bk97r] time="2023-06-07T06:57:51Z" level=info msg="Trigger on-analysis-run-running result: [{[0].2jmj7l5rSw0yVb_vlWAYkK_YBwk [analysis-run-running] false}]" resource=bluegreen/myservice-rollout [argo-rollouts-bfff65d56-bk97r] time="2023-06-07T06:57:51Z" level=info msg="Trigger on-rollout-step-completed result: [{[0].2jmj7l5rSw0yVb_vlWAYkK_YBwk [rollout-step-completed] false}]" resource=bluegreen/myservice-rollout [argo-rollouts-bfff65d56-bk97r] time="2023-06-07T06:57:51Z" level=info msg="Trigger on-rollout-aborted result: [{[0].2jmj7l5rSw0yVb_vlWAYkK_YBwk [rollout-aborted] false}]" resource=bluegreen/myservice-rollout [argo-rollouts-bfff65d56-bk97r] time="2023-06-07T06:57:51Z" level=info msg="Trigger on-rollout-completed result: [{[0].2jmj7l5rSw0yVb_vlWAYkK_YBwk [rollout-completed] false}]" resource=bluegreen/myservice-rollout [argo-rollouts-bfff65d56-bk97r] time="2023-06-07T06:57:51Z" level=info msg="Trigger on-rollout-updated result: [{[0].2jmj7l5rSw0yVb_vlWAYkK_YBwk [rollout-updated] false}]" resource=bluegreen/myservice-rollout [argo-rollouts-bfff65d56-bk97r] time="2023-06-07T06:57:51Z" level=info msg="Trigger on-scaling-replica-set result: [{[0].2jmj7l5rSw0yVb_vlWAYkK_YBwk [scaling-replicaset] false}]" resource=bluegreen/myservice-rollout [argo-rollouts-bfff65d56-bk97r] time="2023-06-07T06:57:51Z" level=info msg="Trigger on-analysis-run-error result: [{[0].2jmj7l5rSw0yVb_vlWAYkK_YBwk [analysis-run-error] false}]" resource=bluegreen/myservice-rollout [argo-rollouts-bfff65d56-bk97r] time="2023-06-07T06:57:51Z" level=info msg="Trigger on-analysis-run-failed result: [{[0].2jmj7l5rSw0yVb_vlWAYkK_YBwk [analysis-run-failed] false}]" resource=bluegreen/myservice-rollout [argo-rollouts-bfff65d56-bk97r] time="2023-06-07T06:57:51Z" level=info msg="Processing completed" resource=bluegreen/myservice-rollout [argo-rollouts-bfff65d56-bk97r] time="2023-06-07T06:57:51Z" level=info msg="Patched conditions: {\"status\":{\"conditions\":[{\"lastTransitionTime\":\"2023-06-07T03:41:56Z\",\"lastUpdateTime\":\"2023-06-07T03:41:56Z\",\"message\":\"Rollout has minimum availability\",\"reason\":\"AvailableReason\",\"status\":\"True\",\"type\":\"Available\"},{\"lastTransitionTime\":\"2023-06-07T04:39:20Z\",\"lastUpdateTime\":\"2023-06-07T04:39:20Z\",\"message\":\"Rollout is not healthy\",\"reason\":\"RolloutHealthy\",\"status\":\"False\",\"type\":\"Healthy\"},{\"lastTransitionTime\":\"2023-06-07T04:39:20Z\",\"lastUpdateTime\":\"2023-06-07T04:39:20Z\",\"message\":\"RolloutCompleted\",\"reason\":\"RolloutCompleted\",\"status\":\"False\",\"type\":\"Completed\"},{\"lastTransitionTime\":\"2023-06-07T06:57:51Z\",\"lastUpdateTime\":\"2023-06-07T06:57:51Z\",\"message\":\"Retrying Rollout after abort\",\"reason\":\"RolloutRetry\",\"status\":\"Unknown\",\"type\":\"Progressing\"}],\"message\":\"more replicas need to be updated\",\"phase\":\"Progressing\"}}" generation=3 namespace=bluegreen resourceVersion=937675920 rollout=myservice-rollout [argo-rollouts-bfff65d56-bk97r] time="2023-06-07T06:57:51Z" level=info msg="Start processing" resource=bluegreen/myservice-rollout [argo-rollouts-bfff65d56-bk97r] time="2023-06-07T06:57:51Z" level=info msg="Trigger on-rollout-step-completed result: [{[0].2jmj7l5rSw0yVb_vlWAYkK_YBwk [rollout-step-completed] false}]" resource=bluegreen/myservice-rollout [argo-rollouts-bfff65d56-bk97r] time="2023-06-07T06:57:51Z" level=info msg="Trigger on-rollout-aborted result: [{[0].2jmj7l5rSw0yVb_vlWAYkK_YBwk [rollout-aborted] false}]" resource=bluegreen/myservice-rollout [argo-rollouts-bfff65d56-bk97r] time="2023-06-07T06:57:51Z" level=info msg="Trigger on-rollout-completed result: [{[0].2jmj7l5rSw0yVb_vlWAYkK_YBwk [rollout-completed] false}]" resource=bluegreen/myservice-rollout [argo-rollouts-bfff65d56-bk97r] time="2023-06-07T06:57:51Z" level=info msg="Trigger on-rollout-updated result: [{[0].2jmj7l5rSw0yVb_vlWAYkK_YBwk [rollout-updated] false}]" resource=bluegreen/myservice-rollout [argo-rollouts-bfff65d56-bk97r] time="2023-06-07T06:57:51Z" level=info msg="Trigger on-scaling-replica-set result: [{[0].2jmj7l5rSw0yVb_vlWAYkK_YBwk [scaling-replicaset] false}]" resource=bluegreen/myservice-rollout [argo-rollouts-bfff65d56-bk97r] time="2023-06-07T06:57:51Z" level=info msg="Trigger on-analysis-run-error result: [{[0].2jmj7l5rSw0yVb_vlWAYkK_YBwk [analysis-run-error] false}]" resource=bluegreen/myservice-rollout [argo-rollouts-bfff65d56-bk97r] time="2023-06-07T06:57:51Z" level=info msg="Trigger on-analysis-run-failed result: [{[0].2jmj7l5rSw0yVb_vlWAYkK_YBwk [analysis-run-failed] false}]" resource=bluegreen/myservice-rollout [argo-rollouts-bfff65d56-bk97r] time="2023-06-07T06:57:51Z" level=info msg="Trigger on-analysis-run-running result: [{[0].2jmj7l5rSw0yVb_vlWAYkK_YBwk [analysis-run-running] false}]" resource=bluegreen/myservice-rollout [argo-rollouts-bfff65d56-bk97r] time="2023-06-07T06:57:51Z" level=info msg="Processing completed" resource=bluegreen/myservice-rollout [argo-rollouts-bfff65d56-bk97r] time="2023-06-07T06:57:51Z" level=info msg="Removed 'scale-down-deadline' annotation from RS 'myservice-rollout-66dc89875b'" namespace=bluegreen rollout=myservice-rollout [argo-rollouts-bfff65d56-bk97r] time="2023-06-07T06:57:51Z" level=info msg="Reconciling stable ReplicaSet 'myservice-rollout-788bf6489b'" namespace=bluegreen rollout=myservice-rollout [argo-rollouts-bfff65d56-bk97r] time="2023-06-07T06:57:51Z" level=info msg="Enqueueing parent of bluegreen/myservice-rollout-66dc89875b: Rollout bluegreen/myservice-rollout" [argo-rollouts-bfff65d56-bk97r] time="2023-06-07T06:57:51Z" level=error msg="roCtx.reconcile err Operation cannot be fulfilled on replicasets.apps \"myservice-rollout-66dc89875b\": the object has been modified; please apply your changes to the latest version and try again" generation=3 namespace=bluegreen resourceVersion=937675920 rollout=myservice-rollout [argo-rollouts-bfff65d56-bk97r] time="2023-06-07T06:57:51Z" level=info msg="Reconciliation completed" generation=3 namespace=bluegreen resourceVersion=937675920 rollout=myservice-rollout time_ms=31.299924 [argo-rollouts-bfff65d56-bk97r] time="2023-06-07T06:57:51Z" level=error msg="rollout syncHandler error: Operation cannot be fulfilled on replicasets.apps \"myservice-rollout-66dc89875b\": the object has been modified; please apply your changes to the latest version and try again" namespace=bluegreen rollout=myservice-rollout [argo-rollouts-bfff65d56-bk97r] time="2023-06-07T06:57:51Z" level=info msg="rollout syncHandler queue retries: 4 : key \"bluegreen/myservice-rollout\"" namespace=bluegreen rollout=myservice-rollout [argo-rollouts-bfff65d56-bk97r] time="2023-06-07T06:57:51Z" level=error msg="Operation cannot be fulfilled on replicasets.apps \"myservice-rollout-66dc89875b\": the object has been modified; please apply your changes to the latest version and try again\n" error="Message from the maintainers:
Impacted by this bug? Give it a 👍. We prioritize the issues with the most 👍.