2026-11-23: Weekly Harbor restore drill's restore pod not Ready for 21 minutes, KubePodNotReady fired¶
Kind: reference (incident report)
Severity: warning · Status: resolved · Resolved by: the drill finishing on its own, checked by the operator agent · Duration: 0:06 from detection to resolution, 04:16:15–04:22:30 UTC · Taskbase task: #3624
Summary¶
The weekly restore drill harbor-scratch/harbor-restore-drill started at 04:00 and created the restore check pod harbor-scratch/harbor-restore-1795406410. That pod downloads and checksums the backup in its fetch init container, which took 20 min 46 s, so the pod stayed in phase Pending past the 15-minute for of KubePodNotReady. The alert fired at 04:16:15. Nothing was wrong: the checksums passed, the restore counts matched, the smoke check passed, and the drill Job completed at 04:31:13. This is the same false alert follow-up #3417 covers for the backup gate. It is the first time a weekly drill has raised it, so it will now come back every Monday, not only on gate runs.
Impact¶
- Services: none. The drill only touches its scratch copy in
harbor-scratch. Harbor reportedhealthythroughout, and its writers were not stopped. - Users: none reported.
- Data: none at risk. The drill verified backup
hetzner-mgmt/harbor/preupgrade/20261122T213518Z-1.19.4-to-1.19.4by restoring it. - Duration: 6 min 15 s of firing (04:16:15–04:22:30 in Prometheus
ALERTS). The pod wasPendingfrom 04:01:15 to 04:22:30.
Timeline¶
All times UTC.
| Time | Event | Source |
|---|---|---|
| 04:00:00 | CronJob harbor-restore-drill starts Job harbor-restore-drill-29923440 (image amazon/aws-cli:2.42.1) |
Job startTime |
| 04:00:05 | Drill reads PREFIX=hetzner-mgmt/harbor/preupgrade/20261122T213518Z-1.19.4-to-1.19.4 |
drill log |
| 04:00:48 | Restore pod harbor-restore-1795406410 created. One FailedMount on its work volume (device not ready: lstat /dev/disk/by-id/scsi-0HC_Volume_107582207), retried by the kubelet |
drill log, events |
| 04:01:21 | Init container fetch started |
pod status |
| 04:15:51 | registry.pgdump: OK |
fetch log |
| 04:16:03 | Detected: KubePodNotReady, pod=harbor-restore-1795406410, cluster=hetzner-mgmt; Taskbase raised #3624 |
alert |
| 04:22:07 | registry.tar: OK, fetch exits |
fetch log |
| 04:22:12 | Restored projects: 4 (4), repositories: 23 (23), artifacts: 741 (741) |
restore-db log |
| 04:22:30 | Resolved: the pod leaves Pending, and the alert's last firing sample is at 04:22:30 |
Prometheus kube_pod_status_phase, ALERTS |
| 04:29:04 | smoke check passed, Drill passed. |
drill log |
| 04:31:13 | Job Complete; last-success.env written with PASSED=2026-11-23T04:31:08Z |
Job status, drill log |
| 04:33:04 | Alertmanager has no alert in harbor or harbor-scratch and no active silence |
Alertmanager API |
Root cause¶
KubePodNotReady (kube-prometheus) counts a pod that stays Pending or Unknown, or Running but not Ready, for 15 minutes. Pods owned by a Job are left out, but pods with no owner are not. The restore check starts harbor-restore-<n> as a bare Pod (components/harbor/backup/templates/restore-pod.yaml), and the work happens in its init containers (fetch, restore-db), so the pod is Pending the whole time. fetch downloads registry.pgdump and registry.tar (the registry, about 41 GiB on 2026-11-19) and checks both checksums. That took 15 min in the gate's restore check on 2026-11-19 and 21 min here. So every restore check now raises this alert, whether the gate or the weekly drill runs it. Since the owner's decision #3453 (#1679), the gate skips its backup when nothing upgrades, so it runs less often. The drill still runs every Monday.
What the agent did¶
Read-only only, following the read-only checks of the alert's runbook (why is the pod not ready). No write command was run on any cluster, and no silence was set.
kubectl --context admin@mgmt-cluster get --raw '/api/v1/namespaces/monitoring/services/http:monitoring-kube-prometheus-alertmanager:9093/proxy/api/v2/alerts': at 04:17KubePodNotReadyforharbor-scratch/harbor-restore-1795406410wasactive,silencedBy: [],.labels.clusterhetzner-mgmt.kubectl --context admin@mgmt-cluster -n harbor-scratch get pods,jobs,cronjobsand the pod's JSON: no owner, labelapp.kubernetes.io/name=harbor-restore,fetchrunning since 04:01:21 andrestore-dbwaiting. The drill Job wasRunningand in step with the CronJob's Monday 04:00 schedule.kubectl --context admin@mgmt-cluster -n harbor-scratch logs harbor-restore-1795406410 -c fetchandlogs job/harbor-restore-drill-29923440, plus the namespace events:registry.pgdump: OK, then theregistry.tarchecksum. One mount retry, no errors. So the pod was making progress, not stuck.- Waited on the pod's phase and the Job, checking every 30 s: Ready at 04:22:34, Job succeeded at 04:31:43 (
Drill passed.). - Prometheus through the Service proxy:
ALERTS{alertname="KubePodNotReady",namespace="harbor-scratch"}firing 04:16:15–04:22:30;kube_pod_status_phasePending04:01:15–04:22:30,Runninguntil 04:28:00, thenSucceeded.ALERTS{namespace=~"harbor|harbor-scratch"}was empty at 04:33.
Resolution and verification¶
- Alertmanager at 04:33:04: no alert in
harbororharbor-scratch, and no active silence. flux --context admin@mgmt-cluster get kustomizations -A --status-selector ready=falseandflux --context admin@mgmt-cluster get helmreleases -A --status-selector ready=false: both empty.- Job
harbor-scratch/harbor-restore-drill-29923440Completeat 04:31:13.harbor-scratchholds only the completed drill pods. https://harbor.prod.skatzi.com/api/v2.0/health:healthy.
Follow-ups¶
-
3417: stop
KubeContainerWaitingandKubePodNotReadyfrom firing on the healthy Harbor gate's and drill's helper pods. Its description now records this drill firing. Until it lands, every Monday's drill raises this incident.¶
References¶
- Alert:
KubePodNotReady, runbook - Taskbase incident task: #3624
- Pull requests: #1683 (this report), #1679 (gates skip the backup when nothing upgrades)
- Runbook sections: Harbor backups: weekly restore drill, The restore check
- Earlier report: 2026-11-19 Harbor gate ran 68 minutes
Open questions¶
- Why the drills of 2026-11-09 and 2026-11-16 took only 7 min and 6 min 14 s in all, while this one took 31 min (21 min of it in
fetch). Their logs are gone, so this run could not tell whether they restored a smaller or older backup.