James Phillips
3c26515607
Merge pull request #2715 from hashicorp/slackpad-patch-1
...
Drop testutil wait to 2 seconds.
2017-02-06 12:06:14 -08:00
James Phillips
14c6d009cc
Drop testutil wait to 2 seconds.
...
There's likely a race (related to https://github.com/hashicorp/consul/issues/2644 ) where the catalog update might be in but the leader tracking doesn't report a leader, so this blocks forever and then times out. As a workaround we can lower the query wait time to always allow for a few retries.
2017-02-06 11:52:00 -08:00
James Phillips
97dbfb8b32
Points at new release and puts tree in 0.8.0 dev mode.
2017-02-06 11:08:30 -08:00
Kyle Havlovitz
e86ec5b54c
vendor: Add golang-text dependency
2017-02-06 13:52:43 -05:00
James Phillips
1c442cb570
Release v0.7.4
2017-02-06 10:50:21 -08:00
Kyle Havlovitz
3d09fb880f
Merge branch 'master' into f-cli-rework
2017-02-06 13:46:44 -05:00
James Phillips
5c0a89ccf5
Puts the tree in 0.7.4 release mode.
2017-02-06 10:14:21 -08:00
James Phillips
0797d4f92b
Updates Serf library to get relay fixes.
...
https://github.com/hashicorp/serf/pull/447
2017-02-06 08:57:36 -08:00
Sean Chittenden
f228812746
Update github.com/shiriou/gopsutil's `vendor.json` entries.
...
Direct to `master` commit now that
https://github.com/shirou/gopsutil/pull/312 has been merged.
2017-02-03 22:31:51 -08:00
Sean Chittenden
abceea206d
Chase an upstream `go fmt` that has been long overdue.
2017-02-03 22:31:11 -08:00
Sean Chittenden
95a8ee35d6
Remove _test.go files from shirou/gopsutil
2017-02-03 22:29:02 -08:00
Sean Chittenden
ee8705f549
Add durable HostID generation for Windows.
...
https://github.com/shirou/gopsutil/pull/312
2017-02-02 16:11:54 -08:00
James Phillips
04d4bc9ea2
Merge pull request #2708 from oliora/master
...
Fix `acquire` parameter nesting
2017-02-02 15:25:25 -08:00
Andrey Upadyshev
1ec69ba1d2
Fix `acquire` parameter nesting
2017-02-03 00:20:35 +01:00
James Phillips
9423bf948b
Merge pull request #2707 from hashicorp/e-reduce-len-constraint
...
E reduce len constraint
2017-02-02 14:38:22 -08:00
Sean Chittenden
b94aac3a2c
Round the node lookup prefix down to the nearest modulo two size before
...
performing the lookup.
Hat tip: @dadgar
2017-02-02 12:13:58 -08:00
Sean Chittenden
fe49c0a0ab
Reduce the size of the UUID Lookup Length restriction from `8` to `2`.
...
I'm torn on this. It's useful from a UX perspective for an operator to
be able to type in something that's short. At the same time, by
enforcing an `8` character length, we reduced the probability of a user
depending on the behavior and having it suddenly stop working in the
future when a duplicate prefix is injected into the environment.
2017-02-02 12:12:18 -08:00
Kyle Havlovitz
01588efc2a
Update CHANGELOG.md
2017-02-02 12:19:54 -05:00
Kyle Havlovitz
5b8049075e
Merge pull request #2704 from hashicorp/f-relay-query-responses
...
Add relay-factor arg to keyring operations
2017-02-02 12:15:19 -05:00
James Phillips
a5c8ccadd4
Merge pull request #2572 from hashicorp/jbs-2535
...
Notes about memory usage (helps with #2535 )
2017-02-02 09:08:58 -08:00
Kyle Havlovitz
5d888f5303
Added -relay-factor param to keyring operations
2017-02-01 21:53:29 -05:00
Kyle Havlovitz
ed5bf524ba
Update serf deps
2017-02-01 20:57:37 -05:00
James Phillips
5d2031432e
Removes an obsolete environment variable from the example upstart script.
2017-02-01 16:56:53 -08:00
James Phillips
15e2e64c00
Adds a test for node UUID or name lookups.
2017-02-01 16:41:44 -08:00
Sean Chittenden
35fd064a79
Revert `97904cec95f1a1fafd18405f0dd143eb63d595a9`
2017-02-01 16:32:30 -08:00
Sean Chittenden
22addad024
Add a note about looking up nodes by their node id.
2017-02-01 16:26:36 -08:00
Sean Chittenden
b764606844
Merge pull request #2702 from hashicorp/f-dns-nodeid
...
DNS lookup by Consul node ID
2017-02-01 16:23:18 -08:00
Sean Chittenden
c16f33402a
Treat a uuid prefix lookup error as a soft error, as if a node name
...
lookup returned nil.
Add a TODO to note where a future point of logging should occur once a
logger is present and a few additional comments to explain the program
flow.
2017-02-01 16:09:25 -08:00
Sean Chittenden
62527c1698
Treat a uuid prefix lookup error as a soft error, as if a node name lookup returned nil.
...
Add a TODO to note where a future point of logging should occur once a
logger is present.
2017-02-01 15:51:25 -08:00
Sean Chittenden
295ca817f3
Run a test of `NodeServices()` with a NodeID as an argument.
2017-02-01 15:41:10 -08:00
Sean Chittenden
854f2b2bfc
Whoops. Return an empty set in the event that there are multiple matches.
2017-02-01 15:18:00 -08:00
Sean Chittenden
e86cefe640
Rename `nodeName` to `nodeNameOrID`.
2017-02-01 14:59:24 -08:00
Sean Chittenden
13fb395010
Toggle `AllowMissing` to false to accommodate old clients without Node IDs.
2017-02-01 14:58:34 -08:00
Sean Chittenden
f3f3f73e6d
Enable looking up consul nodes by their node ID.
...
Assuming the following output from a consul agent:
```
==> Consul agent running!
Version: 'v0.7.3-43-gc5e140c-dev (c5e140c+CHANGES)'
Node ID: '40e4a748-2192-161a-0510-9bf59fe950b5'
Node name: 'myhost'
```
it is now possible to lookup nodes by their Node Name or Node ID, or a
prefix match of the Node ID, with the following caveats re: the prefix
match:
1) first eight digits of the Node ID are a required minimum (eight was
chosen as an arbitrary number)
2) the length of the Node ID must be an even number or no result will be
returned.
```
% dig @127.0.0.1 -p 8600 myhost.node.dc1.consul.
myhost.node.dc1.consul. 0 IN A 127.0.0.1
% dig @127.0.0.1 -p 8600 40e4a748-2192-161a-0510-9bf59fe950b5.node.dc1.consul.
40e4a748-2192-161a-0510-9bf59fe950b5.node.dc1.consul. 0 IN A 127.0.0.1
% dig @127.0.0.1 -p 8600 40e4a748.node.dc1.consul.
40e4a748.node.dc1.consul. 0 IN A 127.0.0.1
% dig @127.0.0.1 -p 8600 40e4a74821.node.dc1.consul.
40e4a74821.node.dc1.consul. 0 IN A 127.0.0.1
% dig @127.0.0.1 -p 8600 40e4a748-21.node.dc1.consul.
40e4a748-21.node.dc1.consul. 0 IN A 127.0.0.1
```
2017-02-01 14:46:25 -08:00
Kyle Havlovitz
644dff8922
Update CHANGELOG.md
2017-02-01 16:40:26 -05:00
Kyle Havlovitz
6574f56153
Update CHANGELOG.md
2017-02-01 16:39:32 -05:00
Kyle Havlovitz
a533e255ab
Merge pull request #2699 from hashicorp/f-tls-min-version
...
Add TLSMinVersion to config options
2017-02-01 16:31:53 -05:00
Kyle Havlovitz
07ba3ddb6e
Add TLSMinVersion to config options
2017-02-01 16:20:33 -05:00
James Phillips
718157dd7c
Merge pull request #2698 from Cbeck527/master
...
Docs: add consul kv import/export links to sidebar
2017-02-01 12:26:39 -08:00
Chris Becker
1025ded3d5
Add consul kv import/export links to sidebar
2017-02-01 15:11:39 -05:00
Sean Chittenden
c5e140c79d
Small premature optimization in `isUUID()`.
...
If the length isn't `36`, return `false` immediately before firing up
the regexp engine.
2017-02-01 11:00:06 -08:00
James Phillips
0a3492595b
Update CHANGELOG.md
2017-02-01 10:31:20 -08:00
James Phillips
befb0f41aa
Merge pull request #2697 from hashicorp/f-gopsutil
...
Reintroduce the necessary vendor bits for per-node IDs
2017-02-01 10:30:26 -08:00
Sean Chittenden
fd2ae702c9
Re-cherry-pick 71d807f607
and e2320d69b6
.
2017-02-01 10:27:04 -08:00
Sean Chittenden
1e5534a27a
Add missing shirou/gopsutils vendor dependencies and files that were reverted
2017-02-01 10:26:00 -08:00
Sean Chittenden
97904cec95
Catch cross-compiliation build failures at Travis.
2017-02-01 10:22:27 -08:00
Sean Chittenden
504d16fdb8
Merge branch 'master' into f-gopsutil
2017-02-01 08:44:30 -08:00
Sean Chittenden
18760e1fb5
Reintroduce the necessary vendor bits for per-node IDs
...
* `shirou/gopsutil`
* `shirou/w32`
2017-02-01 08:36:24 -08:00
James Phillips
63d2fc6823
Update CHANGELOG.md
2017-02-01 07:00:32 -08:00
James Phillips
ed0e419d0a
Merge pull request #2695 from hashicorp/b-srv-cname
...
Fixes issue with missing CNAME for services with non-IP addresses set in SRV responses.
2017-02-01 06:58:38 -08:00