You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Nomad is configured with vaults root token for vault access.
The consul token reads correctly if i remove the template for the nomad/creds/mgt token the job succeeds.
The following is outputted by allocation status indicating job failure trying to create the nomad token.
ID = eec197b4
Eval ID = f1e2be60
Name = hashiui.web[0]
Node ID = 4b374149
Job ID = hashiui
Job Version = 7
Client Status = failed
Client Description = <none>
Desired Status = run
Desired Description = <none>
Created = 1h4m ago
Modified = 59m31s ago
Deployment ID = e627a75f
Deployment Health = unhealthy
Task "frontend" is "dead"
Task Resources
CPU Memory Disk IOPS Addresses
250 MHz 128 MiB 300 MiB 0 http: 192.168.32.147:22303
Task Events:
Started At = N/A
Finished At = N/A
Total Restarts = 0
Last Restart = N/A
Recent Events:
Time Type Description
02/16/18 16:16:46 UTC Killing Killing task: Template: vault.read(nomad/creds/mgt): vault.read(nomad/creds/mgt): Error making API request.
URL: GET https://vault.service.consul:8200/v1/nomad/creds/mgt
Code: 500. Errors:
* 1 error occurred:
* Unexpected response code: 500 (3 error(s) occurred:
* RPC failed to server 192.168.32.144:4647: rpc error: token 0 invalid: 1 error(s) occurred:
* token name too long
* RPC failed to server 192.168.32.143:4647: rpc error: rpc error: token 0 invalid: 1 error(s) occurred:
* token name too long
* RPC failed to server 192.168.32.145:4647: rpc error: rpc error: token 0 invalid: 1 error(s) occurred:
* token name too long)
02/16/18 16:16:41 UTC Alloc Unhealthy Task not running by deadline
02/16/18 16:11:45 UTC Template Missing: vault.read(nomad/creds/mgt)
02/16/18 16:11:41 UTC Task Setup Building Task Directory
02/16/18 16:11:41 UTC Received Task received by client
Was considering this may be a consul template issue if that proves to be the case ill open a ticket in consul templates repository.
I'm actually leaning towards this being either a failure in consul templates vault api version or a failure in the vault api itself. It looks like nomad is using the latest release version of consul template however there are a few newer versions of the vault api since consul template was last released.
The text was updated successfully, but these errors were encountered:
I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Nomad version
Nomad v0.7.1 (0b295d3)
Vault v0.9.3
Consul v1.0.6
Operating system and Environment details
Alpine 3.7.0
Issue
When using the template stanza consul-template fails to create nomad token from the vault nomad backend.
I have a job with the relevant template section as follows.
I have the nomad and consul backend mounted in vault
The consul/role/hashiui_consul_mgt config
The nomad/role/mgt config
I can read creds from the nomad and consul backend as follows with vaults root token
Nomad is configured with vaults root token for vault access.
The consul token reads correctly if i remove the template for the nomad/creds/mgt token the job succeeds.
The following is outputted by allocation status indicating job failure trying to create the nomad token.
Was considering this may be a consul template issue if that proves to be the case ill open a ticket in consul templates repository.
I'm actually leaning towards this being either a failure in consul templates vault api version or a failure in the vault api itself. It looks like nomad is using the latest release version of consul template however there are a few newer versions of the vault api since consul template was last released.
The text was updated successfully, but these errors were encountered: