Commit Graph

17492 Commits

Author SHA1 Message Date
Michael S. Fischer 01ec256c7e lock.go: fix another race condition
The previous fix to `consul lock` (commit 6875e8d) didn't completely
eliminate the race that could occur if the lock was acquired around the
same time SIGTERM was received:  It was still possible for
Run() to spawn the process via startChild() after killChild() had
released the shared mutex.

Now, when SIGTERM is received, we acquire a mutex that prevents
spawning a new process and never release it.

We've tested this fix pretty thoroughly and believe it completely
resolves the issue.
2015-09-01 14:27:23 -07:00
Wim e97973c1e1 Limit the DNS responses after getting the NodeRecords 2015-09-01 23:23:05 +02:00
Ryan Breen 56d2fa4c17 Merge pull request #1195 from 42wim/fix-rfc2308-part2
Return SOA/NXDOMAIN when the answer is empty
2015-09-01 17:08:31 -04:00
Ryan Breen 6b6e79dadf Merge pull request #1211 from kikitux/master
add consul-do to community tools
2015-09-01 16:57:35 -04:00
Alvaro Miranda 2c3634ca57 Update downloads_tools.html.erb 2015-09-02 08:50:57 +12:00
Wim b806aceef4 Return SOA/not found when the answer is empty 2015-09-01 22:28:12 +02:00
Ryan Breen 300078db4d Merge pull request #1213 from mainframe/nodefabric-patch-1
Adding NodeFabric reference to Community Tools
2015-09-01 16:17:39 -04:00
Andres Toomsalu 11db6aba88 Adding NodeFabric reference to Community Tools 2015-09-01 23:09:34 +03:00
Alvaro Miranda 7e32c6a1de add consul-do to community tools
adding consul-do Do something based on leadership status

https://github.com/zeroXten/consul-do

From README.md

Useful for running cronjobs in HA mode.

Run something like this on two or more servers:

