Skip to content

fix(host,vm,up): detect legacy hanzod chain binary, preflight cloud-hypervisor vs /dev/kvm, non-fatal hanzod handoff - #90

Merged
zeekay merged 1 commit into
mainfrom
fix/hanzod-and-vm-host-ux
Nov 25, 2026
Merged

zeekay merged 1 commit into
mainfrom
fix/hanzod-and-vm-host-ux

Conversation

@zeekay

@zeekay zeekay commented Nov 25, 2026

Copy link
Copy Markdown
Member

Summary

Fixes the 3 local-dev pain points encountered during hanzo up / make start:

  1. Stale L1 validator hanzod detection & log tail (src/commands/host.rs): Probes hanzod --version before spawn and scans hanzod.log tail on exit/timeout to flag legacy chain-validator binaries (--committee / no validators / <=0.2.5) with exact upgrade instructions (hanzo upgrade hanzod) and embeds the last 8 lines of hanzod.log directly in errors.
  2. Linux x86-64 cloud-hypervisor vs /dev/kvm preflight (src/commands/vm.rs): Checks /dev/kvm and cloud-hypervisor separately before spawning hanzo-vm so missing cloud-hypervisor never reports misleading Virtualization is not enabled on this machine.
  3. Graceful hanzo up handoff (src/commands/up.rs): When k3s is already up and healthy, a failed hanzod upstream registration prints a clear warning + fix command while still displaying KUBECONFIG and the direct http://127.0.0.1:36930 endpoint.

Verification

  • cargo test --bin hanzo commands::{host,vm,up}::tests — 38/38 PASS (also verified under read-only HOME)
  • cargo check --all-targets & cargo clippy --locked --all-targets -- -D warnings — 0 warnings

…KVM/cloud-hypervisor, and keep k3s usable when hanzod fails
@zeekay
zeekay merged commit 0f6886c into main Nov 25, 2026
1 check passed
@zeekay
zeekay deleted the fix/hanzod-and-vm-host-ux branch November 25, 2026 04:22
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.

1 participant