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
Updated to Nomad 1.5 on my laptop (where I usually invoke the cli) this morning. Wanted to create a new ACL token on a cluster that runs 1.4.4. This failed with the error below. Looks like some incompatibility between 1.5 and 1.4 when using the /v1/acl/token endpoint to me. Possibly related to #15999?
Reproduction steps
Just running:
nomad acl token create --name=foo --type=client
Expected Result
Token gets created successfully.
Actual Result
Creating the token fails with
Error creating token: Unexpected response code: 400 (json: cannot unmarshal string into Go struct field ACLToken.ExpirationTTL of type time.Duration)
(The same happens if I specify e.g. --ttl=1h.)
Job file (if appropriate)
Nomad Server logs (if appropriate)
[DEBUG] http: request failed: method=PUT path="/v1/acl/token?namespace=%2A" error="json: cannot unmarshal string into Go struct field ACLToken.ExpirationTTL of type time.Duration" code=400
[DEBUG] http: request complete: method=PUT path="/v1/acl/token?namespace=%2A" duration="364.503µs"
Nomad Client logs (if appropriate)
The text was updated successfully, but these errors were encountered:
Hi @carobme, yes this should be fixed by the PR you linked. I'll keep this open and assigned it myself; please let us know your results once you've had a chance to test. Thanks!
Nomad version
Servers:
Cli:
Operating system and Environment details
Servers: AlmaLinux 8
Cli: Ubuntu 22.10
Issue
Updated to Nomad 1.5 on my laptop (where I usually invoke the cli) this morning. Wanted to create a new ACL token on a cluster that runs 1.4.4. This failed with the error below. Looks like some incompatibility between 1.5 and 1.4 when using the
/v1/acl/token
endpoint to me. Possibly related to #15999?Reproduction steps
Just running:
nomad acl token create --name=foo --type=client
Expected Result
Token gets created successfully.
Actual Result
Creating the token fails with
Error creating token: Unexpected response code: 400 (json: cannot unmarshal string into Go struct field ACLToken.ExpirationTTL of type time.Duration)
(The same happens if I specify e.g.
--ttl=1h
.)Job file (if appropriate)
Nomad Server logs (if appropriate)
Nomad Client logs (if appropriate)
The text was updated successfully, but these errors were encountered: