Commit Graph

48 Commits

Author SHA1 Message Date
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
Chelsea Holland Komlo
7de20ac806 set server configuration checksum on reload 2018-03-27 18:03:52 -04:00
Chelsea Holland Komlo
6b67fb15c5 add test for upgrading only RPC connections 2018-03-26 10:55:27 -04: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
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
61476d09a5 Always add core scheduler and detect invalid schedulers 2018-03-14 10:53:27 -07:00
Alex Dadgar
1611fe56e3 Add testing interfaces 2018-02-15 13:59:00 -08:00
Alex Dadgar
4c9caffaaf Improve TLS cluster testing 2018-02-15 13:59:00 -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
Chelsea Holland Komlo
517030157e swap raft layer tls wrapper 2018-01-19 17:00:15 -05:00
Chelsea Holland Komlo
028ba9f423 allow for similar error messages for closed connections 2018-01-17 12:02:40 -05:00
Chelsea Holland Komlo
0805c41196 fixing up raft reload tests
close second goroutine in raft-net
2018-01-17 10:29:15 -05: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
7b749579a2 add ability to upgrade/downgrade nomad agents tls configurations via sighup 2018-01-08 09:21:06 -05:00
Kyle Havlovitz
c2d0c11f9e Add autopilot functionality based on Consul's autopilot 2017-12-18 14:29:41 -08:00
Alex Dadgar
8accabcd87 move to consul freeport implementation 2017-10-23 16:51:40 -07:00
Alex Dadgar
e1b1465081 Standardize retrieving a free port into a helper package 2017-10-23 16:48:20 -07:00
Michael Schurter
04b8f8e7fc Remove structs import from api
Goes a step further and removes structs import from api's tests as well
by moving GenerateUUID to its own package.
2017-09-29 10:36:08 -07:00
Armon Dadgar
03402ac69f nomad: support ACL bootstrap reset 2017-09-10 16:03:30 -07:00
Alex Dadgar
ac1539d5d9 Sync namespace changes 2017-09-07 17:04:21 -07:00
Armon Dadgar
ab5ce9b1a7 nomad: ACL endpoints check support enabled and redirect to authority 2017-09-04 13:05:53 -07:00
Alex Dadgar
bd5959a4bb parallel nomad tests 2017-07-25 17:39:36 -07:00
Alex Dadgar
0b2099c833 Log reason a plan gets rejected per node.
This PR adds a log explaining why a plan gets rejected. Should help
debugging.
2017-07-13 17:14:02 -07:00
Alex Dadgar
458c3c50db Fix flaky test: TestServer_RPC_MixedTLS 2017-05-11 14:55:12 -07:00
Michael Schurter
10cb924b2c Refactor Consul Syncer into new ServiceClient
Fixes #2478 #2474 #1995 #2294

The new client only handles agent and task service advertisement. Server
discovery is mostly unchanged.

The Nomad client agent now handles all Consul operations instead of the
executor handling task related operations. When upgrading from an
earlier version of Nomad existing executors will be told to deregister
from Consul so that the Nomad agent can re-register the task's services
and checks.

Drivers - other than qemu - now support an Exec method for executing
abritrary commands in a task's environment. This is used to implement
script checks.

Interfaces are used extensively to avoid interacting with Consul in
tests that don't assert any Consul related behavior.
2017-04-19 12:42:47 -07:00
Michael Schurter
11206c7c3e Require TLS for server RPC when enabled
Fixes #2525

We used to be checking a RequireTLS field that was never set. Instead we
can just check the TLSConfig.EnableRPC field and require TLS if it's
enabled.

Added a few unfortunately slow integration tests to assert the intended
behavior of misconfigured RPC TLS.

Also disable a lot of noisy test logging when -v isn't specified.
2017-04-06 09:34:36 -07:00
Alex Dadgar
258ed556ba Vault Client on Server handles SIGHUP
This PR allows the Vault client on the server to handle a SIGHUP. This
allows updating the Vault token and any other configuration without
downtime.
2017-02-01 14:24:10 -08:00
Alex Dadgar
7daa4706a6 Tests 2016-10-11 13:28:18 -07:00
Alex Dadgar
418339dddd Token renewal and beginning of tests 2016-08-17 16:25:38 -07:00
Alex Dadgar
d691232f43 Renew loop 2016-08-17 16:25:38 -07:00
Alex Dadgar
fc31ec8c2e Server has Vault API client 2016-08-17 16:25:38 -07:00
Sean Chittenden
bcf0929c95 Pass a logger arg to NewClient and NewServer 2016-06-16 23:29:23 -07:00
Sean Chittenden
ed598bf584 Don't assign to an atomic w/o using atomic setter func 2016-06-16 14:43:46 -07:00
Sean Chittenden
bd9fbd24c0 Use the config's log output 2016-06-15 12:40:51 -07:00
Sean Chittenden
ea89976d9d Teach Nomad servers how to fall back to Consul. 2016-06-15 12:40:51 -07:00
Sean Chittenden
f15d84e5e7 Use a monotonically incrementing number to create unique node names.
Also remove the space from the "name" of the node
2016-06-10 15:50:11 -04:00
Ryan Uber
0bee0eab6d nomad: testing region list 2015-11-23 22:27:07 -08:00
Alex Dadgar
e2da486cd9 Fix a racy test and increase the raft timeouts to mitigate other racy tests 2015-10-16 17:53:43 -07:00
Armon Dadgar
c2b7ce92e7 nomad: using Raft StartAsLeader to make tests faster 2015-09-07 10:46:41 -07:00
Armon Dadgar
cfaa467087 nomad: updating for new alloc representation 2015-08-25 17:36:52 -07:00
Armon Dadgar
f8018eb61c nomad: adding version API endpoint 2015-08-15 12:59:10 -07:00
Armon Dadgar
a9824b0905 nomad: refactor test code 2015-06-07 12:03:05 -07:00
Armon Dadgar
b99af5e811 nomad: adding more test cases 2015-06-06 00:11:16 +02:00
Armon Dadgar
745685ce31 nomad: testing bootstrap expect 2015-06-04 13:11:35 +02:00
Armon Dadgar
0fcaba9439 nomad: testing remove peer 2015-06-04 13:02:39 +02:00
Armon Dadgar
504305e23a nomad: testing serf join 2015-06-04 12:33:12 +02:00