* * * * * /usr/bin/consul-do JOB-1 $(/bin/hostname) && /path/to/job1
*/10 * * * * /usr/bin/consul-do JOB-2 $(/bin/hostname) && /path/to/job2
Only one of the servers will be elected leader and will therefore run the job. Should the leader fail, a follower will take over.
2015-09-02 00:52:20 +12:00
James Phillips 0f49e1c3a9 Merge pull request #1200 from ryotarai/lock-pass-stdin
command/lock: Pass stdin to child process when -pass-stdin passed.
2015-08-31 21:14:45 -07:00
James Phillips 5c839f73f5 Removes incorrect protocol version in change log. 2015-08-31 21:11:50 -07:00
Ryota Arai 50914e2388 website: description of -pass-stdin option 2015-09-01 11:00:26 +09:00
James Phillips 6f29337782 Merge pull request #1209 from hashicorp/f-downgrade
Bumps protocol version back down as we've made memberlist smarter.
2015-08-31 14:52:27 -07:00
James Phillips c0127e9932 Bumps protocol version back down as we've made memberlist smarter. 2015-08-31 11:16:34 -07:00
Ryan Breen 2ee887ecc3 Cleanup for guides/forwarding.html 2015-08-30 12:01:49 -04:00
Ryan Breen 9f99b2e7cc Merge pull request #1204 from tamsky/docs/forwarding-dnsmasq-example
add a dnsmasq example, explain the utility of 'recursors'
2015-08-30 01:17:21 -04:00
Marc Tamsky baede06a9e Explain 'recursors' behavior with an example. 2015-08-28 18:27:26 -07:00
Marc Tamsky 76aa082d5b add dnsmasq example, add pointer to 'recursors' 2015-08-28 18:10:37 -07:00
Ryan Uber 10c38f8c3a website: document precedence of Atlas endpoint inputs 2015-08-27 17:54:56 -07:00
Ryan Uber 8f397a0b3c Update CHANGELOG.md 2015-08-27 13:35:24 -07:00
Ryan Uber d6b71de3f4 agent: reload SCADA client if endpoint changes 2015-08-27 13:29:07 -07:00
Ryan Uber c1c83c5d87 Merge pull request #1201 from hashicorp/f-atlas-endpoint
Configurable Atlas endpoint
2015-08-27 12:05:36 -07:00
Ryan Uber d9210f4a0c website: document atlas endpoint config 2015-08-27 11:31:29 -07:00
Ryan Uber 1639c7144a website: rebundle 2015-08-27 11:29:47 -07:00
Ryan Uber 5bd7a5f239 command: atlas endpoint can be passed 2015-08-27 11:11:05 -07:00
Ryan Uber cda2bf6975 agent: atlas_endpoint is configurable 2015-08-27 11:08:01 -07:00
Ryan Uber aa30194328 Merge pull request #1199 from hashicorp/f-scada-reload
SCADA client is reload-able
2015-08-26 11:46:50 -07:00
Ryota Arai c45f2971e7 command/lock: Pass stdin to child process when -pass-stdin passed. 2015-08-26 16:27:21 +09:00
Ryan Uber 00d78963bf agent: log a message when making a new scada connection 2015-08-25 21:03:16 -07:00
Ryan Uber 33cadcf925 agent: don't reload scada client if there is no config change 2015-08-25 20:43:57 -07:00
Ryan Uber 8eea77d58f agent: testing scada client creation in command 2015-08-25 20:22:22 -07:00
Ryan Uber 495cc41ba4 agent: test scada HTTP server creation 2015-08-25 18:51:04 -07:00
Ryan Uber e3cd2f2c0d agent: clean up scada connection manager 2015-08-25 18:27:07 -07:00
Ryan Uber e533789088 website: add atlas token/infra to reloadable config 2015-08-25 17:21:29 -07:00
Ryan Uber bc96c14a6f agent: document the scada http creation func 2015-08-25 17:19:11 -07:00
Ryan Uber 1378fd93b0 agent: scada client and HTTP server are tracked separately 2015-08-25 16:59:53 -07:00
Ryan Breen cdc7523184 Merge pull request #1197 from hashicorp/b-doc-fix
Clarifies services docs a bit.
2015-08-25 19:30:47 -04:00
James Phillips 89d03026bc Clarifies services docs a bit. 2015-08-25 16:12:19 -07:00
James Phillips 9b5d7f28ab Merge pull request #1175 from macb/testing_getPrivateIP
consul: refactor GetPrivateIP for testability
2015-08-25 15:00:14 -07:00
Ryan Breen 70906effbe Merge pull request #1192 from kikitux/master
update: add consul-cli to downloads_tools.html.erb
2015-08-24 21:43:49 -04:00
Alvaro Miranda c4bd148bfb update: add consul-cli to downloads_tools.html.erb
update: add consul-cli to downloads_tools.html.erb
2015-08-25 13:38:25 +12:00
Andy Lo-A-Foe 325b54649a Remove duplicate code 2015-08-20 20:46:20 +02:00
Andy Lo-A-Foe 3d133ab78c Use Ports.HTTP directly 2015-08-20 20:27:20 +02:00
Andy Lo-A-Foe 7e2ecf6a3c Add documentation for http-port option 2015-08-20 20:19:35 +02:00
Shawn Cook b9f70c7486 Merge remote-tracking branch 'hashicorp/master' into enable_tag_drift_03 2015-08-20 09:15:45 -07:00
Shawn Cook d4ec6aa630 Update tests - NodeService init needs bool 2015-08-20 09:09:26 -07:00
Armon Dadgar f58bbd3c31 Merge pull request #1174 from hashicorp/b-fix-typo
Fixes a typo in the event docs, and twiddles the formatting.
2015-08-18 18:58:48 -07:00
Shawn Cook 854ff1eb41 Add EnableTagDrift logic to command/agent/local.go 2015-08-18 14:03:48 -07:00
Shawn Cook 3a740ac07b Remove from command/agent/config_test.go 2015-08-18 10:42:25 -07:00
Shawn Cook 7ce8d3ec13 Remove from testutil/server.go 2015-08-18 10:41:17 -07:00