Skip to content

docs(lab): record template 901 rebuilt; smoke-test for a leftover packer user - #1571

Merged
Gerrrt merged 2 commits into
mainfrom
docs/template-901-rebuilt
Nov 18, 2026
Merged

Gerrrt merged 2 commits into
mainfrom
docs/template-901-rebuilt

Conversation

@Gerrrt

@Gerrrt Gerrrt commented Nov 18, 2026

Copy link
Copy Markdown
Owner

What changed

  • docs/changelog.md: a 2026-11-18 entry recording that template 901 was rebuilt on phoenix with no-initramfs-network.sh (feat(packer): build 901 without networking in its initramfs #1569) and that scripts/packer-smoke.sh 901 passed, no DHCP before switch-root among its checks. It completes the earlier same-day eden entry, which said 901 had not been rebuilt.
  • scripts/packer-smoke.sh: the Linux branch now fails a clone that still has a packer user. It runs getent passwd packer over SSH as smoke, which needs no sudo; exit 2 passes, 0 fails, anything else fails as "could not check".
  • docs/runbooks/build-the-lab-templates.md §6: the smoke paragraph names the new check.

Why

The rebuild's last provisioner printed userdel: user packer is currently used by process 1392. With -f that is only a warning, and the mail-spool line after it shows the delete went on. But the step ends in || true, so a failed delete would not fail the build, and nothing checked afterwards. Every ISO-built Linux template uses the same step.

Blast radius

  • The smoke script only: one more SSH call per Linux clone. A template whose build user has another name (Gentoo's is gentoo) passes the check trivially.
  • No template, guest or stack changes. Guests cloned from the old 901 keep their old initramfs; eden, the one the lease check found, already has its §2 step.

Verification

  • The rebuild: packer build -force -only='ubuntu.*' packer/ on phoenix, 24 min 31 s. no-initramfs-network.sh rebuilt 1 image (7.0.0-43) and its lsinitrd check passed. scripts/packer-smoke.sh 901 passed every check.
  • The new check has not been run against a real clone yet; the next packer-smoke.sh 901 exercises it.
  • Locally: bash -n and shellcheck pass on the script, and check_docs.py passes. lint.sh on the Mac passes yamllint, shellcheck, ruff and actionlint (local binaries, not the pinned ones) and skips everything that needs a docker daemon (markdownlint-cli2, zizmor, packer, tofu, editorconfig-checker), and ansible-lint fails on the Mac's runner (--pip-args has no uv tool run equivalent), which is environmental and unrelated: this PR touches no Ansible. CI runs them all.

Refs #1569

🤖 Generated with Claude Code

…ker user

901 was rebuilt with no-initramfs-network.sh and packer-smoke.sh 901
passed, no DHCP before switch-root included. The rebuild's userdel
printed a busy warning that -f goes past, but `|| true` would hide a
failed delete, so the smoke test now fails a Linux clone that still has
a packer user.

Refs #1569

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings November 18, 2026 17:10

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

An SSH failure terminates the smoke-test script before it can report the cause, while discarded stderr leaves the operator without a useful diagnostic.

1 open issue
What changed in this PR

Records template 901’s completed rebuild after the initramfs networking fix and strengthens Linux template smoke validation.

Changes:

  • Adds a check that rejects Linux clones retaining the packer build account.
  • Records the rebuild and successful existing smoke checks, including no DHCP before switch-root.
  • Documents the new account check, which has not yet been exercised against a real clone.
File Description
scripts/​packer-smoke.sh Checks Linux clones for a leftover packer account.
docs/​runbooks/​build-the-lab-templates.md Explains the added smoke-test check.
docs/​changelog.md Records the template rebuild, verification, and cleanup check.

Review effort: Balanced

Comment thread scripts/packer-smoke.sh Resolved
@Gerrrt
Gerrrt enabled auto-merge (squash) November 18, 2026 18:02
Under set -e a failed x="$(ssh … 2>/dev/null)" ended the script with
nothing printed. The packer-user, early-DHCP and Panther checks now go
through ssh_run, which prints ssh's stderr and the exit status before
it dies.

Refs #1569

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Gerrrt
Gerrrt merged commit dc1456b into main Nov 18, 2026
9 checks passed
@Gerrrt
Gerrrt deleted the docs/template-901-rebuilt branch November 18, 2026 18:12
@Gerrrt Gerrrt mentioned this pull request Nov 19, 2026
3 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants