LocalAI/core/services/nodes
Russell Sim 02bb715c0a
fix(distributed): pass ExternalURI through NATS backend install (#9446)
When installing a backend with a custom OCI URI in distributed mode,
the URI was captured in ManagementOp.ExternalURI by the HTTP handler
but never forwarded to workers. BackendInstallRequest had no URI field,
so workers fell through to the gallery lookup and failed with
"no backend found with name <custom-name>".

Add URI/Name/Alias fields to BackendInstallRequest and thread them from
ManagementOp through DistributedBackendManager.InstallBackend() and the
RemoteUnloaderAdapter. On the worker side, route to InstallExternalBackend
when URI is set instead of InstallBackendFromGallery. Update all
remaining InstallBackend call sites (UpgradeBackend, reconciler
pending-op drain, router auto-install) to pass empty strings for the
new params.

Assisted-by: Claude Code:claude-sonnet-4-6

Signed-off-by: Russell Sim <rsl@simopolis.xyz>
2026-04-20 23:39:35 +02:00
..
distributed_store.go feat: add distributed mode (#9124) 2026-03-30 00:47:27 +02:00
distributed_store_test.go feat: add distributed mode (#9124) 2026-03-30 00:47:27 +02:00
file_stager.go feat: add distributed mode (#9124) 2026-03-30 00:47:27 +02:00
file_stager_http.go feat: track files being staged (#9275) 2026-04-08 14:33:58 +02:00
file_stager_s3.go feat: track files being staged (#9275) 2026-04-08 14:33:58 +02:00
file_staging_client.go feat: wire transcription for llama.cpp, add streaming support (#9353) 2026-04-14 16:13:40 +02:00
file_transfer_server.go feat(distributed): Avoid resending models to backend nodes (#9193) 2026-03-31 16:28:13 +02:00
file_transfer_server_test.go feat(distributed): Avoid resending models to backend nodes (#9193) 2026-03-31 16:28:13 +02:00
health.go chore(nodes): restore offline nodes too 2026-03-31 14:22:18 +00:00
health_mock_test.go feat: wire transcription for llama.cpp, add streaming support (#9353) 2026-04-14 16:13:40 +02:00
health_test.go feat: add distributed mode (#9124) 2026-03-30 00:47:27 +02:00
inflight.go feat: wire transcription for llama.cpp, add streaming support (#9353) 2026-04-14 16:13:40 +02:00
inflight_test.go feat: wire transcription for llama.cpp, add streaming support (#9353) 2026-04-14 16:13:40 +02:00
interfaces.go fix(autoscaling): extract load model from Route() and use as well when doing autoscale (#9270) 2026-04-08 08:27:51 +02:00
managers_distributed.go fix(distributed): pass ExternalURI through NATS backend install (#9446) 2026-04-20 23:39:35 +02:00
model_router.go feat: add distributed mode (#9124) 2026-03-30 00:47:27 +02:00
model_router_test.go fix(autoscaling): extract load model from Route() and use as well when doing autoscale (#9270) 2026-04-08 08:27:51 +02:00
nodes_suite_test.go feat: add distributed mode (#9124) 2026-03-30 00:47:27 +02:00
reconciler.go fix(distributed): pass ExternalURI through NATS backend install (#9446) 2026-04-20 23:39:35 +02:00
reconciler_test.go fix(distributed): stop queue loops on agent nodes + dead-letter cap (#9433) 2026-04-19 23:38:43 +02:00
registry.go fix(distributed): stop queue loops on agent nodes + dead-letter cap (#9433) 2026-04-19 23:38:43 +02:00
registry_test.go feat: add node reconciler, allow to schedule to group of nodes, min/max autoscaler (#9186) 2026-03-31 08:28:56 +02:00
router.go fix(distributed): pass ExternalURI through NATS backend install (#9446) 2026-04-20 23:39:35 +02:00
router_test.go fix(distributed): pass ExternalURI through NATS backend install (#9446) 2026-04-20 23:39:35 +02:00
staging_keys.go feat: add distributed mode (#9124) 2026-03-30 00:47:27 +02:00
staging_keys_test.go feat: add distributed mode (#9124) 2026-03-30 00:47:27 +02:00
staging_progress.go feat: track files being staged (#9275) 2026-04-08 14:33:58 +02:00
unloader.go fix(distributed): pass ExternalURI through NATS backend install (#9446) 2026-04-20 23:39:35 +02:00
unloader_test.go feat: add distributed mode (#9124) 2026-03-30 00:47:27 +02:00