fix(backup-drill): boot the drill VM from a volume of the requested size #869

Sammanfogat
supernaut sammanfogade 2 incheckningar från fix/backup-drill-boot-volume-size in i main 2026-11-07 22:13:59 +00:00
Ägare

Problem

The 2026-11-07 restore drill failed in forgejo migrate:

mkdir: can't create directory '/var/lib/gitea/git': No space left on device

The gitborg-runner image is a volume snapshot. Its own block device mapping pins a 20 GiB root
volume, and Nova honours that over the drill's volume_size: 80 (#320). The drill VM has always
run on 20 GiB. The restic [storage] restore reached 12.2 GiB, and the 2026-11-05 rebake added an
OS upgrade. Together they filled the disk.

Change

  • The orchestrator creates a backup-drill-boot volume of backup_drill_os_boot_volume_size GiB
    from the image's snapshot and boots from it. A plain image keeps the old path.
  • The volume is created without an availability zone. Cinder's zone (nova) differs from the
    compute zones.
  • Teardown deletes a tagged boot volume left available when the VM never booted.
  • The restore log prints the VM's root fs size, so an ignored size request is visible.
  • Defaults comment and runbook updated.

Verify after apply

./scripts/apply-reconcile.sh -- --limit bitborg-prod --tags backup-drill
systemctl --user start bitborg-backup-drill.service

The [restore] root fs: line should show about 79G, and the drill should end PASSED.

## Problem The 2026-11-07 restore drill failed in `forgejo migrate`: ``` mkdir: can't create directory '/var/lib/gitea/git': No space left on device ``` The `gitborg-runner` image is a volume snapshot. Its own block device mapping pins a 20 GiB root volume, and Nova honours that over the drill's `volume_size: 80` (#320). The drill VM has always run on 20 GiB. The restic `[storage]` restore reached 12.2 GiB, and the 2026-11-05 rebake added an OS upgrade. Together they filled the disk. ## Change - The orchestrator creates a `backup-drill-boot` volume of `backup_drill_os_boot_volume_size` GiB from the image's snapshot and boots from it. A plain image keeps the old path. - The volume is created without an availability zone. Cinder's zone (`nova`) differs from the compute zones. - Teardown deletes a tagged boot volume left `available` when the VM never booted. - The restore log prints the VM's root fs size, so an ignored size request is visible. - Defaults comment and runbook updated. ## Verify after apply ```sh ./scripts/apply-reconcile.sh -- --limit bitborg-prod --tags backup-drill systemctl --user start bitborg-backup-drill.service ``` The `[restore] root fs:` line should show about 79G, and the drill should end `PASSED`.
supernaut lade till 2 incheckningar 2026-11-07 21:59:01 +00:00
The gitborg-runner image pins a 20 GiB root volume in its block device mapping, and Nova honours
that over volume_size (#320). The drill VM has run on 20 GiB, not 80. The 2026-11-07 drill hit
ENOSPC in forgejo migrate once the restic [storage] restore reached 12 GiB.

Create the boot volume from the image's snapshot at backup_drill_os_boot_volume_size and boot
from it. Teardown also deletes an orphaned tagged boot volume. The restore log prints the root fs
size.
fix(backup-drill): leave the boot volume's zone to cinder
Alla kontroller lyckades
ci / ci (pull_request) Successful in 14m26s
684b4549d6
supernaut schemalade den här ändringsförfrågan för automatisk sammanfogning när alla kontroller lyckas 2026-11-07 22:00:45 +00:00
supernaut sammanfogade incheckning ac67d57778 till main 2026-11-07 22:13:59 +00:00
supernaut tog bort grenen fix/backup-drill-boot-volume-size 2026-11-07 22:13:59 +00:00
Logga in för att delta i denna konversation.
Inga granskare
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Förfallodatumet är ogiltigt eller utanför gränserna. Använd formatet "åååå-mm-dd".

Inget förfallodatum satt.

Beroenden

Inga beroenden satta

Referens
bitborg/bitborg-infra!869
Ingen beskrivning angiven.