Skip to content

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 reported healthy throughout, 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.4 by restoring it.
  • Duration: 6 min 15 s of firing (04:16:15–04:22:30 in Prometheus ALERTS). The pod was Pending from 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.

  1. kubectl --context admin@mgmt-cluster get --raw '/api/v1/namespaces/monitoring/services/http:monitoring-kube-prometheus-alertmanager:9093/proxy/api/v2/alerts': at 04:17 KubePodNotReady for harbor-scratch/harbor-restore-1795406410 was active, silencedBy: [], .labels.cluster hetzner-mgmt.
  2. kubectl --context admin@mgmt-cluster -n harbor-scratch get pods,jobs,cronjobs and the pod's JSON: no owner, label app.kubernetes.io/name=harbor-restore, fetch running since 04:01:21 and restore-db waiting. The drill Job was Running and in step with the CronJob's Monday 04:00 schedule.
  3. kubectl --context admin@mgmt-cluster -n harbor-scratch logs harbor-restore-1795406410 -c fetch and logs job/harbor-restore-drill-29923440, plus the namespace events: registry.pgdump: OK, then the registry.tar checksum. One mount retry, no errors. So the pod was making progress, not stuck.
  4. 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.).
  5. Prometheus through the Service proxy: ALERTS{alertname="KubePodNotReady",namespace="harbor-scratch"} firing 04:16:15–04:22:30; kube_pod_status_phase Pending 04:01:15–04:22:30, Running until 04:28:00, then Succeeded. ALERTS{namespace=~"harbor|harbor-scratch"} was empty at 04:33.

Resolution and verification

  • Alertmanager at 04:33:04: no alert in harbor or harbor-scratch, and no active silence.
  • flux --context admin@mgmt-cluster get kustomizations -A --status-selector ready=false and flux --context admin@mgmt-cluster get helmreleases -A --status-selector ready=false: both empty.
  • Job harbor-scratch/harbor-restore-drill-29923440 Complete at 04:31:13. harbor-scratch holds only the completed drill pods.
  • https://harbor.prod.skatzi.com/api/v2.0/health: healthy.

Follow-ups

  • 3417: stop KubeContainerWaiting and KubePodNotReady from 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

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.