Files
vpn-dns-gateway/delivery/evidence/recovery-20261115.md
T
vsun1 fbda9516fe
vpn-dns-gateway/pipeline/head This commit looks good
vpn-dns-gateway/pipeline/pr-main This commit looks good
Finalize Assignment 8 recovery evidence and manual
2026-11-16 00:03:46 -05:00

138 lines
7.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Completed production rollback and staging recovery
Executed 15 November 2026 Eastern / 16 November UTC. All times below are UTC.
Primary data: [results and report hashes](recovery-20261115.json),
[actual runtime and Prometheus responses](recovery-runtime-20261115.json),
[original production CSV](recovery-production-20261115.csv), and
[original staging CSV](recovery-staging-20261115.csv). CSV bytes and SHA-256
values were verified against the remote originals.
## Review and baseline
[PR 27](https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/pulls/27) was approved
by `bill` at 04:12:09 and merged by `vsun1` at 04:14:30 as
`72bf10dcecc8db65dce4750c05bf841bea9b0834`. It preserves the actual successful
release records, bad configuration `1e23001e7303d14630cfa97c8de36f31f30b81a0`
and immediate revert `29e580c4613f00a02f44bce0dbcee2fd8fdc83ae`. Main is good.
[Actions workflow 16](https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/actions/runs/16)
passed in 2m17s before recovery. Jobs 7–10 used reviewed main `72bf10d` for
control code; their release records select historical app/configuration commits.
## Healthy production rollback
This was a planned exercise on healthy v2, not an incident. Decision:
04:17:46.307. The reviewed HTTPS observer started before approval. The original
v1 production record selects source/configuration
`34f26e6948b7001ede8ca19f23b67a02082e6a9a` and image:
```text
git.yebilly.me/ssw590-group1/pricing@sha256:59c880b2704f91668618d9a2ff0bc8fbab0af4239ceb916de261863890ef88d8
```
[Build 7](https://ci.yebilly.me/job/secure-delivery/job/pricing/7/) stopped after
17.784 s with `Cannot fork` during test setup, before approval/deployment.
The agent cgroup showed 115/128 tasks and two limit events; Docker stats showed
132.6/512 MiB, PIDS=114 and no OOM kill. Its process listing showed Java only;
the accounting/accumulation mechanism was not established. Only the idle
delivery-agent container was restarted, preserving identity, workspace, image,
all limits and application services. Immediate Docker stats showed PIDS=13.
No resource/security limit was raised. Build 8 is the successful retry.
| Build 8 event | Actual result |
|---|---|
| [Jenkins run](https://ci.yebilly.me/job/secure-delivery/job/pricing/8/) | SUCCESS; 04:22:04.875–04:24:48.529; 163.654 s including approval wait |
| Actual approval | `vsun1`, 04:23:36, archived |
| Ansible rollback | 04:23:42.801–04:24:46.705; 63.904 s; ok=10 changed=3 unreachable=0 failed=0 |
| First v1 health response completed | 04:24:25.313; request started 04:24:23.645 |
| Restored behavior | HTTPS health/identity/price passed; v1, source 34f26e6, total 30 |
[Actual production v1 SUCCESS screenshot](../../manual/latex/images/assignment8-rollback-8-20261115.jpg):
build 8 completed November 16 at 04:24:48 UTC; deployment recap passed.
Twelve control and three app tests, source-secret and nine-dependency gates
passed. Build/publish was skipped: the original scanned digest and matching
Ansible configuration were restored without rebuilding. Deployment-start to
first observed v1 response completion was 42.512 s. Decision-to-recovery also
includes the runner error, troubleshooting and actual human wait; it is not
traffic interruption time.
Production: **863 requests, 9 failures** (8 HTTP 502, one timeout), sampled
04:17:46.447–04:32:10.607. Adjacent successful response completions:
04:24:12.672 (v2), 04:24:25.313 (v1), **12.641 s apart**. First failed request:
04:24:13.629. This is sampled evidence, not an exact continuous outage duration
or proof of zero interruption between requests. Maximum request-start gap:
2.015 s; two-second timeouts delayed the nominal one-second cadence.
## Separate staging failure and recovery
[Build 9](https://ci.yebilly.me/job/secure-delivery/job/pricing/9/) selected the
good v2 staging record and changed only its runtime configuration selection
to the reviewed bad SHA. Its existing image remained:
```text
git.yebilly.me/ssw590-group1/pricing@sha256:efe8658a0adf0854038d58199652030cbd0ef70047a1c6ebc7b09906cf1ec88b
```
Gunicorn bound to 8001; image health/Caddy used 8000. Compose reported
`container pricing-staging-app-1 is unhealthy`. The command retained
`--wait --wait-timeout 90`; Ansible blocked after 86.690 s including earlier
tasks: ok=4 changed=1 unreachable=0 failed=1, exit 2. No unchanged rerun,
production approval or production deployment ran.
The 04:28:54.827 snapshot confirmed staging unhealthy/HTTP 502 at the same v2
digest while production remained healthy v1/total 30. The failed run did not
reach the final metadata-copy task: host `release.json` still described the
last good release while Compose was bad. That file alone cannot prove health.
[Build 10](https://ci.yebilly.me/job/secure-delivery/job/pricing/10/) used the
original good v2 staging record and restored playbook/template from
`6bddbfba5a36e0e397537678ffb197e101fb0670` using `git archive`. No rebuild/push.
| Staging event | UTC / actual result |
|---|---|
| Decision / observer start | 04:25:23.940 / 04:25:24.078 |
| Failed deployment | 04:26:25.354–04:27:52.043; 86.690 s; build 9 FAILURE |
| First failed request | 04:26:53.130 |
| Recovery job began | 04:28:38.093 |
| Recovery Ansible | 04:29:10.106–04:30:06.603; 56.497 s; ok=10 changed=2 failed=0 |
| First recovered v2 response completed | 04:29:44.923; request started 04:29:43.205 |
| Unchanged rerun | 04:30:10.352–04:30:58.451; 48.099 s; ok=10 changed=0 failed=0 |
| Recovery job ended | 04:30:59.765 SUCCESS; 141.672 s total |
Staging: **406 requests, 169 failures** (168 HTTP 502, one timeout), ending
04:32:11.031. Adjacent successful response completions: 04:26:52.273 and
04:29:44.923, **172.650 s apart**. This includes fault, collection/selection,
new-job gates and restoration; it is not Ansible duration or an exact continuous
outage. Maximum request-start gap: 2.018 s. Production had no additional failed
observer requests during the staging exercise; its Compose hash was unchanged.
## Monitoring, final state and limits
At 04:34:28.765: production v1/source 34f26e6/total 30; staging v2/source
6bddbfb/total 36. Both healthy, exact original digests/configuration restored,
invalid quantity 0 returned HTTP 400, no published application host port.
All six scrape targets were up and all three HTTPS probes were 1. The 34
production samples since the decision were all 1: the 30-second probe missed
the short rollback interruption captured by the finer observer. Grafana was
flat over this exercise, unlike the earlier v2-release dip. The captured
90-minute query returned no `ALERTS` samples; no notification history or
Discord-notification claim is made. Staging used its own observer, not the
production-only chart.
Capacity sample: 1,967 MiB RAM, 660 MiB available; swap 476/2,047 MiB;
root space 8.9 GiB available, 62% used. Pricing used 32.53/33.68 MiB;
agent 131.9/512 MiB and 71/128 tasks, zero new process-limit events since
restart. Grafana used 188.4/192 MiB. These are point samples, not load/soak
tests. Serialize jobs on the shared CPU. The same-host observer shares the
Droplet failure domain; no off-site monitoring or high availability is claimed.
Status-only probes cannot verify price.
Both bounded observers were stopped after post-recovery verification rather
than waiting out their 1,800-second maximum. Only their verified PIDs were
signaled. Earlier services, volumes, credentials, gates and backups remain.
[Issue 28](https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/issues/28) was
created with Vincent's explicit authorization at 04:33:40 during finalization,
after implementation and exercises. It records a late workflow correction,
not a pre-implementation issue. Final group review/merge and submission remain.