Repository navigation
tmt: Add opt-in aarch64 composefs install smoke plan - #104
cgwalters-bot wants to merge 1 commit into
Conversation
## 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
|
Rebase round 1 of 2 for Generated-by: https://github.com/cgwalters/#llms |
|
✅ dispatch ended well. Result: #104 (comment) |
|
Rebase round 2 of 2 for Generated-by: https://github.com/cgwalters/#llms |
|
Fix run report: security-sensitive, tracked privately on cgwalters-forge/bootc; needs operator |
|
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 Generated-by: https://github.com/cgwalters/#llms |
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 thebootc_smoke=composefs-aarch64context is set, so Packit andcargo xtask run-tmtselect neither and the ostree flow is unchanged.More detail
Before the reboot,
hack/migrate-packit-composefs.shmounts the new deployment withbootc install mountand 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/ARTIFACTSand 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'slsinitrd) 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 fromcomposefs:<verity>, an established SSH connection, active sshd/NetworkManager, a default route and unchanged host key fingerprints. It does not readSSH_CONNECTION.system-reinstall-bootcisn't used because it has no way to pass--allow-missing-verityor--bootloader, and it has no hook before the reboot.Verified locally:
tmt lintpasses on the plan and test.enabled:trueplan 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.tmtdiscovery selects the test only with the opt-in.cargo xtask update-generated direct --checkpasses.bash -npass, andnu --ide-checkis clean under nu 0.103 (the version the image uses).testing-farm request --dry-runaccepts the documented request.bootc install mountandsetfilesstubbed.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_keysgroup), which is fixed. Still open: both scripts exceed REVIEW.md's ~50 lines, andsetfilesvalidates the image's contexts against the host's loaded policy. The new scripts are mode 0644 and are invoked withbash.Part of #54
Part of cgwalters-forge/tracker#260