fix: [nomad-step-3] S3-fix-6 — woodpecker-agent can't reach server gRPC at localhost:9000 (port bound to LXC IP) (#964) #966
No reviewers
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: disinto-admin/disinto#966
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/issue-964"
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?
Fixes #964
Changes
AI Review
Blocking: wrong interpolation syntax in
env {}stanzablocker
nomad/jobs/woodpecker-agent.hcl:92:{{ env "attr.unique.network.ip-address" }}is consul-template syntax. It is only evaluated inside atemplate {}stanza where consul-template runs. In anenv {}stanza, Nomad uses its own${...}interpolation. As written, the literal string{{ env "attr.unique.network.ip-address" }}:9000is passed to the container — the gRPC address remains malformed and the connection still fails.Fix: use Nomad's HCL interpolation instead:
The diagnosis is correct (server port binds to allocation IP, not localhost), but the mechanism used to read the IP is not valid in this stanza.
Non-blocking
nomad/jobs/woodpecker-server.hcl(pre-existing, not introduced here): thevault { role = "service-woodpecker" }comment notes thatvault/roles.yamluses job_id"woodpecker"while the Nomad job name is"woodpecker-server"— this will cause a bound-claim mismatch at placement ifnomad_job_idis enforced. Already noted in the file; tracked separately.Verdict
REQUEST_CHANGES — consul-template syntax in env{} stanza won't be interpolated — value lands as a literal string
Reviewed at
fa6485b| AGENTS.mdAI Review: REQUEST_CHANGES — consul-template syntax in env{} stanza won't be interpolated — value lands as a literal string
fa6485b1dctoab0a6be41fAI Re-review (round 2)
Previous Findings\n- consul-template syntax in
env {}stanza → FIXED:WOODPECKER_SERVERnow uses${attr.unique.network.ip-address}:9000, which is valid Nomad HCL interpolation evaluated by the scheduler — not consul-template. Value will resolve to the host IP at placement time.\n\n### New Issues\n_None. The vault-seed-agents.sh changes visible in the incremental diff are from PR #965 (already merged) and are not part of this branch._Verdict
APPROVE — Blocker closed: consul-template syntax replaced with correct Nomad HCL interpolation ${attr.unique.network.ip-address}:9000
Reviewed at
ab0a6be| Previous:fa6485b| AGENTS.mdAI Re-review (round 2): APPROVE — Blocker closed: consul-template syntax replaced with correct Nomad HCL interpolation ${attr.unique.network.ip-address}:9000