upgrade.plan: rows include template user as a target — 13 noise rows per call #32
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
upgrade.planreturns a row for every catalog service under every managed user — includingtemplate, which is the source of the rollout, not a target.On herodev today:
All 13 template rows skip with
"user's hero_proc daemon unreachable"because the template user intentionally has no running hero_proc on a deployed box — it's only the build/snapshot source.Root cause
upgrade::plan()(around line 283 ofcrates/hero_codescalers_server/src/upgrade.rs) iteratesusers::list(state)and emits a row per(user, catalog_service)without excludingTEMPLATE_USER. The constant exists atupgrade.rs:59(pub const TEMPLATE_USER: &str = "template") but isn't referenced in the plan loop.Suggested fix
Filter the user list before the rows loop:
Or add the filter to the
installedcheck so the template user's bin tree doesn't produce aninstalled=truerow.Impact
Cosmetic for now (plan output is noisier than necessary, operators have to mentally filter). Becomes a real bug if a future template user does have a daemon (e.g. snapshot validator) — the rollout would then try to overwrite its own source mid-flight.