I try to deploy to nomad with using nomad-jobspec similar to Hashicorp examples, replacing the example application with nginx hello. But every deployments end with following message:
No allocations for job are running!
Waypoint detected that the current deployment is not ready, however your application
might be available or still starting up.
Resource is reporting "DOWN"
and the first release ends with following message (probably related to not having canary to promote)
Getting status of Nomad release...
Getting job info...
! failed performing status report op: rpc error: code = Internal desc = resource
manager failed to generate resource statuses: Unexpected response code: 404 (job
not found)
furthermore waypoint status reports the deployment status as DOWN in all versions of deployments.
When I check nomad (wether UI or nomad job status) - the job is running and accessible.
Can I do something to get rid of those messages?
Furthermore in the third deployment the job in nomad is pruned and destroys even the running jobs in nomad
✓ Running deploy v3
✓ Job registration successful
✓ Allocation "bf38e137-7409-f3d5-8a12-ae6af360c878" created: node "5d7df7c9-f0a5-65f6-f7fb-48158a417fe4", group "waypoint-poc"
✓ Evaluation status changed: "pending" -> "complete"
✓ Evaluation "5ea0c030-7a39-2bb4-9f7f-e5e7f8d84747" finished with status "complete"
✓ Deployment successfully rolled out!
✓ Finished building report for Nomad platform
✓ Getting job info...
❌ No allocations for job "waypoint-poc" are running!
⚠️ Waypoint detected that the current deployment is not ready, however your application
might be available or still starting up.
⚠️ Resource "waypoint-poc" is reporting "DOWN"
» Releasing waypoint-poc...
✓ Running release v3
✓ Evaluation status changed: "pending" -> "complete"
✓ Evaluation "eba620ba-a102-ee4c-932e-5ea561b15b28" finished with status "complete"
✓ Release successfully rolled out!
» Pruning old deployments...
Deployment: 01GEETZA65GY9YVS3R9SPMFNVC (v1)
✓ Running deployment destroy v1
✓ Deleting job: waypoint-poc <-----------------------
» Pruning old releases...
Release: 01GEETZDJK2EQZ8NMSMPPXRA1A (v1)
✓ Running release destroy v1
❌ Getting status of Nomad release...
❌ Getting job info...
! failed performing status report op: rpc error: code = Internal desc = resource
manager failed to generate resource statuses: Unexpected response code: 404 (job
not found)
Doesnt line
Deleting job: waypoint-poc
mean that waypoint deletes all the allocations (even the new ones) of nomad jobs? When I try using -prune=false
it keeps the NEW deployment happily running. But this limits me on using only the CLI and not the automated git pooling.
Thank you in advance.
Waypoint instalation steps:
waypoint install -platform=nomad
-accept-tos \
-nomad-runner-host-volume=waypoint-runner-volume \
-nomad-host-volume=waypoint-server-volume
-nomad-dc=play
-nomad-consul-service=false
-nomad-host=https://nomad03.nomadplay:4646
-- -advertise-addr=x.x.x.x
waypoint config set -runner -scope=global NOMAD_SKIP_VERIFY=true #To ignore unrtrusted cert
Nomad version: Nomad v1.3.5 (1359c2580fed080295840fb888e28f0855e42d50)
Waypoint version: CLI: v0.10.1 (830e74dd0)
Server: v0.10.1