Commit Graph

5492 Commits (26b30b160683f7f6a3afe7f98a34af8db4716b93)

Author SHA1 Message Date
Kyle Havlovitz 606662c502 Add snapshot inspect subcommand (#2451) 2016-10-31 19:37:27 -04:00
Kyle Havlovitz 4be39290e5 Revert "Added website docs for snapshot inspect command"
This reverts commit 7d0318252c.
2016-10-31 17:06:47 -04:00
Kyle Havlovitz 7d0318252c
Added website docs for snapshot inspect command 2016-10-31 17:01:27 -04:00
Seth Vargo d5aac284d9 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 3be132863f Enable snapshots in dev mode (#2453) 2016-10-31 14:39:47 -04:00
Kyle Havlovitz dce6702268 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 bfa0c3bc4c Add security page (#2447) 2016-10-29 12:44:20 -07:00
Kyle Havlovitz daacc4be8b Update CHANGELOG.md 2016-10-27 21:06:46 -07:00
Kyle Havlovitz 63534aca7e Added tests for lookups on the 'addr.consul' domain 2016-10-27 21:04:06 -07:00
Kyle Havlovitz 84c87325ae Add a service address SRV lookup test for IPv6 2016-10-27 21:04:06 -07:00
Kyle Havlovitz f7ef84812d Fix test cases 2016-10-27 21:04:06 -07:00
Kyle Havlovitz 2a26597769 Give the service address in SRV lookup when it differs from the node's 2016-10-27 21:04:06 -07:00
James Phillips 2de81c22c4 Update CHANGELOG.md 2016-10-26 22:26:44 -07:00
Kyle Havlovitz 5bfbe97763 Update CHANGELOG.md 2016-10-26 21:48:43 -07:00
Kyle Havlovitz 554440ab1d Resolve Consul CNAME records on external services (#2444) 2016-10-26 19:23:51 -07:00
Rick van de Loo 757a45ed7f Add Python 3 KV store client to community tools (#2431) 2016-10-26 17:15:24 -07:00
James Phillips d350c7ec36 Update CHANGELOG.md 2016-10-25 19:24:50 -07:00
James Phillips b94b5d6050 Update CHANGELOG.md 2016-10-25 19:24:32 -07:00
James Phillips c01a3871c9 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 7372c5fdf2 Update to the higher quality Travis build icon 2016-10-25 18:11:35 -07:00
Kyle Havlovitz ae99f76763 Wait for agent joins to finish in TestClient_RPC 2016-10-25 17:48:11 -07:00
Kyle Havlovitz f6c971f46c Fix race condition in TestClient_WatchList and TestClient_WatchGet 2016-10-25 17:48:11 -07:00
Kyle Havlovitz e1d850c081 Add wait logic to TestClient_RPC_Pool 2016-10-25 17:48:11 -07:00
Kyle Havlovitz e2d9114b34 Agent anti-entropy test fixes 2016-10-25 17:48:11 -07:00
James Phillips b72840ae4c 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 5a06d5eefc
Only builds the binary stuff under master branch CI. 2016-10-25 13:49:57 -07:00
Kyle Havlovitz 3add830b3a 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 03ae813bc7 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 104b12040a Merge pull request #2383 from hashicorp/jbs-1462
Clarify retry_join addresses for #1462
2016-10-20 11:40:03 -07:00
Brian Shumate 17dfb0b196
Reworded and applied to -retry-join also 2016-10-20 14:14:55 -04:00
James Phillips 554c898338 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 fa8cd7f833 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
Seth Vargo de1718a8a6
Centralize command-line parsing 2016-10-13 18:03:29 -04:00
James Phillips 41f1764434 Adds a version note for the consul kv command.
Closes #2410.
2016-10-13 08:02:20 -07:00
James Phillips 6197cc802a Merge pull request #2408 from Kourkis/patch-1
Fix typo
2016-10-11 07:55:52 -07:00
Michel Lebeau 2397c75856 Fix typo
The double "to" was distracting
2016-10-11 15:51:49 +01:00
sdinakar85 bb08378059 Multiple Datacenter Documentation
Updated the slightly confusing documentation on how to join the clusters over WAN. Also the inputs from #1656 is taken in account in this documentation update.
2016-10-07 14:12:37 +05:30
James Phillips eb44c4cf5d Update CHANGELOG.md 2016-10-06 22:11:48 -07:00
James Phillips 501e71604d Update CHANGELOG.md 2016-10-06 22:10:11 -07:00
James Phillips 596f172484 Update CHANGELOG.md 2016-10-06 21:55:36 -07:00
James Phillips 95d418d7da
Removes reap config option. 2016-10-06 21:45:18 -07:00
James Phillips ead3b81f65 Update CHANGELOG.md 2016-10-06 21:41:49 -07:00
James Phillips b073ec72f3 Adds a note about child process reaping going away. 2016-10-06 21:38:29 -07:00
James Phillips 24153f6e54 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 55a00d4d1b Update community.html.erb 2016-10-06 17:38:34 -07:00
James Phillips 3581ce03c5 Update README.md 2016-10-06 17:31:40 -07:00
James Phillips c7fb9aa0e7 Update README.md 2016-10-06 17:30:59 -07:00
James Phillips d12334f3a1 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 240e71c3bf Add Gitter badge 2016-10-07 00:29:26 +00:00
James Phillips b7755c44f3 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