# Runbook: Release Orchestrator - Rollback Operation Failed > **Sprint:** SPRINT_20260117_029_DOCS_runbook_coverage > **Task:** RUN-004 - Release Orchestrator Runbooks ## Metadata | Field | Value | |-------|-------| | **Component** | Release Orchestrator | | **Severity** | Critical | | **On-call scope** | Platform team, Release team | | **Last updated** | 2026-01-17 | | **Doctor check** | `check.orchestrator.rollback-health` | --- ## Symptoms - [ ] Rollback operation failing or stuck - [ ] Alert `OrchestratorRollbackFailed` firing - [ ] Error: "rollback failed" or "cannot restore previous version" - [ ] Target environment in inconsistent state - [ ] Previous artifact not available for deployment --- ## Impact | Impact Type | Description | |-------------|-------------| | **User-facing** | Rollback blocked; potentially broken release in production | | **Data integrity** | Environment may be in partial rollback state | | **SLA impact** | Incident resolution blocked; extended outage | --- ## Diagnosis ### Quick checks 1. **Check Doctor diagnostics:** ```bash stella doctor --check check.orchestrator.rollback-health ``` 2. **Check rollback status:** ```bash stella rollback status ``` 3. **Check previous deployment history:** ```bash stella orch deployments list --env --last 10 ``` ### Deep diagnosis 1. **Check why rollback failed:** ```bash stella rollback trace --verbose ``` Look for: Which step failed, error message 2. **Check previous artifact availability:** ```bash stella orch artifacts get --check ``` Problem if: Artifact deleted, not in registry 3. **Check environment state:** ```bash stella orch env status --detailed ``` 4. **Check for deployment locks:** ```bash stella orch locks list --env ``` --- ## Resolution ### Immediate mitigation 1. **Force release lock if stuck:** ```bash stella orch locks release --env --force ``` 2. **Manual rollback using specific artifact:** ```bash stella deploy --env --artifact --force ``` 3. **If artifact unavailable, deploy last known good:** ```bash stella orch deployments list --env --status success stella deploy --env --artifact ``` ### Root cause fix **If previous artifact not in registry:** 1. Check artifact retention policy: ```bash stella registry retention show ``` 2. Restore from backup registry: ```bash stella registry restore --artifact --from backup ``` 3. Increase artifact retention: ```bash stella registry retention set --min-versions 10 ``` **If deployment service unavailable:** 1. Check deployment target connectivity: ```bash stella orch connectivity --target ``` 2. Check deployment agent status: ```bash stella orch agent status --env ``` **If configuration drift:** 1. Check environment configuration: ```bash stella orch env config diff ``` 2. Reset environment to known state: ```bash stella orch env reset --to-baseline ``` **If database state inconsistent:** 1. Check orchestrator database: ```bash stella orch db verify ``` 2. Repair deployment state: ```bash stella orch repair --deployment ``` ### Verification ```bash # Verify rollback completed stella rollback status # Verify environment state stella orch env status # Verify correct version deployed stella orch deployments current --env # Health check the environment stella orch health-check --env ``` --- ## Prevention - [ ] **Retention:** Maintain at least 5 previous versions in registry - [ ] **Testing:** Test rollback procedure in staging regularly - [ ] **Monitoring:** Alert on rollback failures immediately - [ ] **Documentation:** Document manual rollback procedures per environment --- ## Related Resources - **Architecture:** `docs/modules/release-orchestrator/rollback.md` - **Related runbooks:** `orchestrator-promotion-stuck.md`, `orchestrator-evidence-missing.md` - **Rollback procedures:** `docs/operations/rollback-procedures.md`