Skip to content

el boxes: live check that the IPv6 addresses survive the route - #98

Merged
TusanHomichi merged 2 commits into
mainfrom
claude/project-thread-qturuz
Oct 14, 2026
Merged

TusanHomichi merged 2 commits into
mainfrom
claude/project-thread-qturuz

Conversation

@TusanHomichi

Copy link
Copy Markdown
Member

What this adds

Route: none. This adds a VM-tier live check to boxes el/centos5-web, el/centos7-lamp and el/centos8-lamp.
New fixes: none.
Claims issue: none. It is a follow-up from #92's real-VM proof.

Before: the VM harness compares only IPv4 addresses, the default route and resolvers across boots. These three boxes run with IPv6 on. If a route changed their IPv6 address, the run would still pass. That can happen when the ifcfg profile becomes a keyfile and stable-privacy replaces EUI-64.

After: a new [vm].live check, ipv6, records the box's global and site-scope IPv6 addresses the first time it runs and fails on any later boot where they differ.

  • It covers both scopes because QEMU user networking hands out fec0::/64, which is site scope.
  • Temporary, deprecated and tentative addresses are ignored, and it retries for up to a minute while SLAAC settles.
  • It also fails when the box has no such address at all.
  • The record lives at /var/lib/wend/check-ipv6 in the guest.

Also: tools/test_grub.py no longer has its fake rpm own the running kernel. In a real hop, kernel_before[0] has already dropped that kernel's record, so the test now exercises the cleanup's running-kernel exclusion. This was a reviewer nit from #97.

Model

claude-code / opus 5.5 (agent), hand-written

Evidence

No route×box pair is affected: [vm].live only runs on the VM tier. wend check is ok and tools/test_grub.py passes 3/3. I ran the check under bash and dash against a stubbed ip covering four cases: the first run records, the same address passes, a changed address fails and prints both, and no global or site address fails. The real-VM proof is pending: remi runs centos7-lamp → Alma 10 on this head.

Self-review (AGENTS.md step 5)

  • Every precondition is as narrow as I can make it, and ./wend verify found no decoy hits (no fixes changed)
  • Every fix fixes the real problem, not the symptom a check inspects
  • One problem per fix; load-bearing steps (like repair) kept
  • No edits to tools/, adapters/, SPEC.md, .github/, other boxes' roles, or other people's fixes (except fires_on). Maintainer work: it adds to [vm].live only, leaves [roles] untouched, and touches one test in tools/.
  • Commits are signed off (git commit -s)

🤖 Generated with Claude Code

https://claude.ai/code/session_01U79sdXK2gVuGi4U9ty7qHc


Generated by Claude Code

centos5-web, centos7-lamp and centos8-lamp run with IPv6 on. The
harness compares only IPv4 addresses, routes and resolvers across
boots, so an address change (stable-privacy replacing EUI-64 when the
ifcfg profile becomes a keyfile) would have passed unnoticed. The new
[vm].live ipv6 check records the global and site-scope addresses (QEMU
user networking hands out fec0::/64, site scope) the first time it
runs and fails on any later boot where they differ.

test_grub.py: the running kernel is no longer owned by the fake rpm, as
in a real hop, so the test exercises its exclusion.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01U79sdXK2gVuGi4U9ty7qHc
Signed-off-by: Claude <[email protected]>
(cherry picked from commit 92ff5f8dda07f262fb18ecc3a9d325f83893e482)
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-14T14:44:10.122140Z 6fb8774 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Copy link
Copy Markdown
Member Author

Independent review of head 6fb8774: signed off, nothing blocking.

  • Shell: $( ( has its space, so bash 3.2 and dash read it as a command substitution, not arithmetic. I fed old- and new-style ip -o -6 addr lines through sh and bash. Address and scope sit at $4/$6 in both, and lines with flags after the scope (dynamic, noprefixroute, temporary) parse correctly. Loopback, link-local and temporary addresses are excluded. iproute2 has always printed scope 200 as site, and kernels from 2.6.18 on still classify fec0::/10 as site scope, so CentOS 5 reports the slirp address as site.
  • Recording design: the base-image cache key in tools/vm.py build() hashes box.toml, so this change triggers a rebuild. The first record is then written by the check at vm.py:580, after the base's first reboot, and the disk is made read-only with the file in it. Every later run, hop, prune and relocate overlays that base. The MAC is fixed (52:54:00:12:34:56) and slirp's prefix is fixed, so the addresses match the record. A cached base can't carry a stale record, and nothing in the repo removes /var/lib/wend. If the build can't see a global or site address, it fails. That shows IPv6 really is on in each box.
  • Masking: if an address change makes the check fail, the record isn't rewritten. checks() reports that change as lost on the hop where it happens. Later hops don't report it again, which is how every live check works.
  • test_grub.py: passes. As a mutation test, I removed "$R"| from the exclusion in kernel_before[1] and the test fails, deleting the running kernel's entry. With the old fake rpm, which owned the running kernel, the same mutant would have passed. So the test now exercises the exclusion.
  • python3 -B tools/test_grub.py: all passed. python3 tools/check.py: 68 fixes, 5 routes, 10 boxes, 81 runs: ok.

Minor point, not blocking: sort runs under whatever locale the ssh session gets. With more than one address, two releases with different collation could order the lines differently. LC_ALL=C sort would rule that out. With one slirp address it doesn't matter.


Generated by Claude Code

Two releases' locales could order several addresses differently and
read as a change (review).

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01U79sdXK2gVuGi4U9ty7qHc
Signed-off-by: Claude <[email protected]>

Copy link
Copy Markdown
Member Author

Re-review at head 209b7a8: signed off.

The diff from 6fb8774 adds one thing: LC_ALL=C before the sort in the ipv6 check of centos5-web, centos7-lamp and centos8-lamp. That makes the recorded address list sort the same way on every release. python3 tools/check.py passes (68 fixes, 5 routes, 10 boxes, 81 runs: ok), and so does python3 -B tools/test_grub.py. My review of 6fb8774 above still applies.


Generated by Claude Code

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6fb8774d0e

ℹ️ 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".

Comment thread boxes/el/centos8-lamp/box.toml Resolved
@github-actions github-actions Bot added the needs-claude-review Waiting on the Claude review layer label Oct 14, 2026
@TusanHomichi
TusanHomichi merged commit 49f1912 into main Oct 14, 2026
9 checks passed
@TusanHomichi
TusanHomichi deleted the claude/project-thread-qturuz branch October 14, 2026 15:56
TusanHomichi pushed a commit that referenced this pull request Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-claude-review Waiting on the Claude review layer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants