Skip to content

Tier 4: a really full disk raises the dashboard's disk badge #3088

Open

Description

@VijitSingh97

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

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_enospc leg keeps its existing db_healthy false 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_healthy is true.
  • The disk_space alert 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.md describes the new assertions.

Possible solutions

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 only db_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% when df says 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% full badge while the disk is full, and none after unmount.
  • Optional: add an ext4 loop image filled to df 90%, 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

  1. added
    dashboard
    testing
    P3-hardening
    blocked
    on Oct 3, 2026
  2. VijitSingh97 commented on Oct 6, 2026

    @VijitSingh97
    CollaboratorAuthor

    Scope for this issue in 2.0.1, from the owner-accepted between-release plan (item H4, 2026-10-06):

    • The tmpfs ENOSPC leg (a really full disk raising the dashboard's disk badge) is required.
    • The ext4 loop-device variant is out of 2.0.1, unless the bench already allows it.

    A read-only check today: passwordless sudo for losetup and mount exists 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.

  3. removed
    blocked
    on Oct 14, 2026
  4. pithead-developer commented on Oct 19, 2026

    @pithead-developer
    Contributor

    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.

  5. added
    blocked
    on Oct 19, 2026
  6. pithead-developer commented on Oct 21, 2026

    @pithead-developer
    Contributor

    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.

  7. removed
    blocked
    on Oct 31, 2026
  8. pithead-developer commented on Oct 31, 2026

    @pithead-developer
    Contributor

    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.

  9. pithead-developer commented on Oct 31, 2026

    @pithead-developer
    Contributor

    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.

  10. added
    blocked
    on Oct 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3-hardeningblockeddashboardtesting

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions