Repository navigation
Description
What's the problem
Manual step S8: filling the data disk must raise a visible low-disk warning and a disk alert. The tier-4 fault_disk_enospc leg (tests/integration/lib/run-faults.sh) already mounts a 1 MiB tmpfs over the dashboard data dir and fills it for a real kernel ENOSPC, but it asserts only db_healthy. The warning and alert edges (85% warning, 95% critical) are tested with injected percentages only.
The original text asked for an assertion on the old dashboard's amber and red Disk N% full badge. That UI gets no more work (owner, 2026-10-27) and is deleted at the 2.1.0 cutover (#2547). The user need moves to the new Overview (#2515, #3566 section C): one plain low-disk sentence in the attention list, with a deep link to the fix, and a status line that never reads healthy while the disk is full.
The gauge is used/total (collector/system.py), which leaves out ext4's reserved blocks. It can read about 95% when df says 100%, and a tmpfs cannot show that difference.
What it impacts
- Users whose data disk fills: they must see one plain low-disk sentence with a working link on Overview, not a page that says everything is normal.
- The destructive tier-4 fault-injection phase, which gains real-ENOSPC assertions on the new Overview. It runs only on the isolated, owned mount that fault-injection: scope ENOSPC cleanup to its owned temporary mount #3525 makes safe.
How I found it
- Found while building the manual QA walkthrough (docs(release): full manual QA walkthrough in the release checklist #3065, closed). Part of Automation gaps found by the manual release checklist #3068.
- Read-only check on
develop-v2.1.0, 2026-10-27:fault_disk_enospcstill asserts onlydb_healthy; the disk gauge reads/dataasused/total; the 85% and 95% thresholds feed both the badge and thedisk_spacealert edge. Nothing was run and no bench job was submitted. - The security review for this issue found the double-unmount and interruption hazard in the same leg, now tracked as fault-injection: scope ENOSPC cleanup to its owned temporary mount #3525. Draft PR testing: fix #3088 — prove Overview disk-full attention and recovery #3526, which asserted the old badge, was closed unmerged.
- Owner plan, item H4, 2026-10-06 (2.0.1 scope): the tmpfs ENOSPC leg is the required one; the ext4 loop variant is out unless a bench already allows it, and no sudo grant is widened for it. When checked, passwordless
losetupandmountexisted on the rig bench only.
How important is it
Low to medium: P3 hardening and test debt. The disk-low sentence itself ships and is fixture-tested under #2515; this adds only the real-ENOSPC proof. It does not gate 2.1.0 and is worked after #2515 and #3525 land.
Acceptance criteria
Starts only when #2515 has merged with a disk-low attention entry and #3525 is merged with its live proof recorded. The earlier block on #2774 is satisfied (2.0.0 is cut).
- The
fault_disk_enospcleg keeps its existingdb_healthyfalse and true assertions and adds assertions on the new Overview, through the state payload or the page. - While the owned 1 MiB tmpfs is full: the attention list holds exactly one low-disk entry (one sentence, no raw config keys) whose deep link resolves to an existing page or Advanced section, and the status sentence is not "Everything is running normally".
- After the unmount and dashboard restart: the low-disk entry is gone, the healthy sentence returns, and
db_healthyis true. - The
disk_spacealert fires once during the full-disk window and not again after recovery, observed with the notification-hook log method the stranded-node legs already use. - Cleanup touches only the mount this run created (the fault-injection: scope ENOSPC cleanup to its owned temporary mount #3525 contract), and the phase's end-of-run baseline check passes.
- One tier4-e2e fault-injection job on the PR head completes successfully. The PR body links it and pastes the unedited output of the new assertions.
- The change adds no assertion on the removed badge, tabs or controls, and no explanatory code comments. The disk-full bullet in
docs/dev/testing-strategy.mddescribes the new assertions.
Possible solutions
- Extend the existing leg in place: after the fill and dashboard restart, read the Overview attention entry and status sentence from the state payload Sovereign: build the contribution overview and attention summary #2515 defines, and assert them again after recovery. Drive the page only if the payload does not carry them.
- Optional, only on the bench that already permits it and with no new sudo grant: an ext4 loop image filled to
df90%, compared with the gauge, to cover the reserved-block gap above. - The disk-low entry and its link target belong to Sovereign: build the contribution overview and attention summary #2515. If that entry is missing or wrong, fix it there rather than here.
Earlier scope, kept as evidence only (superseded 2026-10-27; do not implement from it)
What's the problem
Manual step: scenario S8. Filling the data disk turns the disk badge amber (85%) and red (95%), and a disk alert fires.
Current coverage:
fault_disk_enospc(tests/integration/lib/run-faults.sh) already fills a real tmpfs under/data, but asserts onlydb_healthy.- The badges and alert edges are tested with injected percentages only.
- The gauge is
used/total(collector/system.py), which leaves out ext4's reserved blocks. It can read about 95% whendfsays 100%, and a tmpfs cannot show that difference.
what it impacts
Impact is not separately established in the existing report; confirm the affected users or behavior.
How I found it
Discovery details are not separately established in the existing report; preserve and verify the evidence already recorded.
how important is it
Importance has not been assessed explicitly; triage must state the priority and its reason.
acceptance criteria
Acceptance is not isolated in the existing report; the agent must identify a testable outcome before implementation.
possible solutions
Proposed check (tier 4):
- Extend the leg to assert a bad
Disk N% fullbadge while the disk is full, and none after unmount. - Optional: add an ext4 loop image filled to
df90%, and compare it with the gauge.
Found while building the manual QA walkthrough (#3065). Part of #3068. Test debt for after the 2.0.0 cut, so it is blocked by #2774.
Activity
docs(release): link the automation-gap tracker; fix S4's chart claim
docs(release): full manual QA walkthrough in the release checklist (#…
VijitSingh97 commentedon Oct 6, 2026
Scope for this issue in 2.0.1, from the owner-accepted between-release plan (item H4, 2026-10-06):
A read-only check today: passwordless sudo for
losetupandmountexists on the rig bench only. The primary and the node-serving bench do not have it. So the ext4 loop variant could run only on the rig bench, and no sudo grant will be widened for it in 2.0.1.pithead-developer commentedon Oct 19, 2026
Blocked on #3525. Draft PR #3526 adds real-ENOSPC badge and recovery assertions; 14 focused tests pass, and verifier/security reviews are clean. Blocked on #3525: its mount-cleanup safety fix must land before destructive tier-4 proof can run. No bench job was submitted; GitHub checks remain pending.
The runner resumes this issue when that one closes.
pithead-developer commentedon Oct 21, 2026
Parked in Icebox under the lean roadmap (owner, 2026-10-21): this tests a surface that v2.1.0 reshapes, so writing it now means rewriting it; the feature PRs carry their own tests.
pithead-developer commentedon Oct 31, 2026
Blocked on #2515 / draft PR #3790. The revised owner acceptance for #3088 explicitly starts only after the new Overview and its disk-low attention contract merge; #2515 is still open and #3790 remains an unmerged draft. #3525 is resolved by merged PR #3538, so the storage-safety dependency has cleared.
The retained branch and closed PR #3526 contain only the superseded old-badge prototype. Their earlier tests do not prove the new Overview criteria. No source edits, base merge, tests or bench submissions were made during this resume. The owner of #2515 must land the Overview contract and disk-low entry; then resume the same branch/PR against the v2.1.0 integration base, replace the prototype with Overview and disk-alert assertions, and obtain current-head checks, reviews and live fault-injection evidence. The PR body now records this changed approach and dependency.
pithead-developer commentedon Oct 31, 2026
Blocked on #2515. #3525 is resolved, but the revised acceptance criteria require #2515’s new Overview contract to merge first; its PR #3790 remains an unmerged draft. Updated closed PR #3526 and posted blocker explanations on both items. The branch is unchanged; no tests or bench jobs ran during this resume.
The runner resumes this issue when that one closes.