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
Hi everyone, I just stumbled on what I believe is a little bug :) hope the following helps! I don't know go otherwise I would have tried to submit a PR.
Nomad version
Output from nomad version (on server, clients, management and local machines) Nomad v1.1.1 (7feec97c04de4f8afff54ca9e56d66a61dfbfeb3)
Operating system and Environment details
Linux (Ubuntu 20) + tested on remote management server (Ubuntu 18)
Issue
Following doesn't work: nomad system gc -ca-path=nomad-ca.pem -client-cert=nomad-cli-cert.pem -client-key=nomad-cli-key.pem -address=https://control:4646 -token=myepictoken
Following works: NOMAD_ADDR=https://control:4646 NOMAD_CACERT=nomad-ca.pem NOMAD_CLIENT_KEY=nomad-cli-key.pem NOMAD_CLIENT_CERT=nomad-cli-cert.pem NOMAD_TOKEN=myepictoken nomad system gc
Reproduction steps
Spin up a remote nomad cluster.
Trigger garbage collection from a remote machine without setting the environment variables
Variables not taken into account, requests are made to http://127.0.0.1:4646 for example when -address is set Error running system garbage-collection: Put "http://127.0.0.1:4646/v1/system/gc": dial tcp 127.0.0.1:4646: connect: connection refused
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.
Hi everyone, I just stumbled on what I believe is a little bug :) hope the following helps! I don't know go otherwise I would have tried to submit a PR.
Nomad version
Output from
nomad version
(on server, clients, management and local machines)Nomad v1.1.1 (7feec97c04de4f8afff54ca9e56d66a61dfbfeb3)
Operating system and Environment details
Linux (Ubuntu 20) + tested on remote management server (Ubuntu 18)
Issue
Following doesn't work:
nomad system gc -ca-path=nomad-ca.pem -client-cert=nomad-cli-cert.pem -client-key=nomad-cli-key.pem -address=https://control:4646 -token=myepictoken
Following works:
NOMAD_ADDR=https://control:4646 NOMAD_CACERT=nomad-ca.pem NOMAD_CLIENT_KEY=nomad-cli-key.pem NOMAD_CLIENT_CERT=nomad-cli-cert.pem NOMAD_TOKEN=myepictoken nomad system gc
Reproduction steps
Expected Result
The expected results refer to the following documentation https://www.nomadproject.io/docs/commands/system/gc#general-options
Actual Result
Variables not taken into account, requests are made to http://127.0.0.1:4646 for example when -address is set
Error running system garbage-collection: Put "http://127.0.0.1:4646/v1/system/gc": dial tcp 127.0.0.1:4646: connect: connection refused
The text was updated successfully, but these errors were encountered: