Commit Graph

3135 Commits

Author SHA1 Message Date
James Phillips 1c6414e806 Cleans up locking and factors markForUse into a Conn method. 2015-08-13 10:01:05 -07:00
James Phillips 18711b40b8 Gets rid of follow up attempts if the lead thread can't connect. 2015-08-12 20:14:48 -07:00
James Phillips 7d9db86b03 Adds missing ref count for the race condition case. 2015-08-12 19:26:01 -07:00
James Phillips 0efc49b510 Fixes #1165 by having threads wait for any outstanding connect to finish. 2015-08-12 18:48:15 -07:00
Ryan Uber 07299a61dc agent: log network address of DNS clients 2015-08-11 10:33:27 -07:00
Andy Lo-A-Foe 7a3da7db26 Add -http-port option to change the HTTP API port
This is useful when pushing consul to PaaS like
Cloud Foundry making the HTTP API easily routable.
2015-08-11 14:14:21 +02:00
Jack Pearkes 1584b35e3b revert 8bf8871, fc2aad3, 503d338.
some misplaced UI development changes
2015-08-07 16:40:49 -07:00
Jack Pearkes 5bbc336a25 ui: update development config to not use ACLs to simplify life 2015-08-07 16:36:39 -07:00
Jack Pearkes 694285b596 ui: update gems for development 2015-08-07 16:36:29 -07:00
Jack Pearkes 2b05a38ede ui: add 'map' route and button, tighten up the nav to give space 2015-08-07 16:36:02 -07:00
Ryan Breen 54b4bea277 Merge pull request #1160 from hashicorp/docs-reaping-left-nodes
Added detail about left/failed nodes and 72h reaping
2015-08-06 20:40:52 -04:00
Cameron Stokes b34662a87b website/Vagrantfile works again.
- Added gpg key
- Updated to ruby 2.2.2
- bundle -> bundle update
2015-08-06 17:39:48 -07:00
Cameron Stokes 92b86f0631 Added detail about left/failed nodes and 72h reaping
Ref: https://groups.google.com/forum/#!searchin/consul-tool/left/consul-tool/KVl0u91uCdw/bfzrUO4r-1QJ
2015-08-06 17:37:48 -07:00
Armon Dadgar c2a865686c Merge pull request #1158 from mfischer-zd/fix_1155
lock.go: fix race condition
2015-08-05 14:56:13 -07:00
Michael S. Fischer 9e0e9e389d lock.go: fix race condition
Fix a race condition between startChild() and killChild() that could
lead to an orphaned managed process.

Fixes #1155
2015-08-05 09:06:51 -07:00
Ryan Breen 401f8f373a Merge pull request #1146 from hashicorp/website-broken-link
website: fix broken link on acl page
2015-07-31 15:15:40 -04:00
Jack Pearkes 49181fce76 website: fix broken link on acl page 2015-07-31 12:14:28 -07:00
Armon Dadgar cebac0d7bb Merge pull request #1145 from jrgarcia/trim-trailing-slash-lock
Remove trailing slash from lock
2015-07-30 10:20:31 -07:00
J.R. Garcia f95ba4b8eb Remove trailing slash from lock
Lock command will remove trailing slash from path (as it is invalid).
Fixes #1136.
2015-07-30 12:14:17 -05:00
Ryan Breen b13ba78651 Merge pull request #1143 from hashicorp/GH-1142
Check NXDOMAIN after filtering nodes
2015-07-29 18:56:08 -04:00
Ryan Breen 20f17a0cc8 Test for GH-1142. 2015-07-29 18:21:16 -04:00
Armon Dadgar 0a853bca2e Merge pull request #1137 from 42wim/fix-1124
Recurse when PTR answer is empty
2015-07-29 14:39:04 -07:00
Ryan Breen dbb5ad1316 Check NXDOMAIN after filtering nodes
Move the check for NXDOMAIN below the service health filter.
2015-07-29 17:16:48 -04:00
Kevin Fishner 19b7099af3 update analytics 2015-07-28 15:59:05 -07:00
Ryan Uber 6e38497ce9 Merge pull request #1141 from hashicorp/f-travis
Try moving to newer Travis-CI infrastructure
2015-07-28 10:42:56 -07:00
Ryan Uber f48bc65e62 travis-ci: skip syslog tests for container-based travis infra 2015-07-28 09:58:43 -07:00
Ryan Uber 8f321ca0ba Merge pull request #1140 from hashicorp/h-acl
Filter services when using ChecksInState.
2015-07-28 09:34:40 -07:00
Ryan Uber 3d86a969ee travis-ci: use newer build infra 2015-07-28 09:13:25 -07:00
Ryan Uber 36bddeca25 consul: filter services by ACL when using ChecksInState. 2015-07-27 16:57:56 -07:00
Wim a6734ab4b8 Recurse when PTR answer is empty 2015-07-27 23:22:36 +02:00
Armon Dadgar 2017c95d13 Merge pull request #1130 from pdf/check_socket
Add Socket check type
2015-07-27 14:21:24 -07:00
Peter Fern 403b42af99 Document `TCP` check type 2015-07-27 10:53:52 +10:00
Ryan Uber 6d38027689 Merge pull request #1090 from hashicorp/f-keyring-acl
Keyring ACLs
2015-07-24 10:23:18 -07:00
Peter Fern 86edd7169c Add TCP check type
Adds the ability to simply check whether a TCP socket accepts
connections to determine if it is healthy.  This is a light-weight -
though less comprehensive than scripting - method of checking network
service health.

