open-nomad/nomad
Seth Hoenig 2b66ce93bb nomad: ensure a unique ClusterID exists when leader (gh-6702)
Enable any Server to lookup the unique ClusterID. If one has not been
generated, and this node is the leader, generate a UUID and attempt to
apply it through raft.

The value is not yet used anywhere in this changeset, but is a prerequisite
for gh-6701.
2020-01-31 19:03:26 -06:00
..
deploymentwatcher add create and modify timestamps to evaluations (#5881) 2019-08-07 09:50:35 -07:00
drainer tests: remove trace statements from nodeDrainWatcher.watch 2019-12-16 07:08:11 -06:00
mock connect: canonicalize before adding sidecar 2019-12-12 20:55:56 -08:00
state nomad: ensure a unique ClusterID exists when leader (gh-6702) 2020-01-31 19:03:26 -06:00
structs nomad: ensure a unique ClusterID exists when leader (gh-6702) 2020-01-31 19:03:26 -06:00
types Change the signature of the PeriodicCallback to return an error 2016-06-10 15:54:39 -04:00
acl.go clear the token 2017-10-23 15:11:13 -07:00
acl_endpoint.go address feedback review 2019-11-26 08:39:04 -05:00
acl_endpoint_test.go tests: swap lib/freeport for tweaked helper/freeport 2019-12-09 08:37:32 -06:00
acl_test.go tests: swap lib/freeport for tweaked helper/freeport 2019-12-09 08:37:32 -06:00
alloc_endpoint.go acl: check ACL against object namespace 2019-10-08 12:59:22 -04:00
alloc_endpoint_test.go tests: swap lib/freeport for tweaked helper/freeport 2019-12-09 08:37:32 -06:00
autopilot.go goimports 2019-01-22 15:44:31 -08:00
autopilot_test.go tests: swap lib/freeport for tweaked helper/freeport 2019-12-09 08:37:32 -06:00
blocked_evals.go blocked_evals reset system evals on Flush 2019-07-18 10:32:13 -04:00
blocked_evals_system.go blocked_evals system evals indexed by job and node 2019-07-18 10:32:12 -04:00
blocked_evals_test.go blocked_evals_test disable calls Flush 2019-07-18 10:32:13 -04:00
client_agent_endpoint.go Allow nomad monitor command to lookup server UUID 2020-01-29 13:55:29 -05:00
client_agent_endpoint_test.go fix tests, update changelog 2020-01-29 13:55:39 -05:00
client_alloc_endpoint.go acl: check ACL against object namespace 2019-10-08 12:59:22 -04:00
client_alloc_endpoint_test.go tests: swap lib/freeport for tweaked helper/freeport 2019-12-09 08:37:32 -06:00
client_fs_endpoint.go acl: check ACL against object namespace 2019-10-08 12:59:22 -04:00
client_fs_endpoint_test.go tests: swap lib/freeport for tweaked helper/freeport 2019-12-09 08:37:32 -06:00
client_rpc.go server 2018-09-15 16:23:13 -07:00
client_rpc_test.go tests: swap lib/freeport for tweaked helper/freeport 2019-12-09 08:37:32 -06:00
client_stats_endpoint.go server 2018-09-15 16:23:13 -07:00
client_stats_endpoint_test.go tests: swap lib/freeport for tweaked helper/freeport 2019-12-09 08:37:32 -06:00
config.go core: add limits to unauthorized connections 2020-01-30 10:38:25 -08:00
core_sched.go core_sched add compat comment for later removal 2019-07-10 13:56:20 -04:00
core_sched_test.go tests: swap lib/freeport for tweaked helper/freeport 2019-12-09 08:37:32 -06:00
deployment_endpoint.go acl: check ACL against object namespace 2019-10-08 12:59:22 -04:00
deployment_endpoint_test.go tests: swap lib/freeport for tweaked helper/freeport 2019-12-09 08:37:32 -06:00
deployment_watcher_shims.go Fix typos 2018-05-07 14:50:01 -05:00
drainer_int_test.go tests: swap lib/freeport for tweaked helper/freeport 2019-12-09 08:37:32 -06:00
drainer_shims.go set node.StatusUpdatedAt in raft 2019-05-21 16:13:32 -04:00
endpoints_oss.go Helper to populate RPC server endpoints 2018-02-15 13:59:00 -08:00
eval_broker.go nomad: refactor waitForIndex into SnapshotAfter 2019-05-17 13:30:23 -07:00
eval_broker_test.go nomad: TestEvalBroker_Dequeue_Empty_Timeout() proper goroutine error handling (#6657) 2019-11-08 14:35:06 -05:00
eval_endpoint.go acl: check ACL against object namespace 2019-10-08 12:59:22 -04:00
eval_endpoint_test.go tests: swap lib/freeport for tweaked helper/freeport 2019-12-09 08:37:32 -06:00
fsm.go nomad: ensure a unique ClusterID exists when leader (gh-6702) 2020-01-31 19:03:26 -06:00
fsm_not_ent.go sync 2017-10-13 14:36:02 -07:00
fsm_registry_oss.go Sync namespace changes 2017-09-07 17:04:21 -07:00
fsm_test.go nomad: ensure a unique ClusterID exists when leader (gh-6702) 2020-01-31 19:03:26 -06:00
heartbeat.go goimports 2019-01-22 15:44:31 -08:00
heartbeat_test.go tests: swap lib/freeport for tweaked helper/freeport 2019-12-09 08:37:32 -06:00
job_endpoint.go connect: canonicalize before adding sidecar 2019-12-12 20:55:56 -08:00
job_endpoint_hook_connect.go connect: configure envoy such that multiple sidecars can run in the same alloc 2020-01-06 11:26:27 -05:00
job_endpoint_hook_connect_test.go connect: canonicalize before adding sidecar 2019-12-12 20:55:56 -08:00
job_endpoint_hooks.go core: add semver constraint 2019-11-19 08:40:19 -08:00
job_endpoint_oss.go sync 2017-09-19 10:08:23 -05:00
job_endpoint_test.go tests: swap lib/freeport for tweaked helper/freeport 2019-12-09 08:37:32 -06:00
leader.go nomad: ensure a unique ClusterID exists when leader (gh-6702) 2020-01-31 19:03:26 -06:00
leader_oss.go sync acls 2017-09-13 11:38:29 -07:00
leader_test.go nomad: ensure a unique ClusterID exists when leader (gh-6702) 2020-01-31 19:03:26 -06:00
merge.go nomad: adding merge guard for non-nomad servers 2015-06-04 13:15:46 +02:00
node_endpoint.go api: use the same initial time for all drain properties 2019-11-14 16:06:09 -05:00
node_endpoint_test.go tests: swap lib/freeport for tweaked helper/freeport 2019-12-09 08:37:32 -06:00
operator_endpoint.go Add code for plan normalization 2019-04-23 09:18:01 -07:00
operator_endpoint_test.go tests: swap lib/freeport for tweaked helper/freeport 2019-12-09 08:37:32 -06:00
periodic.go add create and modify timestamps to evaluations (#5881) 2019-08-07 09:50:35 -07:00
periodic_endpoint.go goimports 2019-01-22 15:44:31 -08:00
periodic_endpoint_test.go tests: swap lib/freeport for tweaked helper/freeport 2019-12-09 08:37:32 -06:00
periodic_test.go tests: swap lib/freeport for tweaked helper/freeport 2019-12-09 08:37:32 -06:00
plan_apply.go add create and modify timestamps to evaluations (#5881) 2019-08-07 09:50:35 -07:00
plan_apply_not_ent.go sync 2017-10-13 14:36:02 -07:00
plan_apply_pool.go Log reason a plan gets rejected per node. 2017-07-13 17:14:02 -07:00
plan_apply_pool_test.go Enable more linters 2017-09-26 15:26:33 -07:00
plan_apply_test.go tests: swap lib/freeport for tweaked helper/freeport 2019-12-09 08:37:32 -06:00
plan_endpoint.go goimports 2019-01-22 15:44:31 -08:00
plan_endpoint_test.go tests: swap lib/freeport for tweaked helper/freeport 2019-12-09 08:37:32 -06:00
plan_normalization_test.go Add comments to functions, and use require instead of assert 2019-04-23 09:57:21 -07:00
plan_queue.go nomad: refactor waitForIndex into SnapshotAfter 2019-05-17 13:30:23 -07:00
plan_queue_test.go nomad: fix test goroutine (#6593) 2019-10-31 08:23:32 -04:00
raft_rpc.go Refactor 2018-02-15 13:59:00 -08:00
regions_endpoint.go server 2018-09-15 16:23:13 -07:00
regions_endpoint_test.go tests: swap lib/freeport for tweaked helper/freeport 2019-12-09 08:37:32 -06:00
rpc.go core: add limits to unauthorized connections 2020-01-30 10:38:25 -08:00
rpc_test.go core: add limits to unauthorized connections 2020-01-30 10:38:25 -08:00
search_endpoint.go server 2018-09-15 16:23:13 -07:00
search_endpoint_oss.go sync 2017-10-13 14:36:02 -07:00
search_endpoint_test.go tests: swap lib/freeport for tweaked helper/freeport 2019-12-09 08:37:32 -06:00
serf.go do not bootstrap with non voters 2018-09-19 17:17:39 -07:00
serf_test.go tests: swap lib/freeport for tweaked helper/freeport 2019-12-09 08:37:32 -06:00
server.go nomad: ensure a unique ClusterID exists when leader (gh-6702) 2020-01-31 19:03:26 -06:00
server_setup_oss.go use intercepting loggers for rpchandlers 2019-11-05 09:51:50 -05:00
server_test.go Merge pull request #160 from hashicorp/b-mtls-hostname 2020-01-30 12:59:17 -06:00
stats_fetcher.go server 2018-09-15 16:23:13 -07:00
stats_fetcher_test.go tests: swap lib/freeport for tweaked helper/freeport 2019-12-09 08:37:32 -06:00
status_endpoint.go server 2018-09-15 16:23:13 -07:00
status_endpoint_test.go tests: swap lib/freeport for tweaked helper/freeport 2019-12-09 08:37:32 -06:00
system_endpoint.go server 2018-09-15 16:23:13 -07:00
system_endpoint_test.go tests: swap lib/freeport for tweaked helper/freeport 2019-12-09 08:37:32 -06:00
testing.go tests: swap lib/freeport for tweaked helper/freeport 2019-12-09 08:37:32 -06:00
timetable.go Switch to using go/codec and use code generation 2016-02-20 18:05:17 -08:00
timetable_test.go Include google compare library 2017-09-01 16:42:09 -07:00
util.go handle channel close signal 2020-01-28 09:44:34 -05:00
util_test.go tests: defer closing shutdownCh 2020-01-28 09:53:48 -05:00
vault.go vault: check token_explicit_max_ttl as well 2019-11-12 08:47:23 -05:00
vault_test.go vault: check token_explicit_max_ttl as well 2019-11-12 08:47:23 -05:00
vault_testing.go nomad: refactor waitForIndex into SnapshotAfter 2019-05-17 13:30:23 -07:00
worker.go add create and modify timestamps to evaluations (#5881) 2019-08-07 09:50:35 -07:00
worker_test.go tests: swap lib/freeport for tweaked helper/freeport 2019-12-09 08:37:32 -06:00