James Phillips
2c7715154d
Release v0.8.5
2017-06-27 10:42:54 -07:00
James Phillips
555c7e912a
Puts tree into 0.8.5 release mode.
2017-06-27 09:25:38 -07:00
James Phillips
9243aa990d
Update CHANGELOG.md
2017-06-26 22:44:23 -07:00
Frank Schroeder
6dd68f7ad7
Revert "agent: add allowStale option for HTTP API ( #3142 )"
...
This reverts commit 1e0fd27a74
.
2017-06-27 07:04:55 +02:00
James Phillips
b5b6816eeb
Update CHANGELOG.md
2017-06-26 21:25:56 -07:00
James Phillips
273b9f2a6f
Puts the tree in 0.8.5 dev mode.
2017-06-26 16:08:05 -07:00
Ryon
6cdaa78e80
Update middleman-hashicorp to 0.3.28 for mega nav fixes ( #3194 )
2017-06-26 11:26:56 -07:00
Frank Schröder
4b51d00458
agent: fix DNS recursor tests ( #3190 )
...
The makeRecursor function was using an unreliable mechanism
to start a server with a random port. This patch changes this
so that the server starts on port 0 to let the kernel pick
a free port.
In addition, to similar functions for starting a test DNS
server were folded into one.
2017-06-25 10:42:37 -07:00
James Phillips
f1bded7c5e
Removes unneeded shutdown channel in config reading tests.
2017-06-25 10:39:51 -07:00
James Phillips
4a3604a3ee
Removes some useless comments.
2017-06-25 10:32:35 -07:00
Jason Martin
1dc57ce5e4
Fix invalid JSON in agent-api /v1/self example output. ( #3183 )
2017-06-24 16:16:27 -07:00
James Phillips
a6987c1812
Adds missing tls_skip_verify option to HTTP check example.
2017-06-24 15:37:52 -07:00
James Phillips
6e1ee02689
Update options.html.md
2017-06-24 15:28:23 -07:00
James Phillips
2742efbd64
Update CHANGELOG.md
2017-06-24 15:21:55 -07:00
James Phillips
86dc4640b9
Update CHANGELOG.md
2017-06-24 12:55:45 -07:00
James Phillips
6977e40077
Fixes watch tracking during reloads and fixes address issue. ( #3189 )
...
This patch fixes watch registration through the config file and a broken log line when the watch registration fails. It also plumbs all the watch loading through a common function and tweaks the
unit test to create the watch before the reload.
2017-06-24 12:52:41 -07:00
James Phillips
75cf566311
Update CHANGELOG.md
2017-06-24 09:42:08 -07:00
James Phillips
0f5f7ff425
Update CHANGELOG.md
2017-06-24 09:41:56 -07:00
James Phillips
380c8b957d
Changes host-based node IDs from opt-out to opt-in. ( #3187 )
2017-06-24 09:36:53 -07:00
James Phillips
42f60b04bb
Revert "discover: move instance discover code into separate package ( #3144 )" ( #3180 )
...
This reverts commit 26bfb2d00a
.
2017-06-23 01:38:55 -07:00
James Phillips
6d354b4b9f
Update CHANGELOG.md
2017-06-23 01:17:46 -07:00
James Phillips
e4b11682bc
Fixes broken HTTP header and method for health checks. ( #3178 )
...
* Fixes broken HTTP header and method for health checks.
* Adds a fuzz utility and test to make sure copy is complete.
2017-06-23 01:15:48 -07:00
James Phillips
38d360735a
Update CHANGELOG.md
2017-06-22 16:55:42 -07:00
Kyle Havlovitz
d8acaa84dc
Update CHANGELOG.md
2017-06-22 14:46:26 -07:00
Kyle Havlovitz
da97de42be
vendor: update github.com/hashicorp/memberlist ( #3176 )
2017-06-22 14:44:46 -07:00
Frank Schroeder
da01cd112e
vendor: update github.com/hashicorp/go-discover
2017-06-22 12:46:23 +02:00
Frank Schroeder
29373fa2b7
Update CHANGELOG.md
2017-06-22 10:36:51 +02:00
wojtkiewicz
1e0fd27a74
agent: add allowStale option for HTTP API ( #3142 )
...
This patch adds an "allowStale" option to the HTTP API
configuration which allows stale reads to provide linear
read scalability.
Fixes #3142
2017-06-22 10:31:13 +02:00
wojtkiewicz
37785028be
agent: add "http_config"
...
This patch adds an "http_config" object to the config file
and moves the "http_api_response_headers" option there.
"http_api_response_headers" is now deprecated in favor of
"http_config.response_headers"
2017-06-22 10:31:11 +02:00
Preetha Appan
c7f35ef2f9
Update documentation and json examples for snapshot agent
2017-06-21 21:15:02 -05:00
Preetha Appan
8e927e534f
Update CHANGELOG with consul enterprise static snapshot name feature
2017-06-21 20:48:23 -05:00
James Phillips
2cb4ce3a1a
Update CHANGELOG.md
2017-06-21 15:38:16 -07:00
Jared Wasinger
3cdde3c7ca
Warn when attempting to bootstrap an even number of nodes ( #3158 )
...
* Warn when attempting to bootstrap an even number of nodes. Addresses #1282
* add more detailed warning for two server case
2017-06-21 15:36:55 -07:00
preetapan
99f93cd4e7
make test should fail fast on test compilation errors ( #3172 )
2017-06-21 14:47:08 -07:00
James Phillips
0e695aef94
Fixes checked in web assets and associated build scripts. ( #3173 )
2017-06-21 14:43:07 -07:00
Frank Schroeder
50e11db5d8
add missing packages
...
Moving the discover package dependencies out removed
some packages we need.
2017-06-21 11:02:32 +02:00
Frank Schröder
26bfb2d00a
discover: move instance discover code into separate package ( #3144 )
...
This patch moves the code that discovers instances from metadata
information to github.com/hashicorp/go-discover with
sub-packages for each provider.
2017-06-21 10:40:38 +02:00
James Phillips
a8b9fb82b6
Update CHANGELOG.md
2017-06-20 21:46:48 -07:00
Frank Schroeder
f8265cef8c
Update CHANGELOG.md
2017-06-21 06:45:12 +02:00
Frank Schröder
31a310f551
agent: notify systemd after JoinLAN ( #2121 )
...
This patch adds support for notifying systemd via the
NOTIFY_SOCKET by sending 'READY=1' to the socket after
a successful JoinLAN.
Fixes #2121
2017-06-21 06:43:55 +02:00
Frank Schroeder
37d389f278
Update CHANGELOG.md
2017-06-21 06:34:28 +02:00
Frank Schroeder
ea5b0f2c7c
agent: fix 'consul leave' shutdown race ( #2880 )
...
When the agent is triggered to shutdown via an external 'consul leave'
command delivered via the HTTP API then the client expects to receive a
response when the agent is down. This creates a race on when to shutdown
the agent itself like the RPC server, the checks and the state and the
external endpoints like DNS and HTTP.
This patch splits the shutdown process into two parts:
* shutdown the agent
* shutdown the endpoints (http and dns)
They can be executed multiple times, concurrently and in any order but
should be executed first agent, then endpoints to provide consistent
behavior across all use cases. Both calls have to be executed for a
proper shutdown.
This could be partially hidden in a single function but would introduce
some magic that happens behind the scenes which one has to know of but
isn't obvious.
Fixes #2880
2017-06-21 05:52:51 +02:00
Frank Schroeder
7abe308c66
agent: drop unused constant
2017-06-21 05:42:39 +02:00
Frank Schroeder
c4fc581e07
agent: make registerEndpoint private
...
This is only used for testing.
2017-06-21 05:42:39 +02:00
Frank Schroeder
2b41f2e3a3
agent: make the RPC endpoint overwrite mechanism more transparent
...
This patch hides the RPC handler overwrite mechanism from the
rest of the code so that it works in all cases and that there
is no cooperation required from the tested code, i.e. we can
drop a.getEndpoint().
2017-06-21 05:42:39 +02:00
Frank Schroeder
e15f9f9d90
agent: rename agent var
2017-06-21 05:42:39 +02:00
Frank Schroeder
c49a15d0f3
agent: move structs into consul/structs pkg
...
* CheckDefinition
* ServiceDefinition
* CheckType
2017-06-21 05:42:39 +02:00
Frank Schroeder
4273fb8444
agent: move NotifyGroup into the agent pkg
2017-06-21 05:42:39 +02:00
Frank Schroeder
82a132da60
agent: move conn pool for muxed connections into separate pkg
2017-06-21 05:42:39 +02:00
Frank Schroeder
80971c8a85
agent: move the SnapshotReplyFn out of the way
...
When splitting up the consul package into server and client
the SnapshotReplyFn needs to be in a separate package to avoid
a circular dependency.
2017-06-21 05:42:39 +02:00