Commit Graph

4212 Commits

Author SHA1 Message Date
James Phillips d2cc2801fa Merge pull request #1698 from hashicorp/pr-1547-slackpad
Implements WAN address translation.
2016-02-07 14:26:04 -08:00
James Phillips 607728ddca Adds a test to make sure we get the local address within the DC. 2016-02-07 14:16:15 -08:00
James Phillips 524aaae9b7 Increases wait to account for random stagger. 2016-02-07 13:56:45 -08:00
James Phillips 6790930c4e Factors address translation into a single function. 2016-02-07 13:39:37 -08:00
James Phillips 778a26efaf Adds a test for node registration and tagged addresses. 2016-02-07 13:15:22 -08:00
James Phillips 4be2ab1a75 Moves tagged wan address to be managed by anti-entropy, not serf. 2016-02-07 13:12:42 -08:00
James Phillips 33462ebea9 Adds an FSM persist and restore test for tagged addresses. 2016-02-07 11:36:39 -08:00
James Phillips b59599742d Adds a test to make sure the local sync doesn't clobber tagged addresses. 2016-02-07 11:26:19 -08:00
James Phillips 590ab94d8d Adds documentation for WAN address translation. 2016-02-07 11:12:19 -08:00
James Phillips c60a526fde Sets up config for more address tags down the road, renames struct members. 2016-02-07 10:37:34 -08:00
Evan Gilman de8fd561d0 Use a map for additional node addresses 2016-02-06 23:01:45 -08:00
Evan Gilman 2f26771bb1 Add tests for consul WAN translation 2016-02-06 23:01:45 -08:00
Evan Gilman 146f719a66 Explicitly set advertise address in agent tests
Otherwise, the tests will fail when run on a machine with multiple
private addresses
2016-02-06 23:01:45 -08:00
Evan Gilman a3240d28ba Consider WAN addresses during Node and SRV record lookup 2016-02-06 23:01:45 -08:00
Evan Gilman 496cf5ae73 Implement `translate_wan_addrs` config option
This knob tells consul whether it should prefer the WAN address (if set)
when making service lookups in remote datacenters. This enables
reachability for remote services which are behind a NAT.
2016-02-06 23:01:45 -08:00
Evan Gilman 8fa2a60208 Rectify value of `AdvertiseAddrWan` when set elsewhere
`AdvertiseAddrs` has been introduced as a configuration option, which
duplicates a few other options, namely `AdvertiseAddrWan`. We need to
use this value elsewhere, so rather than doing a precedence check every
time we need to access it, rectify the value of `AdvertiseAddrWan` to
match
2016-02-06 23:01:45 -08:00
Evan Gilman 069a28b3c0 Use idiomatic name for wan_addr serf tag 2016-02-06 23:01:45 -08:00
James Phillips ed8a71efd7 Store WanAddress during Service/Check sync 2016-02-06 23:01:45 -08:00
Evan Gilman 9300a13643 Store WanAddress during node registration 2016-02-06 23:01:45 -08:00
Evan Gilman 90aafbbdb6 Store WanAddress on Node 2016-02-06 23:01:45 -08:00
James Phillips a897a7189b Merge pull request #1636 from zenware/master
Fix Already Closed Issue #1488 "Unable to find gox"
2016-02-06 22:43:30 -08:00
James Phillips 507c83bdbd Merge pull request #1690 from alistanis/use-http-package-statuses
refactors http server error codes
2016-02-06 22:38:48 -08:00
James Phillips 7797fb2cb5 Updates the change log. 2016-02-06 22:30:15 -08:00
James Phillips eb8ee9fce0 Merge pull request #1609 from kevinsimper/patch-1
Updating dns forwarding
2016-02-06 22:21:00 -08:00
James Phillips 0b551cddb6 Merge pull request #1697 from hashicorp/f-doc-tweaks
Tweaks the telemetry docs.
2016-02-06 22:07:44 -08:00
James Phillips d2d6b51fe4 Tweaks the telemetry docs. 2016-02-06 22:07:11 -08:00
James Phillips d60be51f01 Merge pull request #1284 from nbrownus/telemetry
Option to disable hostnames from telemetry
2016-02-06 22:00:14 -08:00
Ryan Breen dda5c3d370 Merge pull request #1695 from DavidWittman/exec-help-formatting
Fix formatting in exec help
2016-02-06 13:35:45 -05:00
David Wittman 8667394955 Fix formatting in exec help
The description for `-node` was separated by tabs instead of spaces,
causing it to be incorrectly aligned.
2016-02-06 12:28:56 -06:00
James Phillips 6150b0c5bf Merge pull request #1693 from hashicorp/f-doc-dos-warning
Adds a warning about DoS-ing the cluster with consul exec.
2016-02-05 17:36:27 -08:00
James Phillips 64ec6d7d73 Adds a warning about DoS-ing the cluster with consul exec. 2016-02-05 17:36:19 -08:00
James Phillips 7bc2ba4c18 Merge pull request #1654 from ryanslade/invalid-check-message
Updated invalid check error message.
2016-02-05 17:21:29 -08:00
Sean Chittenden 0f4daa08b7 Merge pull request #1691 from hashicorp/b-gnumakefiles
Acknowledge that we're using GNU make's dialect and rename appropriate
2016-02-05 16:04:56 -08:00
Chris Cooper 5a07e89bb9 Merge branch 'master' of https://github.com/alistanis/consul into use-http-package-statuses 2016-02-05 17:30:43 -05:00
Sean Chittenden 71d02d2a32 Acknowledge that we're using GNU make's dialect and rename appropriate
Makefiles to GNUmakefiles so that non-GNU make(1) will error out.  This
should be a transparent change to the universe of people using GNU make.
2016-02-05 14:24:26 -08:00
Chris Cooper e2065e10c0 add comment codes 2016-02-05 17:06:42 -05:00
Chris Cooper 00dd9d6b78 refactors http server error codes to use the http statuses defined in the http package instead of literals 2016-02-05 16:51:31 -05:00
Seth Vargo 0cb4318b2e Order 2016-02-04 12:12:58 -05:00
Seth Vargo e123131f59 Merge pull request #1685 from jplock/patch-1
Add dropwizard-consul to the Community Tools page
2016-02-04 12:12:24 -05:00
Justin Plock 9f13bba9b2 Add dropwizard-consul to the Community Tools page 2016-02-04 12:00:06 -05:00
sean- 96de8e5691 Merge pull request #1678 from hashicorp/b-consul-rpc-server-nil
Use the server's address in debug logging, not the c.lastServer
2016-02-02 16:05:32 -08:00
Sean Chittenden 1f725e2d05 Use the server's address in debug logging, not the c.lastServer, which may be nil 2016-02-02 15:51:28 -08:00
sean- 82ec22d44b Merge pull request #1676 from hashicorp/b-env-bash
Don't assume /bin/bash is installed on all OSes
2016-02-02 15:31:30 -08:00
Sean Chittenden fa0d388ef1 Don't assume /bin/bash is installed on all OSes
Use `/usr/bin/env bash` where appropriate.
2016-02-02 15:16:49 -08:00
sean- 2bf794fac9 Merge pull request #1675 from hashicorp/d-dnsmasq-reverse-dns
Iterate on the DNS forwarding docs
2016-02-02 15:14:37 -08:00
Sean Chittenden 7db70cfcb6 Iterate on the DNS forwarding docs
Specifically:

* add Dnsmasq examples for reverse DNS for most of the RFC1918, 5735, and 6598 netblocks.
* Highlight some example options for dnsmasq that are probably of interest.
* Add a small section on reverse DNS testing
* Break out BINDs troubleshooting with Dnsmasq's troubleshooting

Not an exhaustive sweep, but should be helpful when introducing consul to new environments.
2016-02-02 15:06:25 -08:00
Sean Chittenden eb4116a2eb Fix misc typos 2016-02-02 11:38:28 -08:00
Sean Chittenden 53091c2b8b Add a note re: GH-1667 and redistributing client RPC requests 2016-02-02 11:38:00 -08:00
sean- 8f30dea420 Merge pull request #1667 from hashicorp/b-redistribute-clients
Continually redistribute client RPC connections
2016-02-02 11:15:19 -08:00
Sean Chittenden 1c9d74a337 Remove unnecessary check, test was moved further up in scope 2016-02-02 11:13:58 -08:00