Add a backend-agnostic command to restart the orchestrator #391
Reference in New Issue
Block a user
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
There's no first-class way to restart the per-host orchestrator / control plane. Today it's a manual, backend-specific dance:
python3 -c "from bot_bottle.backend.firecracker import infra_vm; infra_vm.stop()"then relaunch a bottle (orsupervise) to boot a fresh infra VM. Needed whenever orchestrator-side code changes, since the VM loads its control-plane code at boot and won't reload.OrchestratorService.ensure_running(), but there's no explicit "restart it now" command.This bit us repeatedly while iterating on the supervise HTTP bridge — every orchestrator-side change required remembering the right incantation for the current backend.
Proposal
Add a backend-agnostic CLI command, e.g.
./cli.py orchestrator restart(or under the existingbackendgroup). It should:infra_vm.stop(); docker:OrchestratorService().stop()).BottleBackend.ensure_orchestrator()(added in b1df380-adjacent work — commit2641ab7), printing the healthy control-plane URL.A
status/stoppair under the same group would round it out. The bring-up half already exists (ensure_orchestrator); this issue is mostly the stop half + CLI wiring + astop()on the backend base to mirrorensure_orchestrator().Context
Follows the supervise single-DB / HTTP-bridge work on
firecracker-consolidated-launch.