A canary rollout aborts and the status shows Degraded. That is not a defect but the safeguard: the AnalysisRun measured the new version and found it bad. All requests go back to the stable version.
Symptom
k argo rollouts set image kasse -n team-blue kasse=argoproj/rollouts-demo:bad-red k argo rollouts get rollout kasse -n team-blue --no-color | head -12 rollout "kasse" image updated Name: kasse Namespace: team-blue Status: ✖ Degraded Message: RolloutAborted: Rollout aborted update to revision 3: Step-based analysis phase error/failed: Metric "http-fehler" assessed Failed due to failed (2) > failureLimit (1) Strategy: Canary Step: 0/6 SetWeight: 0 ActualWeight: 0 Images: argoproj/rollouts-demo:yellow (stable)
The new version bad-red answers most requests with HTTP 500. After two failed measurements, Argo Rollouts sets the weight to 0.
Diagnosis
Look at the latest AnalysisRun and its result – even without the kubectl plugin.
k -n team-blue get analysisrun -o custom-columns=NAME:.metadata.name,PHASE:.status.phase,MESSAGE:.status.message NAME PHASE MESSAGE kasse-656bf77d85-3-1 Failed Metric "http-fehler" assessed Failed due to failed (2) > failureLimit (1)
Causes
failed (2) > failureLimit (1)More failures than allowed
The analysis measures three times, 10 s apart. More than one failure counts as failed – with two failed measurements the rollout aborts. (http-fehler = "HTTP errors".)
status DegradedDegraded stays
The status stays Degraded until someone corrects the desired version. Ready pods are not enough: a pod that answers every request with 500 is still Ready.
Fix
k argo rollouts set image kasse -n team-blue kasse=argoproj/rollouts-demo:yellow k argo rollouts get rollout kasse -n team-blue --no-color | head -4 rollout "kasse" image updated Name: kasse Namespace: team-blue Status: ✔ Healthy
Don't: Override the abort with promote --full. The analysis measured that the new version returns almost nothing but errors – fix the cause first.
CNPE hands-on, Day 5: progressive delivery with Argo Rollouts – canary with analysis, abort and blue-green.
Go to day 5 →
FAQ
Where can I see what the analysis measured?
In the logs of the AnalysisRun's check jobs – in the course, for example, “Fehler 16 von 20” (16 errors out of 20).
Do users see the broken version?
Only the canary share during the measurement. After the abort, Argo Rollouts sets the weight to 0 and all requests go to the stable version.