Alex Dadgar
7e5a30d5ae
Agent logs
2018-02-15 13:59:02 -08:00
Alex Dadgar
a9ed7a86e4
Server tests of logs
2018-02-15 13:59:02 -08:00
Alex Dadgar
d9722faf56
Server streaming
2018-02-15 13:59:01 -08:00
Alex Dadgar
5e7a1a44a2
Logs over RPC w/ lots to touch up
2018-02-15 13:59:01 -08:00
Alex Dadgar
e69506a6cf
Use in-mem rpc
2018-02-15 13:59:01 -08:00
Alex Dadgar
ebce3f907f
fix lint
2018-02-15 13:59:01 -08:00
Alex Dadgar
e2d1ce8ff2
Fix manager tests and make testagent recover from port conflicts
2018-02-15 13:59:01 -08:00
Alex Dadgar
1d9b2520c5
Use nomad UUID
2018-02-15 13:59:00 -08:00
Alex Dadgar
c9ddf89159
Test http
2018-02-15 13:59:00 -08:00
Alex Dadgar
d15bb76538
Refactor
2018-02-15 13:59:00 -08:00
Alex Dadgar
298b1c4cb0
Server can forward ClientStats.Stats
2018-02-15 13:59:00 -08:00
Alex Dadgar
ddee97ca29
Stats Endpoint
2018-02-15 13:59:00 -08:00
Kyle Havlovitz
c8f0f4cbe1
Merge pull request #3852 from hashicorp/autopilot-cleanup
...
Clean up some leftover autopilot differences from Consul
2018-02-14 10:42:32 -08:00
Preetha
d9276e22b3
Merge pull request #3868 from hashicorp/f-server-side-restarts
...
server side rescheduling
2018-02-13 20:09:51 -06:00
Kyle Havlovitz
5af5e10886
Clean up some leftover autopilot differences from Consul
2018-02-08 10:27:26 -08:00
Mahmood Ali
abfae77545
Add tags option to datadog telemetry
...
Expose an global tags option in telemetry config for dogstatsd, for
purposes of distinguishing between multiple nomad cluster metrics.
2018-02-06 12:08:37 -05:00
Preetha Appan
9a21db844d
Fix unit test
2018-01-31 09:56:53 -06:00
Preetha Appan
eab9d2da92
Add reschedule policy to API, and HCL parsing support.
2018-01-31 09:56:53 -06:00
Kyle Havlovitz
078c7d9aa9
Fix remaining issues with autopilot change
2018-01-30 15:21:28 -08:00
Kyle Havlovitz
2c873adba4
Refactor redundancy_zone/upgrade_version out of client meta
2018-01-29 20:03:38 -08:00
Chelsea Komlo
9d006ecd0d
Merge pull request #3492 from hashicorp/f-client-tls-reload
...
Client/Server TLS dynamic reload
2018-01-23 05:51:32 -05:00
Michael Schurter
6e96c81028
Merge pull request #3682 from hashicorp/b-3681-always-set-driver-ip
...
Always advertise driver IP when in driver mode
2018-01-22 16:41:34 -08:00
Chelsea Holland Komlo
517030157e
swap raft layer tls wrapper
2018-01-19 17:00:15 -05:00
Michael Schurter
7ae2291572
Improve invalid port error message for services
...
Related to #3681
If a user specifies an invalid port *label* when using
address_mode=driver they'll get an error message about the label being
an invalid number which is very confusing.
I also added a bunch of testing around Service.AddressMode validation
since I was concerned by the linked issue that there were cases I was
missing. Unfortunately when address_mode=driver is used there's only so
much validation that can be done as structs/structs.go validation never
peeks into the driver config which would be needed to verify the port
labels/map.
2018-01-18 15:35:24 -08:00
Michael Schurter
e0a3687faa
Fix test
2018-01-18 15:35:24 -08:00
Michael Schurter
cde796162c
Always advertise driver IP when in driver mode
...
Fixes #3681
When in drive address mode Nomad should always advertise the driver's IP
in Consul even when no network exists. This matches the 0.6 behavior.
When in host address mode Nomad advertises the alloc's network's IP if
one exists. Otherwise it lets Consul determine the IP.
I also added some much needed logging around Docker's network discovery.
2018-01-18 15:35:24 -08:00
Kyle Havlovitz
4962c8bd26
Formatting/test adjustments
2018-01-18 15:03:35 -08:00
Kyle Havlovitz
4e9735d69f
Merge branch 'master' into autopilot
2018-01-18 13:29:25 -08:00
Chelsea Holland Komlo
0805c41196
fixing up raft reload tests
...
close second goroutine in raft-net
2018-01-17 10:29:15 -05:00
Michael Schurter
96e00a57eb
Merge pull request #3718 from hashicorp/b-3713-fix-check-restart
...
Fix service.check_restart stanza propagation
2018-01-16 16:39:42 -08:00
Kyle Havlovitz
254458703b
Add raft remove by id endpoint/command
2018-01-16 13:35:32 -08:00
Chelsea Holland Komlo
bbc56860ac
adding additional test assertions; differentiate reloading agent and http server
2018-01-16 07:34:39 -05:00
Alex Dadgar
4c56501aa3
Test listener uses freeport instead of static ports
2018-01-12 15:10:26 -08:00
Michael Schurter
ae61f7308d
Fix HTTP code for permission denied errors
...
Fixes #3697
The existing code and test case only covered the leader behavior. When
querying against non-leaders the error has an "rpc error: " prefix.
To provide consistency in HTTP error response I also strip the "rpc
error: " prefix for 403 responses as they offer no beneficial additional
information (and in theory disclose a tiny bit of data to unauthorized
users, but it would be a pretty weird bit of data to use in a malicious
way).
2018-01-09 15:25:53 -08:00
Michael Schurter
304a037e39
Fix service.check_restart stanza propagation
...
There was a bug in jobspec parsing, a bug in CheckRestart merging, and a
bug in CheckRestart canonicalization. All are now tested.
2018-01-09 15:15:36 -08:00
Chelsea Holland Komlo
11089b23ce
reload raft transport layer
...
fix up linting
2018-01-08 14:52:28 -05:00
Chelsea Holland Komlo
c70702e802
call reload on agent, client, and server separately
2018-01-08 09:56:31 -05:00
Chelsea Holland Komlo
a4af400fd1
don't ignore error in http reloading
...
code review feedback
2018-01-08 09:21:06 -05:00
Chelsea Holland Komlo
359358d240
code review fixups
2018-01-08 09:21:06 -05:00
Chelsea Holland Komlo
184fbfe5bd
prevent races when reloading, fully shut down raft
2018-01-08 09:21:06 -05:00
Chelsea Holland Komlo
d4754d541b
fixups from code review
...
Revert "close raft long-lived connections"
This reverts commit 3ffda28206fcb3d63ad117fd1d27ae6f832b6625.
reload raft connections on changing tls
2018-01-08 09:21:06 -05:00
Chelsea Holland Komlo
7b749579a2
add ability to upgrade/downgrade nomad agents tls configurations via sighup
2018-01-08 09:21:06 -05:00
Preetha
781408bbf4
Merge branch 'master' into 0.8
2018-01-03 16:06:38 -06:00
Alex Dadgar
742107aa2b
bump version and remove generated structs
2017-12-19 17:10:52 -08:00
Alex Dadgar
0b295d399d
generated files
2017-12-19 16:57:34 -08:00
Michael Schurter
a4449c84d7
Services should not require a port
...
Fixes #3673
2017-12-19 15:50:23 -08:00
Kyle Havlovitz
c2d0c11f9e
Add autopilot functionality based on Consul's autopilot
2017-12-18 14:29:41 -08:00
Kyle Havlovitz
de90db139a
Added support for v2 raft APIs and -raft-protocol option
2017-12-12 10:17:16 -06:00
Alex Dadgar
fcc00ca9f0
remove generated structs
2017-12-11 17:51:41 -08:00
Alex Dadgar
b81a2b64e6
generated assets
2017-12-11 17:30:37 -08:00