This repository has been archived by the owner on Jan 8, 2024. It is now read-only.
Intermittent no allocations found after evaluation completed
error from nomad waypoint server install
#4557
Labels
Describe the bug
Occasionally, for me,
waypoint server install -platform=nomad
fails with this error:When this happens, I run
nomad status
, and see the allocation come up and run successfully. Looks like waypoint is checking too fast, and not noticing the alloc.Local Nomad agent command and config:
Steps to Reproduce
waypoint server install
Please include any
waypoint.hcl
files if applicable, as well as aGitHub Gist of any relevant logs or steps to
reproduce the bug. Running
waypoint
commands with-v
up to-vvv
willinclude any additional debugging info in the log.
Waypoint Platform Versions
Additional context
I traced this in the debugger, and caught the error here:
waypoint/internal/installutil/nomad/nomad.go
Line 101 in 9b25f08
Looks like waitForEvaluation isn't working as expected. It's returning
complete
, but then when we go to check for the alloc, it isn't up yet.Should an evaluation being complete garauntee that an alloc exists? If so, this is a bug in nomad. If not, we should retry a few times looking for the alloc.
waypoint/internal/installutil/nomad/nomad.go
Lines 133 to 164 in 9b25f08
The text was updated successfully, but these errors were encountered: