Skip to content

Flaky KVM provision: dashboard-password repoint read 'previewed' as final while the commit was still claimed #3344

Closed

Description

@VijitSingh97

What's the problem

The KVM provision row dashboard-password repoint commits behind typed APPLY failed once at the 2.0.0 RC3 freeze, then passed on an unchanged rerun of the same commit. Per the #3220 ruling, the failure is a one-off. This issue tracks its likely cause, which looks like a harness race in password_commit_via_host (tests/os/appliance-config-approval-leg.sh:120).

Failing run: bench-ci job 365@723b1d7200543c09ac8ad1201b213a4625ba66ec (phases: provision, setup-defaults), 10:47Z:

control request: {"route":"preview","stage":"post",…,"status":"previewed"}
control request: {"route":"commit","stage":"post","curl":56,"http":"000",…,"status":"unknown"}
control request: {"route":"commit","stage":"poll","http":"401",…,"status":"unknown"}
control request: {"route":"commit","stage":"deadline",…}
control guest snapshot: ["Result=success","NRestarts=0","ExecMainCode=0","ExecMainStatus=0","ActiveState=activating","SubState=start","queued=0","claimed=1"]
✗ dashboard-password repoint did not commit behind typed APPLY (status=previewed error=none id=none)
✓ dashboard-password fixture cleanup restores authenticated dashboard availability
✗ sensitive appliance regression phase aborted before completing required checks

Passing rerun: 367@723b1d7200543c09ac8ad1201b213a4625ba66ec, same commit and phases: ✓ dashboard-password repoint commits behind typed APPLY and the new login works.

Likely cause (inferred, not proven):

  1. The commit POST was reset (curl 56), which is expected while Caddy restarts. The dashboard's own poll then got 401, also expected, because the login had just been replaced (config panel must be able to change every config field (telegram, hostname, dashboard password, healthchecks), gated where the product's rules require #2367).
  2. The host-spool loop (lines 139–144) then read results/<id>.json about 5 s after the commit. It stops at the first status outside pending/accepted/running.
  3. The file still said previewed, apparently because the control runner had claimed the commit (claimed=1, activating) but hadn't written its status yet. The loop took previewed as final.

Suggested fix: after the commit is sent, treat previewed as still in flight, like pending/accepted/running. Or wait until the control runner has no claimed request. Keep the 140 × 3 s deadline, so a commit that is never taken still fails. Add a selftest with a result file that stays previewed for a few polls and then turns applied.

Also check (product side): does the control runner write accepted/running to the result file as soon as it claims a commit? If so, a previewed read after the claim means a lost status write, not just a harness race.

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

No distinct solution options are recorded; investigate the existing report before choosing an approach.

Activity

  1. pithead-developer commented on Oct 19, 2026

    @pithead-developer
    Contributor

    Waiting on a transient bench_outage condition, not on another issue. tier4-kvm submission and idempotent retry failed with Errno 65: No route to host; no job ID returned. The runner re-checks it (first at 2026-10-19T14:20Z, at most 5 times).

  2. pithead-developer commented on Oct 19, 2026

    @pithead-developer
    Contributor

    Questions before work continues (answer here, then remove the question label):

    A bench_outage condition has held since 2026-10-19T14:05Z through 5 re-checks: tier4-kvm submission refused again: 503 draining: the runner is shutting down; retry shortly. Give the worker one bounded recovery step, or identify a genuine dependency; default: the worker re-checks and resubmits.

  3. added
    question
    on Oct 19, 2026
  4. pithead-architect commented on Oct 19, 2026

    @pithead-architect

    Ruling: Return waiting, blocked on bench-ci#2125; retain PR #3519, the worktree and existing red/green evidence. Respect the reported owner hold and stop scheduled retries. After its release and confirmed supported-client admission, reconcile the preserved key, reuse a matching job, or submit one tier4-kvm provision request after explicit no-job confirmation; incomplete lookup stops recovery. Record the job in bench_jobs and quote completed current-head evidence. Keep the bounded permanently-previewed failure regression and its diagnostic; local regression evidence does not replace the required KVM password round trip.

  5. added
    flaky
    and removed
    question
    on Oct 19, 2026
  6. pithead-developer commented on Oct 21, 2026

    @pithead-developer
    Contributor

    PR #3519 remains closed under its trusted lean-roadmap ruling: preserve the branch and resume only if this flake becomes a hard release blocker. The admission dependency, p2pool-starter-stack/bench-ci#2125, is closed; that recovery alone does not authorize resuming the parked fix.

    The branch at 49b68167957b29b806ca979d36f03abefc992cf1 and existing regression evidence are retained. No code changed, no PR was reopened and no bench request was submitted. Required current-head KVM provision proof remains missing, so no fix is claimed complete.

    Awaiting the owner or a trusted project ruling identifying this as a hard release blocker and authorizing resumption. That explicit ruling will resume work on the existing PR, starting with complete reconciliation of the preserved submission key before any new submission.

  7. pithead-developer commented on Oct 23, 2026

    @pithead-developer
    Contributor

    Parked in Icebox under the lean roadmap (owner, 2026-10-21: flaky tests are rerun, not fixed; harness forensics parked; no soaks): a one-off harness race that passed on an unchanged rerun. It comes back if it recurs and becomes a hard release blocker.

  8. pithead-developer commented on Oct 30, 2026

    @pithead-developer
    Contributor

    Merged in #3519.

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

    flaky

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions