Commit Graph

1709 Commits

Author SHA1 Message Date
Alex Dadgar
c89fd0eb08 Clean up vault client 2016-09-14 18:10:56 -07:00
Alex Dadgar
bec6adb2ee Vault token threaded 2016-09-14 13:30:01 -07:00
Alex Dadgar
afee832f2c syscall error 2016-09-02 15:00:46 -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
ca906ac660 small fixes 2016-09-01 13:38:31 -07:00
Alex Dadgar
f9391f041c Fingerprint 2016-09-01 11:10:14 -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
Michael Schurter
5f04e2a398 Merge pull request #1668 from hashicorp/b-fix-consul-updates
Fix old services not getting removed from consul on update
2016-08-31 17:17:09 -07:00
Alex Dadgar
dfab22cd9f environment variables 2016-08-31 13:56:11 -07:00
Alex Dadgar
46ce8dd020 Interface + tests 2016-08-30 21:40:32 -07:00
Vishal Nayak
c4744e2632 Merge pull request #1606 from hashicorp/f-vault-client
VaultClient for Nomad client's interactions with Vault
2016-08-30 13:13:54 -04:00
vishalnayak
13d97f01bb Print debug message only when error is non-nil 2016-08-30 13:14:34 -04:00
vishalnayak
68b1b30bf5 Addressed review feedback 2016-08-30 13:08:13 -04:00
vishalnayak
082d5e58a4 Return only fatal error to renewal error channel 2016-08-30 12:46:59 -04:00
vishalnayak
dd26f9b4bf Fix tests 2016-08-29 21:30:06 -04:00
vishalnayak
72d2e9d2dd tokenDeriver function pointer to derive tokens.
Remove rpc*, connPool, node and region from vaultclient.
2016-08-29 20:32:05 -04:00
Alex Dadgar
0ebdff2bb7 Secret dir, hello world 2016-08-29 15:41:52 -07:00
vishalnayak
603d7b09d8 Use Job.LookupTaskGroup 2016-08-29 16:34:39 -04:00
vishalnayak
7f919c9d74 Address review feedback 2016-08-29 12:47:33 -04:00
Alex Dadgar
b813362ece Make maxSize exported so that it is serialized 2016-08-28 17:48:35 -07:00
Michael Schurter
53d7dfb1b7 Remove unused embedded lock on ExecContext 2016-08-26 11:58:03 -07:00
Michael Schurter
40e1ffd6ba Merge pull request #1653 from hashicorp/b-fix-artifact-retry
Don't fail other tasks when retrying artifact get
2016-08-26 09:53:39 -07:00
Michael Schurter
5b0dd7ff2b Make sure bad doesn't fail before web runs 2016-08-25 17:25:51 -07:00
Michael Schurter
bbce6c7ad1 Ensure bad task reaches terminal state within test 2016-08-25 16:05:19 -07:00
Michael Schurter
2a88e48f07 Ensure web task exited successfully
Web task should run to completion successfully while the `bad` task is
retrying artifact downloads.
2016-08-25 14:42:50 -07:00
Michael Schurter
d1da2ce020 Don't fail other tasks when retrying artifact get
The artifact fetching may be retried and succeed, so don't set the task
as dead.

Fixes #1558
2016-08-25 13:16:41 -07:00
Ivo Verberk
42afc6b80b Small comment fix. 2016-08-25 20:50:11 +02:00
Ivo Verberk
0d13488f1f Monitor the complete alloc directory, not just the shared part. 2016-08-25 20:48:19 +02:00
Ivo Verberk
a97432107b Don't duplicate TaskKilled event and check for TaskSiblingFailed. 2016-08-25 20:11:10 +02:00
Diptanu Choudhury
25f60ed10b Fixed the raw_exec fingerprint test 2016-08-24 13:38:43 -05:00
Diptanu Choudhury
d2b072c7a6 fixed the qemu fingerprinter test 2016-08-24 12:25:02 -05:00
vishalnayak
04fab3bc81 Employ DeriveVaultToken API and flesh-up DeriveToken 2016-08-24 12:29:59 -04:00
vishalnayak
6b83d07070 VaultClient for Nomad Client 2016-08-24 09:43:45 -04:00
Diptanu Choudhury
e93ff0af02 Fixed a java test 2016-08-23 16:51:09 -05:00
Diptanu Choudhury
3f9ca48802 fixed the exec fingerprinter test 2016-08-23 16:40:56 -05:00
Diptanu Choudhury
2ef1d7e949 removing driver_mock 2016-08-23 16:05:03 -05:00
Alex Dadgar
0546ca65aa Fix TestDockerDriver_Fingerprint 2016-08-23 10:39:40 -07:00
Alex Dadgar
1c45799c49 Merge pull request #1580 from hashicorp/f-disk-usage-monitoring
Monitor and enforce shared allocation directory disk usage
2016-08-23 09:49:53 -07:00
Diptanu Choudhury
92fc6ba32f Putting the mock driver behind a build flag 2016-08-22 15:02:28 -05:00
Diptanu Choudhury
025f3b424a blocking chained allocations until previous allocation hasn't terminated 2016-08-22 11:34:24 -05:00
Kenjiro Nakayama
a0d1c7d344 driver.docker: tiny: debug messages output task name instead of image name 2016-08-21 19:51:32 +09:00
Alex Dadgar
1cafd04c94 handle the upgrade case 2016-08-18 19:01:24 -07:00
Ivo Verberk
13071e9846 Disk resource monitoring and enforcement 2016-08-18 07:59:03 +02: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
Alex Dadgar
4efecc01ea Pass Vault config to client 2016-08-17 16:23:29 -07:00