Commit Graph

4532 Commits

Author SHA1 Message Date
Kyle Havlovitz 440611f9f7 Add snapshot inspect subcommand (#2451) 2016-10-31 19:37:27 -04:00
Kyle Havlovitz 72412237fd Revert "Added website docs for snapshot inspect command"
This reverts commit 7d0318252ca8fd81192b1bdc45a4c37407aecd37.
2016-10-31 17:06:47 -04:00
Kyle Havlovitz c97c59b070
Added website docs for snapshot inspect command 2016-10-31 17:01:27 -04:00
Seth Vargo 2d29c510dc Switch to Docker-based website build process (#2448)
This has been working really well on Nomad and hashicorp.com, so I am
ready to port it out to Consul as a beta. This moves the local
development to a Docker container, which is the same container that we
use to publish the website in production. The result is much faster and
more consistent deploys.
2016-10-31 12:49:52 -07:00
Kyle Havlovitz c6f461aa25 Enable snapshots in dev mode (#2453) 2016-10-31 14:39:47 -04:00
Kyle Havlovitz d5ee327fea More flaky unit test fixes (#2449)
* More flaky unit test fixes
* Raise some test timeouts that were too low
2016-10-31 09:59:20 -07:00
Seth Vargo 863821b665 Add security page (#2447) 2016-10-29 12:44:20 -07:00
Kyle Havlovitz 0d0f993ebe Update CHANGELOG.md 2016-10-27 21:06:46 -07:00
Kyle Havlovitz efb8f84922 Added tests for lookups on the 'addr.consul' domain 2016-10-27 21:04:06 -07:00
Kyle Havlovitz 9069deb792 Add a service address SRV lookup test for IPv6 2016-10-27 21:04:06 -07:00
Kyle Havlovitz 5888b4f7bf Fix test cases 2016-10-27 21:04:06 -07:00
Kyle Havlovitz b72bccc1c4 Give the service address in SRV lookup when it differs from the node's 2016-10-27 21:04:06 -07:00
James Phillips e563f55b4e Update CHANGELOG.md 2016-10-26 22:26:44 -07:00
Kyle Havlovitz 042663f87b Update CHANGELOG.md 2016-10-26 21:48:43 -07:00
Kyle Havlovitz de308e75e1 Resolve Consul CNAME records on external services (#2444) 2016-10-26 19:23:51 -07:00
Rick van de Loo 5552a36d5e Add Python 3 KV store client to community tools (#2431) 2016-10-26 17:15:24 -07:00
James Phillips cd8e2898f7 Update CHANGELOG.md 2016-10-25 19:24:50 -07:00
James Phillips c9581fdcc1 Update CHANGELOG.md 2016-10-25 19:24:32 -07:00
James Phillips bc29610124 Adds support for snapshots and restores. (#2396)
* Updates Raft library to get new snapshot/restore API.

* Basic backup and restore working, but need some cleanup.

* Breaks out a snapshot module and adds a SHA256 integrity check.

* Adds snapshot ACL and fills in some missing comments.

* Require a consistent read for snapshots.

* Make sure snapshot works if ACLs aren't enabled.

* Adds a bit of package documentation.

* Returns an empty response from restore to avoid EOF errors.

* Adds API client support for snapshots.

* Makes internal file names match on-disk file snapshots.

* Adds DC and token coverage for snapshot API test.

* Adds missing documentation.

* Adds a unit test for the snapshot client endpoint.

* Moves the connection pool out of the client for easier testing.

* Fixes an incidental issue in the prepared query unit test.

I realized I had two servers in bootstrap mode so this wasn't a good setup.

* Adds a half close to the TCP stream and fixes panic on error.

* Adds client and endpoint tests for snapshots.

* Moves the pool back into the snapshot RPC client.

* Adds a TLS test and fixes half-closes for TLS connections.

* Tweaks some comments.

* Adds a low-level snapshot test.

This is independent of Consul so we can pull this out into a library
later if we want to.

* Cleans up snapshot and archive and completes archive tests.

* Sends a clear error for snapshot operations in dev mode.

Snapshots require the Raft snapshots to be readable, which isn't supported
in dev mode. Send a clear error instead of a deep-down Raft one.

* Adds docs for the snapshot endpoint.

* Adds a stale mode and index feedback for snapshot saves.

This gives folks a way to extract data even if the cluster has no
leader.

* Changes the internal format of a snapshot from zip to tgz.

* Pulls in Raft fix to cancel inflight before a restore.

* Pulls in new Raft restore interface.

* Adds metadata to snapshot saves and a verify function.

* Adds basic save and restore snapshot CLI commands.

* Gets rid of tarball extensions and adds restore message.

* Fixes an incidental bad link in the KV docs.

* Adds documentation for the snapshot CLI commands.

* Scuttle any request body when a snapshot is saved.

* Fixes archive unit test error message check.

* Allows for nil output writers in snapshot RPC handlers.

* Renames hash list Decode to DecodeAndVerify.

* Closes the client connection for snapshot ops.

* Lowers timeout for restore ops.

* Updates Raft vendor to get new Restore signature and integrates with Consul.

* Bounces the leader's internal state when we do a restore.
2016-10-25 19:20:24 -07:00
Kyle Havlovitz 8f31e8b205 Update to the higher quality Travis build icon 2016-10-25 18:11:35 -07:00
Kyle Havlovitz f0aa65754b Wait for agent joins to finish in TestClient_RPC 2016-10-25 17:48:11 -07:00
Kyle Havlovitz 114ee0755a Fix race condition in TestClient_WatchList and TestClient_WatchGet 2016-10-25 17:48:11 -07:00
Kyle Havlovitz 2379b822ad Add wait logic to TestClient_RPC_Pool 2016-10-25 17:48:11 -07:00
Kyle Havlovitz 107f4ff878 Agent anti-entropy test fixes 2016-10-25 17:48:11 -07:00
James Phillips fa4a29ae7c Merge pull request #2437 from hashicorp/f-travis-pr-lite
Only builds the binary stuff under master branch CI.
2016-10-25 13:58:35 -07:00
James Phillips 44f7ebce05
Only builds the binary stuff under master branch CI. 2016-10-25 13:49:57 -07:00
Kyle Havlovitz 61311cff80 Test fixes (#2434)
* Test fixes in health_endpoint_test.go, agent_endpoint_test.go and rtt_test.go
* Don't reuse the same agent config in TestAgent_ReconnectConfigSettings
2016-10-25 13:46:54 -07:00
James Phillips dace771f06 Merge pull request #2389 from hashicorp/jbs-2019
Lower Service tag DNS warning to DEBUG for #2019
2016-10-24 17:05:02 -07:00
James Phillips 1adbcff059 Merge pull request #2383 from hashicorp/jbs-1462
Clarify retry_join addresses for #1462
2016-10-20 11:40:03 -07:00
Brian Shumate fd794ec0b4
Reworded and applied to -retry-join also 2016-10-20 14:14:55 -04:00
James Phillips 14c90e9aa6 Merge pull request #2382 from zaunerc/master
Add info about return values for function Get().
2016-10-20 09:40:58 -07:00
James Phillips 03f121faf3 Merge pull request #2381 from bluefeet/master
Add the Perl Consul client library to the list of SDKs on the web site.
2016-10-20 09:39:39 -07:00
James Phillips 51f0d91efb Adds a version note for the consul kv command.
Closes #2410.
2016-10-13 08:02:20 -07:00
James Phillips fc5ce4047e Merge pull request #2408 from Kourkis/patch-1
Fix typo
2016-10-11 07:55:52 -07:00
Michel Lebeau 4ea1f2e613 Fix typo
The double "to" was distracting
2016-10-11 15:51:49 +01:00
James Phillips 03027260dc Update CHANGELOG.md 2016-10-06 22:11:48 -07:00
James Phillips b76add8509 Update CHANGELOG.md 2016-10-06 22:10:11 -07:00
James Phillips 48a35d7aa6 Update CHANGELOG.md 2016-10-06 21:55:36 -07:00
James Phillips 377ce12e53
Removes reap config option. 2016-10-06 21:45:18 -07:00
James Phillips 8c6439d379 Update CHANGELOG.md 2016-10-06 21:41:49 -07:00
James Phillips 78815ea44d Adds a note about child process reaping going away. 2016-10-06 21:38:29 -07:00
James Phillips 9a36cd4bbf Merge pull request #2394 from adamwg/reap-the-reaper
Remove the child process reaper (resolve #1988)
2016-10-06 21:35:03 -07:00
James Phillips 69eb0f75e5 Update community.html.erb 2016-10-06 17:38:34 -07:00
James Phillips 0dfa88488c Update README.md 2016-10-06 17:31:40 -07:00
James Phillips c535950e92 Update README.md 2016-10-06 17:30:59 -07:00
James Phillips 73af9e3e3a Merge pull request #2395 from gitter-badger/gitter-badge
Add a Gitter chat badge to README.md
2016-10-06 17:30:38 -07:00
The Gitter Badger 9a87d9b45a Add Gitter badge 2016-10-07 00:29:26 +00:00
James Phillips 420220fdb2 Merge pull request #2392 from Tecsisa/Fix_DNS_Cache_doc
Doc fix - allow_stale enabled by default in v0.7
2016-10-06 08:31:52 -07:00
Adrián López Gómez 6e41d53871 Doc fix - allow_stale enabled by default in v0.7 2016-10-06 15:00:28 +02:00
James Phillips acb071b4f2 Merge pull request #2386 from aboettger-tuhh/patch-1
json syntax corrected
2016-10-05 20:01:54 -07:00