Marketplace integration: need dev explorer endpoint for testing #48
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#48
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?
Context
The Mycelium Marketplace (mycelium_code/home#51) has integrated hero_compute via a lightweight TCP JSON-RPC client. The code calls the explorer for:
ExplorerService.node_list/node_get/node_searchExplorerService.deploy_vm/start_vm/stop_vm/delete_vmExplorerService.list_slices/list_vms/get_vmRequest
We need a hero_compute_explorer instance running with
--tcp_portso the marketplace backend can connect remotely.On this machine,
hero_compute_serverandhero_compute_uiare running (root PIDs) but the explorer is not started. Would it be possible to:hero_compute_explorer --tcp_port 9003(or any port) in master modeHERO_COMPUTE_EXPLORER_ADDRESSat itOr if there's already an explorer running somewhere, let us know the address.
Our integration code
src/services/impl_compute/compute_client.rs— TCP JSON-RPC client (20 typed methods)src/services/impl_compute/slice_rental_manager.rs— deploys real VMs on slice rentalAPP_COMPUTE_BACKEND=compute+HERO_COMPUTE_EXPLORER_ADDRESS=host:port— mik-tf
Resolved — deployed hero_compute on marketplace dev VM
We installed and configured hero_compute directly on the dev VM (TFGrid, KVM available):
Node registered:
devpmmarketplace— 1 slice (4GB RAM, 100GB disk), status online.Marketplace backend now connects to
172.17.0.1:9002(Docker host gateway → explorer TCP). Startup log:No external explorer needed — we run everything on the same VM.
Note: had to use my_hypervisor v0.1.4 (v0.1.2 had old binary name
chvm). The configure.sh script defaults to v0.1.2 — may want to bump to v0.1.4.— mik-tf
Update: VM deployment tested end-to-end
We deployed a VM through the explorer and it worked through the full pipeline:
The pipeline works (slice allocation, provisioning job, logging, error handling). The failure is an image resolution issue —
ubuntu-24.04resolves to Docker Hub instead of the hero_compute registry atforge.ourworld.tf/lhumina_code/hero_compute_registry/ubuntu-24.04:latest.Minor bugs found during setup
configure.sh defaults to my_hypervisor v0.1.2 — that release has old binary names (
chvminstead ofmy_hypervisor). Download fails. Fix: bump default to v0.1.4Image name resolution —
deploy_vmwithimage: "ubuntu-24.04"tries Docker Hub. Thelist_images()response shows the full reference (forge.ourworld.tf/...) but the deploy doesn't prefix it. Either:Explorer heartbeat in master mode — when running
--start --mode master, the local server doesn't auto-send heartbeats to the co-located explorer. We had to send them manually. In local/single-node mode, the explorer sees the node via Unix socket, but marks it offline after a few minutes.None of these are blockers — the architecture works. Closing this issue since we have a working explorer.
— mik-tf