deploy_webgateway returns Ok before substrate ack — D-27 incomplete (same race #119/#120 fixed for deploy_vm/delete_vm) #126
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#126
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?
deploy_webgatewayatcrates/my_compute_zos_server/src/cloud/rpc.rs:2146-2322spawns the on-chain deploy intokio::task::spawnand returnsOkimmediately, violating D-27. The error arm flips the local row toErrorbut does not callrollback_orphans, so when the spawned task fails after substrate has minted the deployment + name contracts, both leak on chain. Name contracts are global per twin on TFChain, so a leak burns the requested name until the operator manually cancels it.Same race that hero_compute#119 + #120 closed for
deploy_vm+delete_vm. Fix follows the same pattern: inlineblock_on_async(timeout(300s, ...))around the deploy future, withrollback_orphansonErr/Elapsedand inlinecancel_on_tfgridon the save-after-substrate failure path.Caught during admin-on-TFGrid planning.