zos_server: map GridError variants to human-readable deploy messages #115
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_compute#115
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
When a TFGrid deploy fails,
deploy_vm's background task surfaces the rawGridErrorviavm_log_fail(crates/my_compute_zos_server/src/cloud/rpc.rs:693-704). For most failures the user sees:…which gives no hint about why (capacity, placement, contract, network, node offline, etc.).
PR #113 handles the most common cause (insufficient capacity) by failing fast before submitting the contract. But other on-chain failures still surface as this opaque string.
Proposed fix
In
grid_driver(or where theGridErroris converted to a log line), match commonGridErrorvariants and emit clearer messages, e.g.:Fall back to the raw error for unmapped variants. Keep the mapping in one place so it's reusable by both the sync and async paths.
Context
Low priority polish. Diagnosed alongside PR #113 and the slice-carving issue.