docs(runbook): fix the image snapshot-reference check #502

Sammanfogat
supernaut sammanfogade 1 incheckning från docs/runbook-image-snapshot-check in i main 2026-09-29 08:26:00 +00:00
Ägare

The runbook's check for "is any Glance image booting from this snapshot?" never matched anything.

block_device_mapping is a JSON string inside the image JSON, so its quotes arrive escaped as \". The old tr -d '\"' | grep pipeline left the backslashes in place, the snapshot_id: ? regex failed, and the command printed nothing. Empty output reads as "nothing references this snapshot", which is the unsafe answer.

The check now parses the field with jq and prints <image> <snapshot-id>. Verified against production on 2026-09-28: it prints gitborg-runner 4daabf1b-…. The old command printed nothing for the same image.

scripts/bake-runner-image.sh was not affected. It strips backslashes as well as quotes.

Docs only. No apply needed.

The runbook's check for "is any Glance image booting from this snapshot?" never matched anything. `block_device_mapping` is a JSON string inside the image JSON, so its quotes arrive escaped as `\"`. The old `tr -d '\"' | grep` pipeline left the backslashes in place, the `snapshot_id: ?` regex failed, and the command printed nothing. Empty output reads as "nothing references this snapshot", which is the unsafe answer. The check now parses the field with jq and prints `<image> <snapshot-id>`. Verified against production on 2026-09-28: it prints `gitborg-runner 4daabf1b-…`. The old command printed nothing for the same image. `scripts/bake-runner-image.sh` was not affected. It strips backslashes as well as quotes. Docs only. No apply needed.
supernaut lade till 1 incheckning 2026-09-28 20:19:40 +00:00
docs(runbook): fix the image snapshot-reference check
Alla kontroller lyckades
ci / ci (pull_request) Successful in 17s
060c84c866
block_device_mapping is a JSON string inside the image JSON, so its quotes arrive escaped.
The old tr/grep pipeline left backslashes behind and matched nothing, which read as
"no image references this snapshot". Parse it with jq instead.
supernaut sammanfogade incheckning b27b88e81c till main 2026-09-29 08:26:00 +00:00
supernaut tog bort grenen docs/runbook-image-snapshot-check 2026-09-29 08:26:00 +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!502
Ingen beskrivning angiven.