Repository navigation
vm: XFS v4 on LVM with an empty extra disk, and relocate onto it - #72
Conversation
fc81471 to
88e3552
Compare
|
Independent review: signed off at head b10ed4d. That covers 903a2ff, 88e3552 and b10ed4d. Diff reviewed: This review covers the code only. The VM proof ( What I checked:
Non-blocking nits:
Generated by Claude Code |
|
Follow-up sign-off at head ca58800. This extends the earlier sign-off at b10ed4d. I reviewed the changes since b10ed4d (
I checked the stub's fallback in grub-emu. I extracted the exact stub from the flip script (only
grub-emu here is GRUB 2.12, not EL7's 2.02
As before, this review covers the code only. The VM proof is waiting on remi. The one leftover nit is cosmetic: when a kernel is dropped from the copy, its package stays installed there. Generated by Claude Code |
|
Follow-up sign-off at head 02835c3. Since ca58800 (the head remi ran), two things changed: QEMU's monitor socket path, and the preflight's
As before, this review covers the code only. The VM proof is pending a rerun on remi. Generated by Claude Code |
02835c3 to
9d49758
Compare
Relocate VM proof (BIOS): PASS at 02835c3remi ran Box:
Nothing was forced, no checks were lost, and the network was kept at every stage. The new root uses 1986 MiB. run.json says Run 1, at ca58800, found two bugs, both fixed before this run:
Since the proven head: the branch is rebased onto #71's a786be5, now head 9d49758. The Not proven here: UEFI, relocate followed by the route to Alma 10 (waits on #75 and the EL8+ BIOS Generated by Claude Code |
|
Sign-off on the rebased series at head 9d49758, on top of #71's a786be5. I reviewed
Generated by Claude Code |
…m, --root-fs, --extra-disk) The VM tier can now install centos7-lamp the way 7.0-7.2 media did (--root-fs xfs-v4 --lvm: a 500 MB /boot and a VG 'centos' with swap and a root that fills it) and give it an empty second disk for rebuild and carry (--extra-disk 30). Install choices, not boxes: a chroot box has no disks. Each layout is cached apart; extra disks get their own overlay every hop; runs record the layout and resume only a run with the same. The default layout keeps its cache key. Stacked on wend#71. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_017K4daGyJmuJf8k4B9HJ7yw Signed-off-by: Claude <[email protected]>
…ck, commit and roll back once (SPEC "Relocate") The adapter's [relocate] table holds the steps (preflight, GRUB refresh, place, copy, fixup, flip) as harness commands fixes can't reach; tools/vm.py relocate runs them on a fresh copy of a box and proves the one-shot trial, a hard reset back to the old root, commit and a one-shot rollback. tools/test_relocate.py checks preflight's refusals, the copy's fstab and kernel line, and the flip with the real grub-editenv. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_017K4daGyJmuJf8k4B9HJ7yw Signed-off-by: Claude <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_017K4daGyJmuJf8k4B9HJ7yw Signed-off-by: Claude <[email protected]>
…oes (parity) Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_017K4daGyJmuJf8k4B9HJ7yw Signed-off-by: Claude <[email protected]>
…l back to the old root, escape LV names (review) Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_017K4daGyJmuJf8k4B9HJ7yw Signed-off-by: Claude <[email protected]>
…ng the old config (review) Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_017K4daGyJmuJf8k4B9HJ7yw Signed-off-by: Claude <[email protected]>
…ws the 108-byte unix socket limit (remi's run) Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_017K4daGyJmuJf8k4B9HJ7yw Signed-off-by: Claude <[email protected]>
…ate tests parse and run in bash 4.2 (remi's run) Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_017K4daGyJmuJf8k4B9HJ7yw Signed-off-by: Claude <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_017K4daGyJmuJf8k4B9HJ7yw Signed-off-by: Claude <[email protected]>
9d49758 to
974b243
Compare
|
Claude review: signed off on 974b243 Re-checked head 974b243 after the rebase onto main's #71 merge (c3af630). Nothing was changed or pushed.
Generated by Claude Code |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 974b243e59
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Requested by Peter · project thread
This PR started stacked on #71. #71 is now merged, and this branch is rebased onto main (c3af630).
What this adds
Route: none. This PR changes the VM tier and adds relocate. Files:
tools/vm.py,adapters/el.toml[relocate],tools/check.pyandclient/src/check.rs, the SPEC "VM tier" section plus a new "Relocate" section, andtools/test_relocate.py. The test is wired intowend checkand into the client job, under EL7's bash 4.2.New fixes: none.
Claims issue: none. This is steps 2 and 4 of
docs/rebuild-and-carry.md, from #68.Before: the VM tier installed every EL box on one disk with plain partitions. It couldn't make the machine rebuild-and-carry is for (CentOS 7 from 7.0-7.2 media, XFS v4 on LVM). Nothing could move such a machine's root onto a filesystem EL10 can mount.
After:
tools/vm.py --root-fs xfs-v4 --lvm --extra-disk 30 build el/centos7-lampinstalls exactly that machine. The layout is anaconda's EL7 autopart:/boot, then one PV in VGcentosholdingswapand arootthat fills it. Next to it sits an empty 30 GB disk that anaconda never touches.tools/vm.py --root-fs xfs-v4 --lvm --extra-disk 30 relocate el/centos7-lampruns relocate on a fresh copy of the box:centos/wend-rooton the extra disk and flips the boot to it for one trial.How:
centos7-lamp-xfsv4box would just be a duplicate that every pinned fix fires on as a decoy.[relocate]table, as harness steps fixes can't reach: preflight, GRUB refresh, place, copy, fixup, flip, release and cleanup, plus the commands run between boots./bootthat isn't a plain partition, a/that isn't on LVM, LUKS, other v4 filesystems, a pending kernel, or yum running. It also refuses a disk that isn't whole, empty, unmounted, not a PV and big enough.grub2-install, before the copy./, in two passes. Services are stopped for the second pass, except sshd, NetworkManager, firewalld, auditd, dbus and systemd's own.rd.lvm.lv, then in a chroot of the copy rebuilds a non-host-only initramfs for each kernel and runsgrub2-mkconfig. Last, it fixes SELinux labels offline withsetfiles -r.grub.cfgon the old/boot, with its ownwend_defaultandwend_nextin grubenv. The stub saves and restoresrootandprefixfor the fallback entry. The old root stays the default, arming the trial is the flip's last write, andfsfreezefollows./devand mounts/procand/sys. That happens only inside the machine being relocated, never on a box on a harness host. All three are unmounted before the step ends and checked against mountinfo.Model
None: hand-written by Claude (claude-code).
Evidence
xfs_infoshowedcrc=0 ftype=0on/and/boot, on the LVM layout plus an empty 30 GB disk. That run used a 500 MiB/boot. vm: install EL7 boxes, choose the root filesystem, and boot guests on UEFI #71 has since made EL7's default 1 GiB. Relocate's size check measures what/bootuses, so nothing it relies on changed. The full write-up is in the comments here and on Routes don't test kernels, bootloaders or a real first boot #13.python3 wend checkpasses.tools/test_relocate.pypasses under both modern bash and EL7's bash 4.2. It covers:grub-editenvandgrub-script-check.Self-review (AGENTS.md step 5)
./wend verifyfound no decoy hits (no fixes)repair) kept (no fixes)git commit -s)🤖 Generated with Claude Code
https://claude.ai/code/session_017K4daGyJmuJf8k4B9HJ7yw