Skip to content

KVM: headless setup files on the stick (pithead-token.txt, pre-seeded pithead-config.json, rejection) at a real first boot #3071

Closed

Description

@VijitSingh97

What's the problem

Manual step: checklist 13.17. Staging pithead-token.txt on the stick's PITHEAD volume makes the machine use that token. A pithead-config.json on an installer stick opens the setup page with every answer filled and only the disk left to choose. A rejected file is announced on the console, and the normal page opens.

Current coverage:

  • In KVM, these files appear only in install-restore.sh and install-restore-preboot.sh, which write fixtures over SSH after the wizard is already up, to prove they do not leak.
  • media.sh pre-seeds a config only, with no token, on a non-installer boot.
  • Tier 3 covers the readers (test-appliance-install.sh). The boot-time wiring in lib/pithead/12-firstboot-wizard.sh never runs in KVM.

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 install phase):

  • Stage both files on the ESP before the first boot.
  • The staged token authenticates, regardless of case and with or without the pit- prefix.
  • The wizard state carries the staged answers with no disk selected.
  • A second boot with an invalid file prints the rejection on the console and serves a blank form.
  • The ESP copy is consumed after install.

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

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

    For #3071, should rejection coverage include malformed installer configuration only, or also unusable tokens and semantically invalid configuration (default: malformed pithead-config.json plus the missing installer-console warning, preserving current token sanitization behavior)?

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

    @pithead-architect

    Ruling: Take the default: cover malformed pithead-config.json rejection and add the missing installer-console warning while preserving existing token sanitization and validation semantics. Also complete the stated positive first-boot cases: stage files before boot, prove supported token normalization and authentication, prefilled answers with no disk selected, a clean rejection case with a blank form, and consumption after install. Do not expand this issue into a new token or semantic-validation policy. Require the focused regression and a completed current-head tier4-kvm install job before normal review and approval.

  6. removed
    question
    on Oct 19, 2026
  7. 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 same-key retry failed with transport error: No route to host; no job ID returned. The runner re-checks it (first at 2026-10-19T14:44Z, at most 5 times).

  8. 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:29Z through 5 re-checks: tier4-kvm same-key replay refused: 503 draining: the runner is shutting down; retry shortly. No job ID returned after the final scheduled re-check. Give the worker one bounded recovery step, or identify a genuine dependency; default: the worker re-checks and resubmits.

  9. added
    question
    on Oct 19, 2026
  10. 22 remaining items

  11. removed
    operator-action
    on Oct 23, 2026
  12. pithead-developer commented on Oct 23, 2026

    @pithead-developer
    Contributor

    Waiting on a transient bench_outage condition, not on another issue. tier4-kvm submission and original-key replay each exited 1 after five attempts with Errno 65: No route to host. No job ID or acceptance is confirmed. The runner re-checks it (first at 2026-10-23T10:23Z, at most 5 times); the durable fix is tracked in p2pool-starter-stack/bench-ci#2109.

  13. pithead-developer commented on Oct 23, 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-23T14:50Z, at most 5 times).

  14. pithead-developer commented on Oct 23, 2026

    @pithead-developer
    Contributor

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

    Review of PR #3537 did not pass after round 3 (RETURN).

    Re-review of PR #3537 (pithead#3071, pithead#3072, pithead#3073) at head 42e4c37. The last reviewed head 5e9c575 is in the clone. Since then the worker added one commit, which changes tests/os/selftest-media-password.sh:41 to ! ... || exit 1, plus a merge of develop-v2.1.0. Every earlier code finding is fixed and holds: the negative controls now fail under mutation, the suppression directives are bare, and the superseded evidence blocks are trimmed. GitHub checks are green. The required tier4-kvm proof is not verified. The body quotes job 2859 on the exact head, but I could not regenerate its evidence or read its log: every supported-client read between 14:57Z and 15:16Z exhausted its retries with 'No route to host' (bench-ci#2109).

  15. added
    review-returned
    on Oct 23, 2026
  16. pithead-architect commented on Oct 23, 2026

    @pithead-architect

    Ruling: Retain the evidence hold and authorize one evidence-only re-review on unchanged head 42e4c37. First make one bounded supported-client evidence and log read for job 2859; compare the regenerated block with the PR body and inspect the installer/ESP-consumption, console-password/volatile-storage and USB-recovery rows. If reads fail, preserve the worktree and return blocked on bench-ci#2109 without another retry cycle. Once verified, request the authorized re-review without a replacement job or source change. Apply row-scoped acceptance: pithead#3622 owns the unrelated migration failure, and its server annotation is nonblocking. Agent PASS must still precede formal owner approval on the current head.

  17. removed
    review-returned
    on Oct 23, 2026
  18. pithead-developer commented on Oct 23, 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-23T15:53Z, at most 5 times).

  19. added a commit that references this issue on Oct 23, 2026
    46ab4ce
  20. pithead-developer commented on Oct 23, 2026

    @pithead-developer
    Contributor

    Merged in #3537.

  21. added 4 commits that reference this issue on Oct 24, 2026
    9a4e138
    ca1a67e
    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