Alex Dadgar
7daa4706a6
Tests
2016-10-11 13:28:18 -07:00
Diptanu Choudhury
612a16abc3
Fixing alloc runner tests
2016-09-04 19:09:08 -07:00
Alex Dadgar
4bae54741e
Secret dir materialized in alloc/task directory
2016-09-02 12:44:05 -07:00
Alex Dadgar
335cababe1
Revert "Introduce a Secret/ directory"
2016-09-01 17:23:15 -07:00
Alex Dadgar
7f18d94976
Merge pull request #1671 from hashicorp/f-secret-dir2
...
Introduce a Secret/ directory
2016-09-01 09:56:17 -07:00
Alex Dadgar
0c050bd62b
Symlink on windows
2016-08-31 21:41:44 -07:00
Alex Dadgar
0b07ef93c1
Address comments and reserve
2016-08-31 18:11:02 -07:00
vishalnayak
6b83d07070
VaultClient for Nomad Client
2016-08-24 09:43:45 -04:00
Diptanu Choudhury
025f3b424a
blocking chained allocations until previous allocation hasn't terminated
2016-08-22 11:34:24 -05:00
Alex Dadgar
ba51037fd6
Nodes generate Secret ID and used for retrieving allocations and registering
2016-08-17 16:31:47 -07:00
vishalnayak
b3a1b98599
Disable Vault instead of supplying test token
2016-08-17 16:25:38 -07:00
vishalnayak
047310eb46
Fix a few client tests
2016-08-17 16:25:38 -07:00
Diptanu Choudhury
03c6692f98
Fixed some bugs
2016-07-25 17:26:38 -07:00
Sean Chittenden
572925a5fa
Fix test for non-Linux platforms.
...
The following tests now check a whitelist for whether or not their
driver is present or not, or if the OS is supported or not.
* `TestAllocDir_MountSharedAlloc`
* `TestClient_Drivers_InWhitelist` (`exec` driver)
* `TestClient_Drivers` (`exec` driver)
* `TestJavaDriver_Fingerprint` (`java` driver)
2016-07-10 15:19:49 -07:00
Sean Chittenden
451c685f1c
Provide nomad.Config with a default LogOutput of os.StdErr
2016-06-17 06:44:10 -07:00
Sean Chittenden
bcf0929c95
Pass a logger arg to NewClient and NewServer
2016-06-16 23:29:23 -07:00
Sean Chittenden
277592dd88
conf -> config
2016-06-16 17:05:29 -07:00
Sean Chittenden
3d32d20af8
Fix tests for NewServer() in client mode.
...
Pointy-hat: sean-
I'm positive I've done this before.
2016-06-16 16:34:22 -07:00
Sean Chittenden
54838b9eba
Rename structs.Task's Service attribute to ConsulService
2016-06-10 15:54:39 -04:00
Sean Chittenden
57c2c819e8
Move package client/consul/sync to command/agent/consul.
...
This has been done to allow the Server and Client to reuse the same
Syncer because the Agent may be running Client, Server, or both
simultaneously and we only want one Syncer object alive in the agent.
2016-06-10 15:54:39 -04:00
Sean Chittenden
1352f7f0e6
Change client/consul.NewSyncer() to accept a shutdown channel
...
In addition to the API changing, consul.Syncer can now be signaled
to shutdown via the Shutdown() method, which will call the Run()'ing
sync task to exit gracefully.
2016-06-10 15:54:39 -04:00
Sean Chittenden
66dc946852
Don't clobber the default consul config in tests
2016-06-10 15:50:11 -04:00
Sean Chittenden
453a7556b6
Pick the right DefaultConfig from the right package.
...
Overly zealous search && replace at work here.
2016-06-10 15:50:11 -04:00
Sean Chittenden
ac174dbb6b
Fix building tests that used DefaultConfig() but didn't pickup the package move.
2016-06-10 15:50:11 -04:00
Sean Chittenden
57bb374236
Fix unit tests
2016-06-10 15:50:11 -04:00
Sean Chittenden
4d47eedd58
Teach Client to reuse an Agent's consulSyncer.
...
"There can be only one."
2016-06-10 15:50:11 -04:00
Sean Chittenden
d268dcb85d
Reduce all forms of ConsulConfig down to a single struct
...
nomad/structs/config/consul.go's ConsulConfig is the canonical definition
for all things Consul now.
2016-06-10 15:50:11 -04:00
Sean Chittenden
ffcd2332d4
Rebalance Nomad client RPCs among different Nomad servers.
...
Implement client/rpc_proxy.RpcProxy.
2016-06-10 15:50:11 -04:00
Sean Chittenden
4fed6b0ab5
Rename client/config/config's ConsulConfig to ConsulAgentConfig
...
A follow up commit to the previous rename. More to come.
2016-06-10 15:48:36 -04:00
Sean Chittenden
0e1bdad2a0
Rename consul.ConsulConfig to consul.AgentConfig
...
There were two `ConsulConfig` structs running around, one of them
needed to go away. Rely on the package's path to provide context
for the type of AgentConfig.
2016-06-10 15:48:36 -04:00
Diptanu Choudhury
269a28d5b3
Fixing the client test
2016-05-11 16:58:14 -07:00
Alex Dadgar
a6eb1ec98a
Fix test
2016-02-21 21:15:02 -08:00
Alex Dadgar
6b3c22e91a
Batch client allocation updates to the server
2016-02-21 21:15:02 -08:00
Ivo Verberk
035cc02c65
Reregister node when periodic fingerprint changes node properties
2016-02-03 21:10:58 +01:00
Alex Dadgar
410ae593e7
Fix double pull with introduction of AllocModifyIndex
2016-02-01 15:43:59 -08: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
Alex Dadgar
e91abac0f6
Fix a bunch of tests
...
Up timeouts
trusty travis beta
Increase timeouts
2016-01-20 16:03:53 -08:00
max
7ff03041d7
Client config option "fingerprint.whitelist"
2015-11-24 16:18:49 +01:00
Alex Dadgar
a8fd3310e8
Tests
2015-11-19 16:43:08 -08:00
Alex Dadgar
7357979089
Revert "Revert "Make drivers take arguments as a list and not as a string""
2015-11-18 15:16:42 -08:00
Alex Dadgar
d666f5bde1
Revert "Make drivers take arguments as a list and not as a string"
2015-11-18 13:46:43 -08:00
Alex Dadgar
d0ebac1513
More test fixes
2015-11-18 12:30:42 -08:00
Alex Dadgar
87dd4dd0c7
Client Restore test
2015-11-10 16:03:18 -08:00
Alex Dadgar
3906dc1afc
Fix client init logging and test
2015-09-25 18:12:11 -07:00
Alex Dadgar
8a5e65e27a
Merge qemu test
2015-09-25 16:49:14 -07:00
Ryan Uber
929de526b9
client: support modifying the servers list
2015-09-24 20:16:47 -07:00
Alex Dadgar
289a9766f3
Update package import name
2015-09-22 18:48:42 -07:00
Alex Dadgar
891d8b8f47
Guard tests
2015-09-22 17:10:03 -07:00
Armon Dadgar
c9d17611bf
nomad: rename region1 to global. Fixes #41
2015-09-13 18:18:40 -07:00
Ryan Uber
5b7073b294
client: init the alloc dir
2015-09-12 11:47:44 -07:00