Preetha Appan
86ced8aef2
Use preconfigured nodeID if there isn't a persisted node ID, and persist it if its not persisted.
2018-04-10 08:47:33 -05:00
Alex Dadgar
5194f5d6c7
WIP: Not setting node id properlperly
2018-04-09 18:01:28 -07:00
Alex Dadgar
c53becf596
Fix prefix output of agent metadata
2018-03-30 16:27:18 -07:00
Alex Dadgar
702a3be41e
Generated files
2018-03-30 16:14:40 -07:00
Michael Schurter
7ff790bc7d
cli: differentiate normal output vs info
2018-03-30 11:42:11 -07:00
Chelsea Komlo
8294cd6684
Merge pull request #4046 from hashicorp/tls-same-file-reload
...
Check file contents when determining if agent should reload TLS confi…
2018-03-29 10:51:32 -04:00
Chelsea Holland Komlo
5d866366a7
make check fix
2018-03-28 19:11:51 -04:00
Chelsea Holland Komlo
e8af281dd3
return error when setting checksum; don't reload
2018-03-28 18:15:50 -04:00
Chelsea Holland Komlo
074683c616
output warning for error in creating TLS checksum
2018-03-28 17:44:23 -04:00
Chelsea Holland Komlo
065133d716
check for nil, remove unnecessary set checksum call
2018-03-28 13:29:53 -04:00
Preetha
6f870b8bd7
Merge pull request #4052 from hashicorp/f-specify-total-memory
...
Allow to specify total memory on agent configuration
2018-03-28 12:28:41 -05:00
Chelsea Holland Komlo
2fc02c1832
fix up test for file content changes
2018-03-28 13:18:13 -04:00
Preetha Appan
09fa5f5850
Fix compilation fail in test after rebase
2018-03-28 11:54:34 -05:00
Chelsea Holland Komlo
6e317fa6c6
set TLS checksum when parsing config
...
Refactor checksum comparison, always set checksum if it is empty
2018-03-28 09:56:11 -04:00
Alex Dadgar
400cbcf128
Create evals for system jobs when drain is unset
...
This PR creates evals for system jobs when:
* Drain is unset and mark eligible is true
* Eligibility is restored to the node
2018-03-27 15:53:24 -07:00
Mildred Ki'Lya
d31105c69e
Allow to specify total memory on agent configuration
...
Allow to set the total memory of an agent in its configuration file. This
can be used in case the automatic detection doesn't work or in specific
environments when memory overcommit (using swap for example) can be
desirable.
2018-03-27 15:46:18 -05:00
Chelsea Holland Komlo
f8df2071ef
check file contents when determining if agent should reload TLS configuration
2018-03-27 15:42:20 -04:00
Alex Dadgar
d10e155e0f
Fix alloc watcher snapshot streaming
2018-03-27 11:14:53 -07:00
Chelsea Komlo
24a1f60e7b
Merge pull request #4025 from hashicorp/reload-http-tls
...
Allow TLS configurations for HTTP and RPC connections to be reloaded …
2018-03-26 18:00:30 -04:00
Preetha Appan
e2226ca2b7
s/linear/constant/g
2018-03-26 14:45:09 -05:00
Chelsea Holland Komlo
490e70e9ce
code review feedback
2018-03-26 10:55:22 -04:00
Alex Dadgar
1ac3798ae0
Allow separate enterprise config overlay
2018-03-22 13:53:08 -07:00
Michael Schurter
b8b1922b9b
test: fix by using mock.BatchJob
2018-03-21 16:51:45 -07:00
Michael Schurter
80885623c1
test: don't call t.Fatal from within a goroutine
2018-03-21 16:51:45 -07:00
Michael Schurter
aab1fb7672
Fix linting errors
2018-03-21 16:51:45 -07:00
Alex Dadgar
d15371405f
Toggle Drain allows resetting eligibility
...
This PR allows marking a node as eligible for scheduling while toggling
drain. By default the `nomad node drain -disable` commmand will mark it
as eligible but the drainer will maintain in-eligibility.
2018-03-21 16:51:44 -07:00
Alex Dadgar
7f989499ff
Correct defaulting
2018-03-21 16:51:44 -07:00
Alex Dadgar
7d58209927
code review
2018-03-21 16:51:44 -07:00
Alex Dadgar
0fb9ba7732
HTTP and API
2018-03-21 16:51:44 -07:00
Alex Dadgar
a7833bc609
Upgrade path
2018-03-21 16:51:43 -07:00
Alex Dadgar
2bdeacebff
Drain cli, api, http
2018-03-21 16:51:43 -07:00
Chelsea Holland Komlo
8e83cf8d8a
Allow TLS configurations for HTTP and RPC connections to be reloaded separately
2018-03-21 17:51:08 -04:00
Michael Schurter
09511dbf7d
Merge pull request #4003 from jrasell/f_gh_3988
...
Allow Nomads Consul health check names to be configurable.
2018-03-20 16:44:08 -07:00
James Rasell
dda9207b06
Update Consul check params from using health-check to check.
2018-03-20 16:03:58 +01:00
Michael Schurter
82fb214f93
Fix generating static assets
...
Broke due to a change in go-bindata-assetfs
2018-03-19 15:52:38 -07:00
James Rasell
2439310951
Allow Nomads Consul health checks to be configurable.
...
This change allows the client HTTP and the server HTTP, Serf and
RPC health check names within Consul to be configurable with the
defaults as previous. The configuration can be done via either a
config file or using CLI flags.
Closes #3988
2018-03-19 19:37:56 +01:00
Preetha
c57fe9e35b
Merge pull request #4002 from hashicorp/b-reschedule-systemjob-panic
...
Fix incorrect initialization of reschedule policy for system jobs.
2018-03-19 13:06:55 -05:00
Preetha Appan
e5b86d405e
Fix incorrect initialization of reschedule policy for system jobs.
2018-03-19 12:16:13 -05:00
Alex Dadgar
02132ed6ab
Merge pull request #3997 from hashicorp/b-serf-addr
...
RPC Advertise used exclusively for Clients
2018-03-19 09:30:20 -07:00
Alex Dadgar
7ba99a604d
enable server in test
2018-03-16 16:52:37 -07:00
Alex Dadgar
b49462b5ff
Heartbeat uses client rpc advertise and server defaults server rpc advertise addr
2018-03-16 16:47:08 -07:00
Alex Dadgar
5976511b05
Separate client and server rpc advertise addresses
2018-03-16 16:47:08 -07:00
Michael Schurter
5aff4dddfd
Remove unnecessary conversions
2018-03-16 16:32:59 -07:00
Michael Schurter
16538f6474
gofmt -s (simplify) files
2018-03-16 16:31:16 -07:00
Michael Schurter
b20421de3b
Merge pull request #3984 from hashicorp/f-loosen-consul-skipverify
...
Replace Consul TLSSkipVerify handling
2018-03-16 11:21:28 -07:00
Michael Schurter
9f50ab334c
Replace Consul TLSSkipVerify handling
...
Instead of checking Consul's version on startup to see if it supports
TLSSkipVerify, assume that it does and only log in the job service
handler if we discover Consul does not support TLSSkipVerify.
The old code would break TLSSkipVerify support if Nomad started before
Consul (such as on system boot) as TLSSkipVerify would default to false
if Consul wasn't running. Since TLSSkipVerify has been supported since
Consul 0.7.2, it's safe to relax our handling.
2018-03-14 17:43:06 -07:00
Alex Dadgar
66f85b20f0
Merge pull request #3978 from hashicorp/b-core-sched
...
Always add core scheduler
2018-03-14 16:13:15 -07:00
Preetha Appan
74bd789c29
Fix formatting
2018-03-14 16:10:32 -05:00
Preetha Appan
d4056c4489
Rename DelayCeiling to MaxDelay
2018-03-14 16:10:32 -05:00
Preetha Appan
e65d870fe9
Add new reschedule options to API layer and unit tests
2018-03-14 16:10:32 -05:00