bug: nomad/jobs/edge.hcl uses service "forgejo" (Consul) but factory runs Nomad native service discovery #1114
Labels
No labels
action
backlog
blocked
bug-report
cannot-reproduce
in-progress
in-triage
needs-triage
prediction/actioned
prediction/dismissed
prediction/unreviewed
priority
rejected
reproduced
tech-debt
underspecified
vision
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: disinto-admin/disinto#1114
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?
Symptom
On a fresh
disinto init --backend=nomad --with edge, theedgealloc stays inClient Status = pendingindefinitely. Alloc events show:forgejo alloc itself is healthy —
nomad service info forgejoreturns the registration,nomad alloc checksshowsStatus = success. Problem is edge's template can't see it.Root cause
nomad/jobs/edge.hclline 133 and line 244:{{ range service "x" }}queries Consul. This factory runs with Consul disabled (systemctl is-active consul→inactive). Nomad native service discovery (provider = "nomad" in the job spec) requiresnomadServicein templates.Line 165 in the same file already uses the correct form:
{{ range nomadService "staging" }}— only the forgejo lookups were missed when services migrated off Consul.Reproduction
Fresh install on
disinto-nomad-box, Nomad 1.9.5, Vault 1.18.5:Fix
Replace the two occurrences of
range service "forgejo"withrange nomadService "forgejo"innomad/jobs/edge.hcl(lines 133, 244). Verified: after patch, edge alloc advances past template rendering.Acceptance
grep "range service" nomad/jobs/edge.hclreturns nothingdisinto init --backend=nomad --with edgeproduces a running edge alloc (subject to other bugs filed separately)service "forgejo"(Consul) but factory runs Nomad native service discovery (#1114) #1118Blocked — issue #1114
ci_timeout2026-04-21T13:25:31Zservice "forgejo"(Consul) but factory runs Nomad native service discovery (#1114) #1133