The check parameter `tcp` should be set to the `address:port`
combination for the service to be tested.  Supports both IPv6 and IPv4,
in the case of a hostname that resolves to both, connections will be
attempted via both protocol versions, with the first successful
connection returning a successful check result.

Example check:

```json
{
  "check": {
    "id": "ssh",
    "name": "SSH (TCP)",
    "tcp": "example.com:22",
    "interval": "10s"
  }
}
```
2015-07-24 14:06:05 +10:00
Ryan Uber a339ca19a6 agent: disable ACLs for RPC client tests 2015-07-23 17:09:33 -07:00
Armon Dadgar 8fe9149fbd Merge pull request #1128 from kongchen/master
Fix the display issue in consul ui
2015-07-23 11:08:32 -07:00
孔晨 57dfd1f46a fix base64 issue 2015-07-23 15:56:23 +08:00
孔晨 3cd8a0c214 fix 中文乱码问题 2015-07-23 14:47:32 +08:00
Armon Dadgar f1a83a8954 Merge pull request #1119 from trumant/multiple_private_IPs
Fixes #1099 by raising an error when we multiple private IPs are found
2015-07-22 17:32:00 -07:00
Armon Dadgar 6f42f6640c command/lock: Check for shutdown during lock acquisition. Fixes #800 2015-07-22 16:07:44 -07:00
Armon Dadgar 2b93e5f52c Merge pull request #1080 from zendesk/master
Return every time lock acquisition fails
2015-07-22 15:30:46 -07:00
Armon Dadgar 00691a0f02 Merge pull request #1127 from carlpett/master
Fix missing config-dir in getting started guide
2015-07-22 12:34:35 -07:00
Benjamin Abbott-Scott eece6e4848 Return every time lock acquisition fails 2015-07-22 10:44:47 -07:00
Calle Pettersson 2e03fa1648 Fix missing config-dir in getting started guide 2015-07-22 13:33:15 +02:00
Travis Truman e18a93ed54 Fixes #1099 by raising an error when we multiple private IPs are found 2015-07-16 22:25:02 -04:00
Ryan Uber 1b6ce88d6d Merge pull request #1093 from buddhamagnet/master
Switch to more idiomatic var syntax
2015-07-14 12:53:58 -07:00
Ryan Uber bfcca7ae24 Merge pull request #1112 from drawks/iss-1111
Fix issue #1111 - vagrant cluster demo doesn't work
2015-07-14 12:01:58 -07:00
Dave Rawks ef36aec2e4 Fix issue #1111 - vagrant cluster demo doesn't work
Switch demo Vagrantfile to use official debian 7 base box
and reflect change in the README
2015-07-14 11:43:18 -07:00
Ryan Uber f424f94d45 agent: vet fixes 2015-07-14 11:42:51 -07:00
Ryan Uber 6d27334ee1 consul: fixes for events and related tests 2015-07-14 11:38:26 -07:00