Diptanu Choudhury
536fdde121
Added a test
2017-04-08 13:44:21 -07:00
Alex Dadgar
719bddaaec
Merge branch 'f-ipv6-fingerprint' of github.com:hashicorp/nomad into f-ipv6-fingerprint
2017-04-07 18:37:19 -07:00
Diptanu Choudhury
bee4b57368
Removed redundant code
2017-04-07 18:28:22 -07:00
Alex Dadgar
f05c3fe233
Merge branch 'master' into f-ipv6-fingerprint
2017-04-07 17:11:24 -07:00
Diptanu Choudhury
ad00ec861b
Ignoring link local addresses
2017-04-07 16:04:36 -07:00
Alex Dadgar
3a9763aac6
Merge pull request #2535 from clinta/docker-ip
...
Allow specifying container IP with docker driver
2017-04-07 12:59:12 -07:00
Clint Armstrong
5f4716b4ea
Allow specifying container IP with docker driver
2017-04-07 11:56:07 -04:00
Michael Schurter
df30a110fb
Create AssertUntil helper func
2017-04-06 17:05:09 -07:00
Diptanu Choudhury
94f9542a04
Finding the appropriate cidr block
2017-04-06 16:04:59 -07:00
Michael Schurter
985bde83d6
Improve test timings
...
1234ms was far longer than needed and not sleeping between iterations
was just mean.
2017-04-06 11:10:36 -07:00
Michael Schurter
11206c7c3e
Require TLS for server RPC when enabled
...
Fixes #2525
We used to be checking a RequireTLS field that was never set. Instead we
can just check the TLSConfig.EnableRPC field and require TLS if it's
enabled.
Added a few unfortunately slow integration tests to assert the intended
behavior of misconfigured RPC TLS.
Also disable a lot of noisy test logging when -v isn't specified.
2017-04-06 09:34:36 -07:00
Diptanu Choudhury
8b93d40298
Making the fingerprinter support ipv6 ips
2017-04-06 01:06:32 -07:00
Alex Dadgar
1dbd63ad2a
Split driver tests
2017-04-04 15:12:14 -07:00
Alex Dadgar
1458d9b35a
Split task runner tests
2017-04-04 15:02:09 -07:00
Alex Dadgar
c934063713
FinishedAt only records when the task has actually started
2017-03-31 17:06:05 -07:00
Alex Dadgar
d212f6fe94
Track task start/finish time & improve logs errors
...
This PR adds tracking to when a task starts and finishes and the logs
API takes advantage of this and returns better errors when asking for
logs that do not exist.
2017-03-31 16:14:11 -07:00
Alex Dadgar
4596542197
Fix variable capture and add tests
...
This PR fixes token revocation and adds tests to make sure it is
working. The 0.5.6 RC1's token revocation does not work becasue the
token's value is captured at the instantiation of the deferred
stoprenewal statement rather than its exectution.
2017-03-29 13:17:50 -07:00
Robert Neumayer
46dcbc5c5e
Fix typo and be consistent in naming
2017-03-29 09:33:54 +02:00
Michael Schurter
4d3c571859
Merge pull request #2482 from hashicorp/f-2289-better-artifact-err
...
Improve artifact download error message
2017-03-28 12:48:22 -07:00
Michael Schurter
ae9d49502a
Recoverable struct field must be exported
2017-03-28 12:18:57 -07:00
Michael Schurter
7f2bbe70c1
Merge branch 'master' into b-2491-task-env
2017-03-28 11:28:00 -07:00
Alex Dadgar
87474b7c37
Merge pull request #2495 from hashicorp/b-vault-stop-renew
...
Stop Vault token renew on task exit
2017-03-28 11:14:18 -07:00
Alex Dadgar
d698288f3a
Merge pull request #2461 from hashicorp/b-groups
...
Various fixes for setting user/group of task
2017-03-28 11:13:27 -07:00
Alex Dadgar
3750f97ac6
Merge pull request #2488 from hashicorp/f-node-values-template
...
Access Node Meta and Attrs in template
2017-03-28 11:10:29 -07:00
Alex Dadgar
d1562194a9
feedback
2017-03-28 11:10:11 -07:00
Michael Schurter
1ead3cae6e
Make test more accurate and add changelog entry
2017-03-28 10:53:26 -07:00
Alex Dadgar
c6a796e67f
Stop Vault token renew on task exit
...
This PR fixes an oversight in which the client would attempt to renew a
token even after the task exits.
Fixes https://github.com/hashicorp/nomad/issues/2475
2017-03-28 10:53:15 -07:00
Michael Schurter
24d27fce83
Don't take a reference a var in a loop
...
Fixes #2491
2017-03-28 10:16:27 -07:00
Michael Schurter
6a4e1d1709
Recoverable is a method now, not a field
2017-03-27 15:41:35 -07:00
Michael Schurter
76c909bc9e
Add WrapRecoverable helper
2017-03-27 15:37:15 -07:00
Alex Dadgar
63978511be
Access Node Meta and Attrs in template
...
This PR allows accessing the Node's attributes and metadata as in a
template.
```
template {
data = "{{ env \"attr.unique.network.ip-address\" }}"
destination = "local/out"
}
```
2017-03-27 15:15:33 -07:00
Alex Dadgar
564367fa71
Proper reference counting through task restarts
...
This PR fixes an issue in which the reference count on a Docker image
would become inflated through task restarts.
2017-03-25 17:05:53 -07:00
Michael Schurter
774cb8dd9b
Improve artifact download error message
...
Fixes #2289
Unfortunately took more RecoverableError hijinx than I would have liked.
There might be a better way.
2017-03-24 15:26:05 -07:00
Alex Dadgar
0021961361
Fix vet
2017-03-24 12:24:47 -07:00
Alex Dadgar
9cf4bcab71
Fix panic when restarting non-running task
...
This PR fixes an issue that is hit when running templates with restart
mode in which the client could panic when the handle is not running.
Fixes https://github.com/hashicorp/nomad/issues/2479
2017-03-24 12:04:22 -07:00
Alex Dadgar
67c07c9932
Various fixes for setting user/group of task
...
This PR fixes two issues:
* Folder permissions in -dev mode were incorrect and not suitable for
running as a particular user.
* Was not setting the group membership properly for the launched
process.
Fixes https://github.com/hashicorp/nomad/issues/2160
2017-03-20 14:21:13 -07:00
Michael Schurter
ca7a931492
Fix test deadlock due to alloc runner not running
...
Don't actualy call AllocRunner.Run() because that executes so much
unneeded code for this test. Manually close the waitCh to simulate Run()
exiting.
2017-03-16 13:22:08 -07:00
Michael Schurter
693d89d51c
Fix test by adding new env vars
2017-03-14 17:15:12 -07:00
Alex Dadgar
0e61a36564
return the recoverable err
2017-03-14 16:33:36 -07:00
Alex Dadgar
bfebe1afdc
rename cpu_total_compute and docs
2017-03-14 14:15:49 -07:00
Alex Dadgar
a6067d5667
Docker doesn't need to init the stats helper
2017-03-14 13:41:57 -07:00
Alex Dadgar
36dc330737
Various fixes
...
This PR:
* Uses Go 1.8 executable lookup
* Stores any err message from stats init method
* Allows overriding of Cpu Compute for hosts where it can't be detected
2017-03-14 12:56:31 -07:00
Alex Dadgar
97a4e136a6
Merge pull request #2427 from hashicorp/f-gc-limit
...
Limit parallelism during garbage collection
2017-03-14 10:45:29 -07:00
Alex Dadgar
38ebed5e0e
Review fixes
2017-03-14 10:45:15 -07:00
Michael Schurter
7605d9a406
Merge pull request #2408 from hashicorp/b-2358-rkt-volume-name
...
Replace `_` with `-` in task names for rkt volumes
2017-03-14 10:10:00 -07:00
Michael Schurter
f44347647c
Merge pull request #2426 from hashicorp/f-tg-port-ip-env-var
...
Add NOMAD_{IP,PORT}_<task>_<label> env vars
2017-03-13 12:00:59 -07:00
Alex Dadgar
637aff7819
Handle git ssh artifacts
...
This PR adds handling for downloading git artifacts using ssh with the
format git@github.com:hashicorp/go-getter.git
Fixes https://github.com/hashicorp/nomad/issues/2430
2017-03-11 15:12:41 -08:00
Alex Dadgar
ea18d6f309
TODO
2017-03-11 13:56:19 -08:00
Alex Dadgar
8caf9ebb8d
Merge pull request #2424 from jen20/solaris-alloc-dirs
...
client/allocdir: Add missing functions on Solaris
2017-03-11 13:55:38 -08:00
Alex Dadgar
050cdd5b14
remove escape
2017-03-10 16:46:22 -08:00