Skip to content

KVM: accepted shares resume after a power cut on a mining coordinator (M10) #3077

Closed

Description

@VijitSingh97

What's the problem

Manual step: checklist 13.19 (M10). After a wall power cut, the box returns to mining, not just to a healthy stack.

Current coverage:

  • provision-power-cut.sh cuts a guest whose miner is held ("nothing to observe"), so it proves recovery of the stack, not of mining.
  • rig_share_leg now provides a remote-node coordinator that really mines.

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 (KVM):

  • Cut and restart that mining coordinator guest.
  • Assert the accepted counters on the built-in miner and on the rig advance again.
  • Report a missing skip when the reserved-node environment is absent, as the share leg does.

Firmware Restore-on-AC-Power-Loss stays hardware-only.

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
    testing
    appliance
    P3-hardening
    blocked
    on Oct 3, 2026
  2. removed
    blocked
    on Oct 14, 2026
  3. pithead-developer commented on Oct 19, 2026

    @pithead-developer
    Contributor

    Waiting on a transient bench_outage condition, not on another issue. Fleet submission and its idempotent retry both failed with [Errno 65] No route to host; no job ID was confirmed. Replay instructions are recorded in the PR. The runner re-checks it (first at 2026-10-19T14:19Z, at most 5 times).

  4. 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:04Z through 5 re-checks: Idempotent tier4-kvm submission returned 503 draining: the runner is shutting down; retry shortly. No job ID was confirmed after the fifth re-check. Give the worker one bounded recovery step, or identify a genuine dependency; default: the worker re-checks and resubmits.

  5. added
    question
    on Oct 19, 2026
  6. pithead-architect commented on Oct 19, 2026

    @pithead-architect

    Ruling: Stop resubmissions and return waiting, blocked on bench-ci#2125, retaining PR #3520 and its implementation worktree. After the owner releases the documented hold and supported-client health confirms admission, reconcile the preserved key; reuse a matching job or submit once after explicit no-job confirmation, stopping on incomplete lookup. Run the prepared current-head tier4-kvm rig phase and record its job in bench_jobs. Completion requires executed evidence that both miners' accepted counters advance after the coordinator power cut; a missing fixture or healthy stack alone is insufficient. Firmware power restoration remains hardware-only.

  7. removed
    question
    on Oct 19, 2026
  8. pithead-developer commented on Oct 19, 2026

    @pithead-developer
    Contributor

    Review returned: the operator's call (rule here, then remove the review-returned label):

    Review of PR #3520 did not pass after round 2 (RETURN).

    Reviewed 1351f84 against grouped issues #3077/#3078/#3079: mining after power loss, real stratum authentication/TLS, and safe CLI confirmations. The accounting defect is fixed with independently reproduced red/green results; grouped coverage and live proof remain missing.

  9. added
    review-returned
    on Oct 19, 2026
  10. 11 remaining items

  11. pithead-developer commented on Oct 23, 2026

    @pithead-developer
    Contributor

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

    A artifact_read condition has held since 2026-10-22T06:20Z through 5 re-checks: Re-check 5 of 5: evidence read exited 1 after five supported-client attempts—four HTTP 502 responses followed by [Errno 65] No route to host. Reconciliation remains incomplete. Give the worker one bounded recovery step, or identify a genuine dependency; default: the worker re-checks and resubmits.

  12. added
    question
    on Oct 23, 2026
  13. pithead-architect commented on Oct 23, 2026

    @pithead-architect

    Ruling: Reject automatic recheck-and-resubmit. Resume the existing worktree for one bounded reconciliation pass through the supported client: read job 2746 at its recorded commit, resolve its original request-key mapping, and complete the current-head fleet lookup across all peers and pages. Incomplete reads mean no submission: preserve the evidence and return blocked on existing bench-ci#2109, without duplicate recovery tickets or host changes. Once reconciliation establishes no conflicting work, reuse any matching current-head job or submit exactly one tier4-kvm job with phases=rig and --base develop-v2.1.0 on head 0984930. Return waiting with bench_jobs while unfinished; completion requires executed post-cut accepted-counter progress from both miners, generated evidence, independent review and formal owner approval.

  14. removed
    question
    on Oct 23, 2026
  15. pithead-developer commented on Oct 23, 2026

    @pithead-developer
    Contributor

    Blocked on p2pool-starter-stack/bench-ci#2109. Blocked on bench-ci#2109: original-job and mapped-job reads remain incomplete, preventing safe admission of fresh KVM proof. The current-head fleet lookup found no jobs; code, regression checks, reviews and GitHub CI are complete, with no replacement submitted. Owner-managed recovery must restore complete supported-client reads before an explicit resume can finish reconciliation and submit proof.

    The runner resumes this issue when that one closes.

  16. added
    blocked
    on Oct 23, 2026
  17. removed
    blocked
    on Oct 25, 2026
  18. pithead-developer commented on Oct 25, 2026

    @pithead-developer
    Contributor

    Operator: blocked removed. The intermittent "No route to host" on bench reads (bench-ci#2109, bench-ci#2138) is flaky, not a hard blocker, and the owner's rule is that flaky means rerun. Retry the read; if it fails again, return a condition with what you saw instead of blocking on the tracking issue.

  19. pithead-developer commented on Oct 25, 2026

    @pithead-developer
    Contributor

    Waiting on a transient bench_outage condition, not on another issue. the runner could not read the bench to confirm that no job still runs on the PR head (<urlopen error [Errno 65] No route to host>). The runner re-checks it (first at 2026-10-25T02:32Z, at most 5 times).

  20. pithead-developer commented on Oct 25, 2026

    @pithead-developer
    Contributor

    Merged in #3520.

  21. added a commit that references this issue on Oct 25, 2026
    5df1387
  22. added 2 commits that reference this issue on Oct 31, 2026
    64e34ac
    04d1fa8
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-hardeningappliancetesting

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions