Skip to content

tmt: Add opt-in aarch64 composefs install smoke plan - #104

Draft
cgwalters-bot wants to merge 1 commit into
cgwalters-forge:mainfrom
cgwalters-bot:dispatch/implement/agent-run-42261740404
Draft

cgwalters-bot wants to merge 1 commit into
cgwalters-forge:mainfrom
cgwalters-bot:dispatch/implement/agent-run-42261740404

Conversation

@cgwalters-bot

Copy link
Copy Markdown
Collaborator

Executive summary

CI only covers the composefs backend on x86_64. This adds a Testing Farm plan that turns a package-mode CentOS Stream 10 aarch64 guest into a composefs GRUB/BLS system with bootc install to-existing-root --composefs-backend --allow-missing-verity, reboots it, and checks the booted system. The plan and its test are both disabled unless the bootc_smoke=composefs-aarch64 context is set, so Packit and cargo xtask run-tmt select neither and the ostree flow is unchanged.

More detail

Before the reboot, hack/migrate-packit-composefs.sh mounts the new deployment with bootc install mount and carries over what tmt needs to reconnect and continue: SSH host keys (normalized to root 0600), NetworkManager connections, the hostname, cloud-init state (so cloud-init doesn't regenerate keys or network config), /var/ARTIFACTS and the tmt helpers. It then relabels with the deployment's own policy and unmounts. Private files are never printed. The preflight fails before anything destructive happens unless the guest is UEFI with an ESP, both kernels support EROFS and overlayfs, the initramfs (inspected with the host's lsinitrd) has the bootc module, and the image has sshd/NetworkManager enabled plus rsync, nu and bootc. The booted check requires a changed boot ID, aarch64, a composefs/BLS/GRUB status, / sourced from composefs:<verity>, an established SSH connection, active sshd/NetworkManager, a default route and unchanged host key fingerprints. It does not read SSH_CONNECTION. system-reinstall-bootc isn't used because it has no way to pass --allow-missing-verity or --bootloader, and it has no hook before the reboot.

Verified locally:

  • tmt lint passes on the plan and test.
  • The enabled:true plan and test lists match main in the default, CS10 aarch64 and image_mode contexts. With the opt-in, exactly this plan and test are added.
  • Real tmt discovery selects the test only with the opt-in.
  • cargo xtask update-generated direct --check passes.
  • shellcheck and bash -n pass, and nu --ide-check is clean under nu 0.103 (the version the image uses).
  • testing-farm request --dry-run accepts the documented request.
  • The migration script ran in a container against a fake host and deployment, with bootc install mount and setfiles stubbed.

This has not run on a guest. No Testing Farm token or fork CI was available to this run, so aarch64 composefs coverage is not established until a linked passing run of the request in tmt/README.md exists. Keep this draft until then.

Review: two passes. The first found one blocker (copied host keys could keep a mismatched ssh_keys group), which is fixed. Still open: both scripts exceed REVIEW.md's ~50 lines, and setfiles validates the image's contexts against the host's loaded policy. The new scripts are mode 0644 and are invoked with bash.

Part of #54
Part of cgwalters-forge/tracker#260

Generated by dispatch · ◷

## Executive summary

CI only covers the composefs backend on x86_64. This adds a Testing Farm plan that turns a package-mode CentOS Stream 10 aarch64 guest into a composefs GRUB/BLS system with `bootc install to-existing-root --composefs-backend --allow-missing-verity`, reboots it, and checks the booted system. The plan and its test are both disabled unless the `bootc_smoke=composefs-aarch64` context is set, so Packit and `cargo xtask run-tmt` select neither and the ostree flow is unchanged.

## More detail

Before the reboot, `hack/migrate-packit-composefs.sh` mounts the new deployment with `bootc install mount` and carries over what tmt needs to reconnect and continue: SSH host keys (normalized to root 0600), NetworkManager connections, the hostname, cloud-init state (so cloud-init doesn't regenerate keys or network config), `/var/ARTIFACTS` and the tmt helpers. It then relabels with the deployment's own policy and unmounts. Private files are never printed. The preflight fails before anything destructive happens unless the guest is UEFI with an ESP, both kernels support EROFS and overlayfs, the initramfs (inspected with the host's `lsinitrd`) has the bootc module, and the image has sshd/NetworkManager enabled plus rsync, nu and bootc. The booted check requires a changed boot ID, aarch64, a composefs/BLS/GRUB status, `/` sourced from `composefs:<verity>`, an established SSH connection, active sshd/NetworkManager, a default route and unchanged host key fingerprints. It does not read `SSH_CONNECTION`. `system-reinstall-bootc` isn't used because it has no way to pass `--allow-missing-verity` or `--bootloader`, and it has no hook before the reboot.

Verified locally:
- `tmt lint` passes on the plan and test.
- The `enabled:true` plan and test lists match main in the default, CS10 aarch64 and image_mode contexts. With the opt-in, exactly this plan and test are added.
- Real `tmt` discovery selects the test only with the opt-in.
- `cargo xtask update-generated direct --check` passes.
- shellcheck and `bash -n` pass, and `nu --ide-check` is clean under nu 0.103 (the version the image uses).
- `testing-farm request --dry-run` accepts the documented request.
- The migration script ran in a container against a fake host and deployment, with `bootc install mount` and `setfiles` stubbed.

**This has not run on a guest.** No Testing Farm token or fork CI was available to this run, so aarch64 composefs coverage is not established until a linked passing run of the request in tmt/README.md exists. Keep this draft until then.

Review: two passes. The first found one blocker (copied host keys could keep a mismatched `ssh_keys` group), which is fixed. Still open: both scripts exceed REVIEW.md's ~50 lines, and `setfiles` validates the image's contexts against the host's loaded policy. The new scripts are mode 0644 and are invoked with `bash`.

Part of bootc-dev#54
Part of cgwalters-forge/tracker#260

Generated-by: https://github.com/cgwalters/#llms
@cgwalters-bot

cgwalters-bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Collaborator Author

Rebase round 1 of 2 for 4c51e7955078: run.

Generated-by: https://github.com/cgwalters/#llms

@cgwalters-bot

cgwalters-bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Collaborator Author

✅ dispatch ended well. Result: #104 (comment)

@cgwalters-bot

cgwalters-bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Collaborator Author

Rebase round 2 of 2 for 4c51e7955078: run.

Generated-by: https://github.com/cgwalters/#llms

@cgwalters-bot

Copy link
Copy Markdown
Collaborator Author

Fix run report:

security-sensitive, tracked privately on cgwalters-forge/bootc; needs operator

{"schema":"agent-board/recommendation/v1","pr":104,"head":"4c51e79550784f25addbd2bb5b9e68f35501eb2f","action":"operator_question","reason":"security-sensitive, tracked privately on cgwalters-forge/bootc; needs operator","detail":{}}

Generated by dispatch · ◷

@cgwalters-bot cgwalters-bot added the needs-human The poll stopped here; a person decides what is next label Dec 2, 2026
@cgwalters-bot

Copy link
Copy Markdown
Collaborator Author

The poll stopped following this pull request: rebase round 2 is blocked: its run https://github.com/cgwalters-forge/tracker/actions/runs/46782049346 ended (success) and pushed no new head for 4c51e79 (conflicts with main). It is labelled needs-human; remove the label to have the poll start again on it, with fresh fix rounds.

Generated-by: https://github.com/cgwalters/#llms

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-human The poll stopped here; a person decides what is next

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant