Skip to content

Stack battery: restore leaves pool at Mini instead of the backed-up Main #3857

Closed

Description

@pithead-developer

What's the problem

In the KVM stack battery, the lifecycle row restore reverts the pool to the backed-up value fails: after the restore the pool stays Mini where the backup says Main, and the harness reports the wrong sidechain rendered. The aggregate row DIY gate vs. appliance channel: lifecycle, fault-injection, hardening, auth-fail-closed (exit 1) fails with it.

What it impacts

The appliance stack gate on the develop-v2.1.0 line. Whether a real restore leaves the wrong sidechain is not established.

How I found it

tier4-kvm stack job 3342@0aaafbe958f6f6c038458159601c9623af56e06e (found while proving #3794). The log shows timed out after 420s waiting for pool type determinate (Main), then got [Mini], want [Main] and P2POOL_FLAGS disagree. I searched open issues for the row text and found no owner. I have one job only; recurrence is unknown.

How important is it

Medium: it turns a required gate red, with unknown product impact and no second observation yet.

Acceptance criteria

  • A current-head KVM stack job passes restore reverts the pool to the backed-up value, or the log shows the restore leaving a rendering that disagrees with the backup.
  • If a product defect is confirmed, a test reproduces it at the lowest tier.

Possible solutions

Read the retained stack log around the restore to separate a slow p2pool recreate (the 420s wait) from a restore that did not re-render the pool setting.

Activity

  1. pithead-developer commented on Nov 2, 2026

    @pithead-developer
    ContributorAuthor

    Blocked on #3794. Stack job 3358 failed before it reached the restore row, so the fix in draft PR #3860 is still unproven on the bench. The lifecycle phase stopped at CLI payout EOF aborts at both prompts... with TMPDIR: parameter null or not set, which is the defect tracked by #3794 (PR #3853, still a draft). The pool-switch and restore steps never ran. restore reverts the pool to the backed-up value is not among the failed rows. The other three red rows are the Tari-off preview rows owned by #3383. Done so far: the root-cause fix, updated selftests that pass locally, a clean verifier pass, and a PR comment with the unedited evidence block. Next step: once #3794 lands, merge develop-v2.1.0 into this branch and resubmit tier4-kvm with phases=stack.

    The runner resumes this issue when that one closes.

  2. added
    blocked
    on Nov 2, 2026
  3. removed
    blocked
    on Nov 2, 2026
  4. pithead-developer commented on Nov 2, 2026

    @pithead-developer
    ContributorAuthor

    Blocked on #3870. Stack job 3375 passed the payout EOF row after #3794 merged, but lifecycle then stopped at another row with no owner: fresh CLI defaults complete real setup (expected rc 0, got 1). That row runs before the pool-change and backup/restore section, so restore reverts the pool to the backed-up value still never ran. The setup command's output isn't retained in the artifacts, so the cause is unknown. I filed it as #3870 and commented on PR #3860 with the unedited evidence block. Done: the root-cause fix, updated selftests that pass locally, and a clean verifier pass. To clear the block, #3870 needs to be fixed. I'll then merge the base, resubmit tier4-kvm with phases=stack, and read the restore row. The other red rows, Tari-off preview (#3383) and compose guard refuses the unauthenticated proxy API (#153), are not mine; #153 has no linked open issue that I checked.

    The runner resumes this issue when that one closes.

  5. added
    blocked
    on Nov 2, 2026
  6. removed
    blocked
    on Nov 3, 2026
  7. pithead-developer commented on Nov 6, 2026

    @pithead-developer
    ContributorAuthor

    Waiting on a transient chain_sync condition, not on another issue. tier4-kvm 3401 completed with conclusion error at queue: environment: required shared node inputs/reservation unavailable after 14402s (sync_wait_seconds=14400); no image build started. The runner re-checks it (first at 2026-11-06T07:21Z, at most 5 times).

  8. pithead-developer commented on Nov 7, 2026

    @pithead-developer
    ContributorAuthor

    Merged in #3860.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions