Commit Graph

1265 Commits

Author SHA1 Message Date
Kyle Havlovitz 76d96e2eb0
Add nil check to operator autopilot endpoint 2017-04-13 10:43:07 -07:00
Kyle Havlovitz 196dd81cc5
Add formatting to autopilot init messages 2017-04-12 18:39:03 -07:00
Kyle Havlovitz e467da5d3e
Reorganize version check logic for autopilot 2017-04-12 17:09:57 -07:00
Kyle Havlovitz 7d36403291
Wait to initialize autopilot until all servers are >= 0.8.0 2017-04-12 16:05:13 -07:00
James Phillips 1ec16b9243
Tweaks error handling case to not panic further down. 2017-04-12 10:02:42 -07:00
Wim d38ceaa3ea Fix ipv6 join failure 2017-04-06 23:27:39 +02:00
Kyle Havlovitz 59c6d48eb5
Prefix autopilot log messages with 'autopilot' 2017-04-04 17:21:49 -07:00
Kyle Havlovitz e6a2ef64df
Use voter count instead of server count for required quorum 2017-04-04 15:42:17 -07:00
James Phillips 08f81ebddb
Moves operator sub-functions into their own files. 2017-03-30 12:35:50 -07:00
Kyle Havlovitz 9ff4322dda Merge pull request #2847 from hashicorp/remove-peer-by-id
Add CLI/API endpoints for removing peer by ID
2017-03-30 10:13:56 -07:00
Kyle Havlovitz da9c825592
Add CLI/API endpoints for removing peer by ID 2017-03-30 10:13:32 -07:00
James Phillips eb2db85593
Bans check updates for nodes other than top-level reg. updates. 2017-03-29 16:17:58 -07:00
Kyle Havlovitz e74e83fc6c
Remove stale raft servers differently depending on minRaftVersion 2017-03-29 13:38:40 -07:00
Kyle Havlovitz 0cc024399d
Clean up raft servers without a corresponding serf entry 2017-03-29 12:52:00 -07:00
Kyle Havlovitz a1474fda53
Use the new raft api function for leaving if applicable 2017-03-27 12:31:38 -07:00
James Phillips 59a599a14b
Cleans up a stray mark and fixes unit tests.
Ended up removing the leader_test.go server address change test as part
of this. The join was failing becase we were using a new node name with
the new logic here, but realized this was hitting some of the memberlist
conflict logic and not working as we expected. We need some additional
work to fully support address changes, so removed the test for now.
2017-03-27 01:28:54 -07:00
James Phillips 7f58576042
Adds node ID integrity checking for cluster merges. 2017-03-27 00:15:42 -07:00
James Phillips 80b2a633fd
Adds node ID integrity checking for the catalog. 2017-03-27 00:15:21 -07:00
James Phillips 5480270d11
Gets rid of the Consul service exception under version 8.
Fixes #2816.
2017-03-24 12:12:24 -07:00
James Phillips 85c03852a4
Makes the start/stop test less flaky. 2017-03-23 20:04:23 -07:00
James Phillips e7ec41ecbe
Fixes up some new tests for the updated testutil. 2017-03-23 17:55:47 -07:00
Seth Vargo 79061cdedb
Fix vet issues 2017-03-23 20:29:31 -04:00
Seth Vargo ab4e095cb1 Merge pull request #2824 from hashicorp/sethvargo/testutil
Reduce coupling with testing.T
2017-03-23 20:29:11 -04:00
Seth Vargo 0170a28ec9
Use new APIs 2017-03-23 18:48:13 -04:00
James Phillips 3f1c4a6f44
Fixes an issue where servers would delete catalog information set by
the node when they were trying to reconcile a member.
2017-03-23 15:01:46 -07:00
James Phillips d428bc63c1
Modifies server reconcile path to not use the server's token for internal operations. 2017-03-23 13:34:30 -07:00
Kyle Havlovitz 390f41d8d5
Add advanced autopilot features 2017-03-22 15:25:16 -07:00
James Phillips 3b3cb0d07b Merge pull request #2801 from hashicorp/spoken-hub-oss
Adds support for WAN soft fail and join flooding.
2017-03-20 16:24:07 -07:00
James Phillips e91377fa26
Cleans up based on review feedback. 2017-03-20 16:23:40 -07:00
James Phillips e8bbce82a2
Adds a warning if the context is canceled. 2017-03-20 09:27:28 -07:00
James Phillips 90d9963570
Converts the stats fetch from serial to parallel and snaps the last index. 2017-03-19 20:48:42 -07:00
James Phillips 867421b7d3
Adds a stats fetcher to make sure we don't block the autopilot loop. 2017-03-17 18:42:28 -07:00
James Phillips 90174d313c
Lowers log spam from the join flooder. 2017-03-16 23:38:15 -07:00
James Phillips 7a451f728e
Makes the flood goroutine more reusable. 2017-03-16 16:42:19 -07:00
James Phillips d556d14154
Shuts down flooder when either Serf is shut down. 2017-03-16 16:42:19 -07:00
James Phillips b58faffeac
Fixes a unit test that needed to account for WAN flooding. 2017-03-16 16:42:19 -07:00
James Phillips 7360e0bddd
Adds LAN -> WAN join flooding. 2017-03-16 16:42:19 -07:00
James Phillips 5626d3526c
Walks back the changes to change pool address interface into strings. 2017-03-16 16:42:19 -07:00
James Phillips f1acda4238
Adds a hook for the route lookup function. 2017-03-16 16:42:19 -07:00
James Phillips fcbb615aa0
Cleans up some small things based on review feedback. 2017-03-16 16:42:19 -07:00
James Phillips 7525836b28
Adds offline detection. 2017-03-16 16:42:19 -07:00
James Phillips 7c27ca1f77
Adds missing unit tests and cleans up some router bugs. 2017-03-16 16:42:19 -07:00
James Phillips b969d921d6
Makes the raft_vsn optional in Serf tags to support older servers. 2017-03-16 16:42:19 -07:00
James Phillips 1bdd0f3640
Simplifies median calculation. 2017-03-16 16:42:19 -07:00
James Phillips 1091c7314e
Removes remoteConsuls in favor of the new router.
This has the next wave of RTT integration with the router and also
factors some common RTT-related helpers out to lib. While we were
in here we also got rid of the coordinate disable config so we don't
need to deal with the complexity in the router (there was never a
user-visible way to disable coordinates).
2017-03-16 16:42:19 -07:00
James Phillips dc1572d82b
Fixes snapshot endpoint after merge. 2017-03-16 16:42:18 -07:00
James Phillips fe2bd89563
Cleans up after merge. 2017-03-16 16:42:18 -07:00
James Phillips 472f1bd63e
Adds router into RPC paths with work in progress on coordinates. 2017-03-16 16:42:18 -07:00
James Phillips 78b62ca406
Adds an area request type. 2017-03-16 16:42:18 -07:00
James Phillips 376fdde779
Changes pool's dial address to a string and adds a timeout. 2017-03-16 16:42:18 -07:00