Skip to content

fix(up): honor warm project configuration and report actual Cloud readiness - #114

Closed
zeekay wants to merge 6 commits into
mainfrom
fix/local-cloud-readiness-and-project-config
Closed

zeekay wants to merge 6 commits into
mainfrom
fix/local-cloud-readiness-and-project-config

Conversation

@zeekay

@zeekay zeekay commented Nov 27, 2026

Copy link
Copy Markdown
Member

Reported local startup pulled a 2.95 GB remote image for 36m57s, then logged readiness, scheduling and JetStream failures. Two independent CLI defects found on main: project config only resolves on cold boot; warm deployment/scale success and cold Ready-node are treated as Cloud readiness. Resolve config before warm reuse, honor strict-registry overrides, propagate kubeconfig/API failures instead of silently saying success, wait for the Deployment generation and ready/available replicas on cold and warm starts. Supervisor reports runtime-ready until application readiness succeeds. Adds pure regression tests for stale generation, missing replicas and strict-registry override. No storage migration, local image build/import, RBAC or production config changes in this PR; those are separate workstreams. Requires cargo fmt/test/clippy and real cold/warm VM smoke. No local runtime was exercised by this review.

zeekay added a commit that referenced this pull request Nov 28, 2026
…eadiness

- Quiesce k3s and workloads via control.sock Request::Stop (cordoning the node
  so Deployment.spec.replicas stays intact, draining pods so SQLite WAL and
  NATS JetStream flush cleanly, stopping k3s/containerd, and checkpointing the
  live ext4 disk via hanzo-vm stdio RPC to k3s-<ver>-state.ext4 via atomic
  staging rename so macOS clonefile never hits EEXIST).
- Resume from k3s-<ver>-state on hanzo start and hanzo up when present,
  clamping --disk-size to at least the saved ext4 image, uncordoning the node,
  preserving bound PVC size in GROUND, and keeping hanzo.local/* images and
  KMS secrets across stop/start without falling back to published images.
- Sweep ~/.hanzo/vm/instances/<vm_pid> on supervisor exit and signal fallback
  so 26-32 GiB transient disks never leak; wipe k3s-<ver>-state on hanzo reset.
- Reconcile PR #114 fixes: discover project hanzo.config.{json,ts} before warm
  reuse, treat --strict-registry as a warm workload override, plant registry
  pull secrets on warm/resumed clusters, separate runtime-ready from ready, and
  wait for Deployment generation + ready/available replicas.
@zeekay

zeekay commented Nov 28, 2026

Copy link
Copy Markdown
Member Author

Superseded by #119 (merged to main), which incorporates all warm project-config discovery (discover_app_manifest before warm reuse), --strict-registry warm override & pull-secret reconciliation, runtime-ready vs ready supervisor separation, Deployment generation + ready/available replica rollout gating (cloud_deployment_ready), and persistent microVM state checkpointing across hanzo stop / hanzo start.

@zeekay zeekay closed this Nov 28, 2026
@zeekay
zeekay deleted the fix/local-cloud-readiness-and-project-config branch November 28, 2026 04:39
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