installer 1.38.0 on main (NOT tagged): an appliance install stops on a system disk below 200 GB; --accept-small-disk for the operator (D83, R-1370); R-1398 filed
gates / gates (push) Failing after 4m26s

Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
This commit is contained in:
admin committed 2026-11-15 14:32:13 +01:00
1 parent 44715fb38b
commit 92853bed2c
6 files changed
+370 -5

No files matched your search

@@ -415,7 +415,7 @@ below 200 GB — refuse, or warn (R-1370). demo-hp (128 GB) stays as a test box.
| The smallest disk is ruled (200 GB, `09` §3 decision 295). Nothing enforces it: what the installer does below 200 GB is a written design with a pick (refuse, with one flag for the operator) — §14.5; it waits for the operator's yes | R-1370 |
| What to do by hand when a disk is full | `runbooks/disk-full.md` (R-1369) |
### 14.5 What the installer does on a system disk below 200 GB `[DESIGN — proposed, not built]` (the open point of D75, `09` §3 decision 295, R-1370; written 2026-11-14)
### 14.5 What the installer does on a system disk below 200 GB `[FACT — built, not released: installer v1.38.0 on `main`, not tagged, 2026-11-15]` (D75 and D83 = option A, `09` §3 decisions 295 and 308, R-1370; designed 2026-11-14)
**The ruling.** The smallest system disk is 200 GB, with or without a backup drive. Open: what the installer does
below it — refuse, or warn.
@@ -462,7 +462,40 @@ by a person who was told.
refused machine is exactly as it was. One test per row above in `scripts/test_hostinstall.py`, the sizes fed through a
seam (no real disk).
**If nothing is decided:** the installer accepts any disk, as today; the 200 GB is a sentence in a document.
**Ruled 2026-11-15 (D83): option A, with the flag.**
**As built (installer v1.38.0, `check_system_disk`; not tagged, not run on a machine).**
| Row of the table above | Built | Test (`scripts/test_hostinstall.py`) |
|---|---|---|
| An appliance below 200 × 10⁹ bytes | stops, first thing in the preflight; only `pvs`, `lsblk` and one `/sys/block` file were read | `test_small_disk_appliance_is_refused_before_anything_changes`, `…_check_is_wired_first_in_the_preflight_and_recorded` |
| Exactly 200 GB by the label; a virtual disk of 200G | pass; one sector less does not | `…_the_line_is_200_times_ten_to_the_nine_bytes` |
| The flag `--accept-small-disk` | goes on, prints the cost, `small_disk: true` and `system_disk_bytes` in the install state, `"small_disk":true` in the enrolment request | `…_flag_goes_on_prints_the_cost_and_marks_it`, `…_is_told_to_the_hub_at_the_enrolment` |
| A BYO host | a warning, never a stop — also when the size cannot be read | `…_byo_host_is_warned_never_refused` |
| A reinstall of a box that was accepted earlier | the same rule: the check reads no earlier record | the same tests (no state is read by the check) |
| The size cannot be read (no `pve` group, two physical volumes, a RAID, no size) | appliance: stops and names the flag; with the flag it goes on, recorded as small with size „unknown” | `…_size_that_cannot_be_read_refuses_and_names_the_flag` |
| A small system disk and a large second one | the system disk decides, in both directions | `…_a_large_second_disk_does_not_help` |
| The existing 120 GiB pool warning | stays | `test_lvm_minimum_is_named_as_what_it_does` |
| The public image, nobody watching | **NOT built — R-1398.** The first-boot unit runs the installer again until it succeeds, so a refused machine prints the refusal on its own screen every 30 seconds; the hub is not told why, and the hub does not read `small_disk` | — |
**The sentences, as built (the installer's output, English only — the installer has no Hungarian text):**
- The refusal: „This machine's system disk is 128 GB. Felhom needs 200 GB. Nothing was changed. (An operator can
install a small test box with --accept-small-disk.)”
- The size cannot be read: „Cannot read the system disk's size (no single disk under the 'pve' volume group). Felhom
needs a system disk of 200 GB. Nothing was changed. An operator can go on with --accept-small-disk.”
- With the flag: „--accept-small-disk: this machine's system disk (/dev/sda) is 128 GB, below the 200 GB that Felhom
needs.” and „The cost: the guest gets less space than a household is promised, and the box's local copies can stop
when the disk fills. Recorded as small_disk.”
- A BYO host: „this machine's system disk (/dev/sda) is 128 GB. Felhom needs 200 GB: with less, the local copies of
the box can stop when the disk fills. The install goes on (this host is yours).”
**For the release session — how the two small machines are installed after this.** demo-hp (128 GB): a reinstall
needs `--accept-small-disk`; the box that runs today is not touched by the rule (the check runs only in an install).
The fresh-install proof VM (64 GiB on 2026-11-15): make its first disk 200G — on a `dir` storage the file is sparse,
so it costs what is written, not 200 GB — and it then proves the path a household takes, with no flag. One more
proof for that session: the same VM with a 64G disk and `--preflight-only` must stop with the sentence above, and a
`qm config` and a disk listing before and after must be equal.
## Decisions in code no section records [DESIGN — confirmed by the operator 2026-10-25 (D44 = all picks, R-1265)]