Alex Dadgar
6a96b824f3
Merge pull request #3892 from hashicorp/f-tunnel
...
Client RPC Endpoints, Server Routing and Streaming RPCs
2018-02-20 16:35:42 -08:00
Alex Dadgar
4abacc52cd
Show HTTP request method
2018-02-16 15:55:26 -08:00
Alex Dadgar
4f2725bb98
Enhance API pkg to utilize Server's Client Tunnel
...
This PR enhances the API package by having client only RPCs route
through the server when they are low cost and for filesystem access to
first attempt a direct connection to the node and then falling back to
a server routed request.
2018-02-15 13:59:03 -08:00
Alex Dadgar
4f332ff1c2
feedback and rebasing
2018-02-15 13:59:03 -08:00
Alex Dadgar
e05cd42063
Use helper for forwarding
2018-02-15 13:59:03 -08:00
Alex Dadgar
0fb2b5c3f3
HTTP agent
2018-02-15 13:59:03 -08:00
Alex Dadgar
349485028c
Server side impl + touch ups
2018-02-15 13:59:02 -08:00
Alex Dadgar
4ac1e25478
Refactor determining the handler for a node id call
2018-02-15 13:59:02 -08:00
Alex Dadgar
a80ef65291
Code review feedback
2018-02-15 13:59:02 -08:00
Alex Dadgar
d77b36698c
HTTP and tests
2018-02-15 13:59:02 -08:00
Alex Dadgar
3c689ba97f
Client Stat/List impl
2018-02-15 13:59:02 -08:00
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