summaryrefslogtreecommitdiff
path: root/lib/hyperstack/watcher.rb
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-24 14:10:03 +0300
committerPaul Buetow <paul@buetow.org>2026-05-24 14:10:03 +0300
commitdffa66a331350fb7995bf93cff49b978a9288459 (patch)
tree02b96aaee904b5b64e70c2e4749202664dbaaa4d /lib/hyperstack/watcher.rb
parentc8bd4d1e7a34ebf452d3d6c843d5cef785abe608 (diff)
fix(watcher): show actionable error when VM not provisioned or SSH fails
Diffstat (limited to 'lib/hyperstack/watcher.rb')
-rw-r--r--lib/hyperstack/watcher.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/hyperstack/watcher.rb b/lib/hyperstack/watcher.rb
index 771aa1c..73dd6b7 100644
--- a/lib/hyperstack/watcher.rb
+++ b/lib/hyperstack/watcher.rb
@@ -76,7 +76,7 @@ module HyperstackVM
return VmSnapshot.new(label: label, wg_host: wg_host, service_type: :vllm,
vllm_model: nil, container_name: nil,
metrics: nil, gpus: nil,
- vllm_error: 'no state file', gpu_error: nil,
+ vllm_error: 'not yet provisioned — run create --vm 1', gpu_error: nil,
loading_status: nil, fetched_at: Time.now)
end
@@ -318,8 +318,8 @@ module HyperstackVM
lines << "#{BOLD}#{snap.label}#{RESET} #{DIM}#{snap.wg_host}#{RESET} #{model_label}"
# Both GPU and service stats come from the same SSH call; show one error if it failed.
- if snap.gpu_error
- lines << " #{RED}#{snap.gpu_error}#{RESET}"
+ if snap.vllm_error
+ lines << " #{RED}#{snap.vllm_error}#{RESET}"
else
snap.gpus&.each do |gpu|
mem_pct = gpu.mem_total_mib > 0 ? (gpu.mem_used_mib / gpu.mem_total_mib * 100.0) : 0.0