Use this when a change was applied to only some targets.
Partial Failure · Rollback & Recovery
Partial failure in rollback and recovery means some targets were changed and some not. Decide whether to roll back the changed ones or complete the rest, and track exactly which state each target is in.
1. Partial failures leave some targets changed.
2. Track per-target results.
3. Stop rollouts early.
4. Reconcile: roll back or roll forward consistently.
5. Idempotent reruns help.
batch → some fail → stop → reconcile
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Known-good, broken and when it is fixed Verify boundary
Known-good after recovery means every targeted object is in one intentionally documented final state, no duplicate/half-created artifacts remain, locks/queues are clear and the original service outcome is restored. A rollback task marked successful is insufficient without target read-back and workload verification across the previously partial scope.
Step 2 Common mistakes Narrow the fault
- No record of which targets failed.
Step 3 Native failure isolation and next-check logic Narrow the fault
Freeze the run ID and enumerate completed, failed, pending and unknown side effects from both orchestration history and direct target read-back. Decide per object whether to resume forward, compensate/rollback or require manual repair. Check external systems that may have accepted irreversible actions. Do not rerun the whole workflow until duplicate effects and stale locks/leases are understood.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Track state per target.
- Decide roll back or complete.
- Idempotency helps.
- Per-target result tracking — which succeeded
- Batch stop on failure (max_fail_percentage) — containment
- Reconcile partial state — cleanup
ReferenceHow it works1 section · depth on demand
How it works
Partial failure occurs when a multi-step or multi-target automation mutates some objects before later work fails. Recovery depends on knowing which side effects committed, which are pending and whether operations are reversible/idempotent. A failed job status does not mean nothing changed; a successful retry can compound partial state.
ReferenceImportant terms & boundaries1 section · depth on demand
Method
A partial failure leaves some targets or steps changed and others not. Recovery starts by establishing exactly what state each target is in, then choosing whether to complete the change, roll back the successes, or leave it and document.
Recovery method:
1. Collect per-target status from the run (succeeded, failed, not attempted).
2. Verify actual state on failed and in-progress targets — the failure may have happened after the change was applied.
3. Decide: roll forward (fix cause, re-run failed only) or roll back (revert successes).
4. Execute with the same automation, limited to the affected targets.
5. Verify consistency across all targets.
ansible-playbook change.yml --limit @change.retry
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Rollback & Recovery > Partial Failure. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/azure/well-architected/operational-excellence/safe-deployments · confidence 94%