Kyle Havlovitz
5ebea7f049
Fill in the segment in the QuerySource for prepared query lookups
2017-08-31 03:35:59 -07:00
Kyle Havlovitz
b77a0aa932
Fix some inconsistencies with segment logic and comments
2017-08-30 17:43:46 -07:00
James Phillips
f7b7c5e33f
Merge pull request #3432 from xwvvvvwx/docs/add-quotes-to-gce-retry-join
...
docs: add quotes around example invocation for google cloud retry join
2017-08-30 15:16:41 -07:00
David Terry
5d891ba7e1
docs: add quotes around example invocation for google cloud retry join
2017-08-30 23:05:45 +02:00
Kyle Havlovitz
3b0df3350f
Default bind/advertise for segments to BindAddr/AdvertiseAddr
2017-08-30 12:51:10 -07:00
preetapan
cef05139c7
Merge pull request #3430 from hashicorp/server_provider_optional
...
Wire server provider for raft layer only on protocol version 3 and ab…
2017-08-30 14:41:16 -05:00
Preetha Appan
0728a04dbb
Wire server provider for raft layer only on protocol version 3 and above, and update changelog
2017-08-30 14:36:47 -05:00
Kyle Havlovitz
d9fc2b3d75
Update coord display in ui to account for segments
2017-08-30 11:58:29 -07:00
Kyle Havlovitz
6ded43131a
Add segment addr field to tags for LAN flood joiner
2017-08-30 11:58:29 -07:00
Kyle Havlovitz
1c04f1537a
Add agent.segment interpolation to prepared queries
2017-08-30 11:58:29 -07:00
Kyle Havlovitz
107d7f6c5a
Add rpc_listener option to segment config
2017-08-30 11:58:29 -07:00
Kyle Havlovitz
e582d02079
Add segment config validation
2017-08-30 11:58:29 -07:00
James Phillips
6a6eadd8c7
Adds open source side of network segments (feature is Enterprise-only).
2017-08-30 11:58:29 -07:00
preetapan
1dca19384e
Merge pull request #3403 from hashicorp/raft_peers_fixes
...
This fixes #1580
2017-08-30 13:49:31 -05:00
Preetha Appan
e944370cde
More cleanup from code review
2017-08-30 12:31:36 -05:00
Preetha Appan
a215c764cd
Remove copy pasted duplicate line, update documentation.
2017-08-30 10:02:10 -05:00
Preetha Appan
aadaae1d2d
Updating vendor directory for raft address provider interface changes
2017-08-30 09:57:48 -05:00
Preetha Appan
5a29eb7486
Consolidate server lookup into one place and replace usages of localConsuls.
2017-08-30 09:30:33 -05:00
Preetha Appan
cac1c29ec5
Remove unused function
2017-08-30 09:30:33 -05:00
Preetha Appan
d8fe01db4c
Remove stray commented line
2017-08-30 09:30:33 -05:00
Preetha Appan
ca48e7e4c2
Remove server address tracking logic from manager/router and maintain it as part of lan event listener instead. Used sync.Map to track this, and added unit tests
2017-08-30 09:30:33 -05:00
Preetha Appan
b4a9d77d49
ServerAddressProvider interface also returns an error now
2017-08-30 09:30:33 -05:00
Preetha Appan
edb408bc22
Use config struct to create NetworkTransport layer when setting up raft
2017-08-30 09:30:33 -05:00
Preetha Appan
01f8e469aa
Implement AddressProvider and wire that up to raft transport layer to support server nodes changing their IP addresses in containerized environments
2017-08-30 09:30:33 -05:00
Frank Schroeder
81782e871d
build: fix scripts/dist.sh
...
* get OSS version from version/version.go
* fix indenting to two spaces
2017-08-30 13:40:18 +02:00
Frank Schroeder
a11f3bb52b
build: drop 'consul' build tag for OSS build
2017-08-30 13:40:18 +02:00
Frank Schroeder
62c77d70f0
build: make tests independent of build tags
...
When the metadata server is scanning the agents for potential servers
it is parsing the version number which the agent provided when it
joined. This version number has to conform to a certain format, i.e.
'n.n.n'. Without this version number properly set some tests fail with
error messages that disguise the root cause.
The default version number is currently set to 'unknown' in
version/version.go which does not parse and triggers the tests to fail.
The work around is to use a build tag 'consul' which will use the
version number set in version_base.go instead which has the correct
format and is set to the current release version.
In addition, some parts of the code also require the version number to
be of a certain value. Setting it to '0.0.0' for example makes some
tests pass and others fail since they don't pass the semantic check.
When using go build/install/test one has to remember to use '-tags
consul' or tests will fail with non-obvious error messages.
Using build tags makes the build process more complex and error prone
since it prevents the use of the plain go toolchain and - at least in
its current form - introduces subtle build and test issues. We should
try to eliminate build tags for anything else but platform specific
code.
This patch removes all references to specific version numbers in the
code and tests and sets the default version to '9.9.9' which is
syntactically correct and passes the semantic check. This solves the
issue of running go build/install/test without tags for the OSS build.
2017-08-30 13:40:18 +02:00
James Phillips
230f1b2333
Updates the change log.
2017-08-29 15:33:48 -07:00
James Phillips
513a3c51ff
Merge pull request #3428 from hashicorp/go-1.9
...
Upgrades Go version to 1.9.
2017-08-29 15:33:04 -07:00
James Phillips
77521e40a8
Upgrades Go version to 1.9.
2017-08-29 15:32:34 -07:00
Brian Shumate
9f0900c97d
API DOCS: Update snapshot curl example ( #3423 )
2017-08-29 09:05:00 -07:00
Frank Schroeder
2190a4fb71
doc: document that retry-join values are URL encoded
...
Fixes #3417
2017-08-26 15:19:43 +02:00
Frank Schroeder
b7c3c8756d
doc: fix parameter name for aws retry-join
...
Fixes #3417
2017-08-26 15:19:34 +02:00
James Phillips
520dbd1838
Update CHANGELOG.md
2017-08-25 00:14:44 -07:00
Preetha Appan
9419990855
Updating CHANGELOG
2017-08-24 16:50:22 -05:00
preetapan
4166517c50
Merge pull request #3416 from hashicorp/issue_3409
...
Update raft library for windows snapshot fsync fixes.
This fixes #3409
2017-08-24 16:46:06 -05:00
Preetha Appan
2514523920
Update raft library for windows snapshot fsync fixes. This fixes #3409
2017-08-24 16:44:05 -05:00
James Phillips
c558067783
Update CHANGELOG.md
2017-08-23 14:37:39 -07:00
Frank Schroeder
4dea401e8f
Update CHANGELOG.md
2017-08-23 22:40:43 +02:00
Frank Schroeder
84a1bf0a99
agent: drop status code comments
2017-08-23 22:36:23 +02:00
Frank Schroeder
b06584f631
agent: use http.StatusRequestEntityTooLarge instead of 413
2017-08-23 22:36:23 +02:00
Frank Schroeder
cc83590962
agent: use http.StatusInternalServerError instead of 500
2017-08-23 22:36:23 +02:00
Frank Schroeder
bf426beb45
agent: use http.StatusMethodNotAllowed instead of 405
2017-08-23 22:36:23 +02:00
Frank Schroeder
0c3534cbf7
agent: use http.StatusNotFound instead of 404
2017-08-23 22:36:23 +02:00
Frank Schroeder
970a7f97ec
agent: use http.StatusForbidden instead of 403
2017-08-23 22:36:23 +02:00
Frank Schroeder
2e586be5aa
agent: use http.StatusUnauthorized instead of 401
2017-08-23 22:36:23 +02:00
Frank Schroeder
923f8e2364
agent: use http.StatusBadRequest instead of 400
2017-08-23 22:36:23 +02:00
Frank Schroeder
0e246054ef
doc: document cloud auto-joining for retry-join-wan
2017-08-23 21:23:34 +02:00
Frank Schroeder
a32eab5923
agent: support go-discover retry-join for wan
2017-08-23 21:23:34 +02:00
Frank Schroeder
509e667f94
vendor: upgrade github.com/hashicorp/go-discover
...
Pull in improved debug logging for AWS
2017-08-23 21:23:34 +02:00