Commit Graph

84 Commits

Author SHA1 Message Date
Ivo Verberk
a78836049f Add comments to hasNodeChanged and remove superfluous else block 2016-02-04 08:19:34 +01:00
Ivo Verberk
035cc02c65 Reregister node when periodic fingerprint changes node properties 2016-02-03 21:10:58 +01:00
Alex Dadgar
3b90539fe9 Fix locks and use task runners state not alloc state 2016-02-01 15:43:59 -08:00
Alex Dadgar
410ae593e7 Fix double pull with introduction of AllocModifyIndex 2016-02-01 15:43:59 -08:00
Ranjib Dey
8e546010e7 allow group and others to have executable permissions 2016-01-31 10:54:32 -08:00
Jake Champlin
d93c8bb43e Use net.JoinHostPort 2016-01-29 05:39:28 -05:00
Jake Champlin
cb39df4c20 Spelling 2016-01-29 05:11:50 -05:00
Jake Champlin
fed8184da1 Updates from comments, fix tests 2016-01-28 23:11:13 -05:00
Jake Champlin
fb92f83714 Allow ports to be optional when adding servers
When updating a clients servers, as nomad does not use the gossip
protocol over a specified port for clients, it was required to specify
ports along with server addresses.

Now specifying ports are optional, and if unspecified the default `4647`
port is used, reflecting a notice back to the user.
2016-01-28 22:08:28 -05:00
Ivo Verberk
4330157b78 Cleanup code and add comments 2016-01-20 00:02:17 +01:00
Ivo Verberk
648a3487c9 Merge branch 'master' into f-cli-short-ids 2016-01-15 09:19:53 +01:00
Diptanu Choudhury
08d1b4c319 Added the node id to agent info 2016-01-14 15:42:30 -08:00
Diptanu Choudhury
0cf85f5355 Refactoring some comments and test names 2016-01-14 15:07:24 -08:00
Diptanu Choudhury
91869fb79b Added some docs and removed a redundant method 2016-01-14 13:45:48 -08:00
Diptanu Choudhury
21847954e0 changed the API of the client 2016-01-14 13:35:42 -08:00
Ivo Verberk
ab9409184a Shorten CLI identifiers
* Truncate all UUID identifiers to eight characters by default
* Refactor the node identifier to an auto-generated UUID
* Created and updated tests and mocks
2016-01-14 21:57:43 +01:00
Diptanu Choudhury
4345fc9bee Renamed AllocFile to AllocFileInfo 2016-01-13 17:18:10 -08:00
Diptanu Choudhury
11a67599b9 Implemeted readAt 2016-01-12 22:06:42 -08:00
Diptanu Choudhury
b5385b616d Implemented the Stat API 2016-01-12 21:28:07 -08:00
Diptanu Choudhury
cbcdaec3fe Added the Stat API 2016-01-12 15:25:51 -08:00
Diptanu Choudhury
744c226c23 Added methods for listing directories inside an alloc 2016-01-12 15:03:53 -08:00
Alex Dadgar
b8a42786f3 merge 2016-01-11 09:58:26 -08:00
Diptanu Choudhury
568006247d Making a struct to hold consul service config 2015-12-11 14:06:51 -08:00
Diptanu Choudhury
6af01d2d6f Muted the consul debug messages 2015-12-11 09:06:03 -08:00
Bryant Luk
8912f81650 Verify Consul SSL by default
- Matches documentation default value and clarifies config
2015-11-28 19:58:09 -06:00
Diptanu Choudhury
ee14aa2781 Added options for adding more consul configuration 2015-11-25 13:39:16 -08:00
Diptanu Choudhury
beebb7cc14 Merge pull request #498 from hashicorp/b-consul-check
Handle updates of Service and Check definitions
2015-11-25 13:17:26 -08:00
Diptanu Choudhury
b0c8cf6e36 Renamed consul client to service 2015-11-24 12:34:26 -08:00
max
7ff03041d7 Client config option "fingerprint.whitelist" 2015-11-24 16:18:49 +01:00
Alex Dadgar
6bbc977fe5 Renamed whitelisted to skipped and update debug line 2015-11-20 14:07:35 -08:00
Alex Dadgar
5eb8bc25bf Implement the driver whitelist 2015-11-19 16:39:21 -08:00
Diptanu Choudhury
6d81111995 Added the option to configure consul address 2015-11-18 05:15:52 -08:00
Diptanu Choudhury
3866d4ed4f Shutting down consul an not trying to de-register the consul service 2015-11-18 04:59:57 -08:00
Diptanu Choudhury
4221cda6f7 Added a logger to consul client 2015-11-18 02:14:07 -08:00
Diptanu Choudhury
9a578c5c0d Added the implementation of consul client 2015-11-18 00:50:45 -08:00
Alex Dadgar
87dd4dd0c7 Client Restore test 2015-11-10 16:03:18 -08:00
Alex Dadgar
d885c6807a Client restores state properly 2015-11-09 15:55:31 -08:00
Alex Dadgar
10e19064d9 Make periodic fingerprinting log the error 2015-11-05 18:47:16 -08:00
Alex Dadgar
f43c067b3e Client handles periodic fingerprinters 2015-11-05 13:46:17 -08:00
Alex Dadgar
02fb48fbc1 Cleanup allocations when in dev mode 2015-10-04 13:36:03 -07:00
Alex Dadgar
3906dc1afc Fix client init logging and test 2015-09-25 18:12:11 -07:00
Alex Dadgar
57ade13fc8 Fix comments 2015-09-25 16:49:19 -07:00
Alex Dadgar
df8103dfe9 Log the alloc and state directory on Client Init() 2015-09-25 16:49:19 -07:00
Alex Dadgar
dfd0efbacd Client init rebase 2015-09-25 16:46:41 -07:00
Alex Dadgar
38460ca653 AllocDirBuilder that creates the alloc directory structure 2015-09-25 16:46:41 -07:00
Ryan Uber
929de526b9 client: support modifying the servers list 2015-09-24 20:16:47 -07:00
Armon Dadgar
f9ae0a2461 Merge pull request #77 from hashicorp/f-network-fingerprint
Network Fingerprinting
2015-09-23 14:36:29 -07:00
Armon Dadgar
7c4e647cbb client: reset response struct to avoid decode errors 2015-09-22 22:10:28 -07:00
Armon Dadgar
f94c007348 client: create dir, handle not exist more gracefully 2015-09-22 22:00:24 -07:00
Armon Dadgar
4e5722b450 client: fixing stats formating 2015-09-22 21:48:42 -07:00