Carlos Diaz-Padron
eeaa84d52e
Refactor out userLookup to helper package
...
Also replaces user.Lookup in exec driver
2015-12-01 11:59:55 -08:00
Carlos Diaz-Padron
8ef509fbb3
Remove CGO dependency for user lookup in allocdir
...
os/user's user.Lookup requires that the artifact be compiled with CGO
support enabled. This change instead reads /etc/passwd directly.
The code was acquired from docker/docker#1096
2015-11-15 21:26:34 -08:00
Chris Bednarski
c4eabe2736
Merge pull request #412 from hashicorp/f-docker-expose
...
Expose provisioned ports for docker containers
2015-11-13 11:41:13 -08:00
Guillaume Jacquet
f5b5741d89
Fix AWS metadata url
...
Fix URL. It was printing an error message on startup:
```
2015/11/13 15:49:21 [ERR] fingerprint.env_aws: Error querying AWS Metadata URL, skipping
```
By the way is it safe to use latest? Is there a chance that Amazon decides to change the format of the metadata? It could be safer to use something like `http://169.254.169.254/2014-11-05/meta-data `
2015-11-13 11:03:05 -05:00
Chris Bednarski
022a24c25d
Change this to a valid IP address so docker can bind to it
2015-11-12 21:46:59 -08:00
Chris Bednarski
f86392ca44
Expose mapped ports
2015-11-12 17:23:04 -08:00
Diptanu Choudhury
007fc74fc1
Saving state of the Task Runner while it's trying to update it
2015-11-12 15:53:42 -08:00
Alex Dadgar
aec33179e5
Merge pull request #408 from hashicorp/f-client-restore
...
Client Restore State Fixes
2015-11-11 12:32:11 -08:00
Chris Bednarski
33d281f518
Merge pull request #407 from hashicorp/f-docker-host-env
...
Change Docker ENV behavior
2015-11-10 19:30:11 -08:00
Alex Dadgar
6e19dadcae
Check for previous embeds at entry level not folder level
2015-11-10 18:10:02 -08:00
Chris Bednarski
9fd9e33766
Added some comments to the test to explain why we're doing stuff this way
2015-11-10 17:48:06 -08:00
Chris Bednarski
fdd21d3001
Change dockerIs* to accept *testing.T for logging
2015-11-10 17:43:08 -08:00
Alex Dadgar
f28b9e7338
Merge pull request #400 from nak3/fingerprint-test
...
Update fingerprint test codes
2015-11-10 17:06:16 -08:00
Alex Dadgar
a355e5889c
Enable Open tests for Exec/Java
2015-11-10 16:59:52 -08:00
Alex Dadgar
59368b70da
Enable AllocRunner_SaveRestoreState test
2015-11-10 16:53:59 -08:00
Alex Dadgar
69fdac69ed
Update test
2015-11-10 16:49:38 -08:00
Alex Dadgar
a16c94902e
Increase time out
2015-11-10 16:37:17 -08:00
Alex Dadgar
ce8856daf4
Guard mounting dev/ and proc/ and TaskRunner_RestoreState test
2015-11-10 16:35:33 -08:00
Chris Bednarski
4b071f6613
Change Docker fingerprinter to INFO and not error when the connection to the daemon fails; we simply assume docker isn't there.
2015-11-10 16:18:52 -08:00
Alex Dadgar
87dd4dd0c7
Client Restore test
2015-11-10 16:03:18 -08:00
Chris Bednarski
acb8f1debd
Changed behavior for Docker ENV
...
- Docker ENV variables now work the same way in production, dev, and test
- Docker ENV variables are *ignored* if docker.endpoint is present in the Nomad config file
- Remote tests now work correctly
2015-11-10 15:54:31 -08:00
Alex Dadgar
9707f60ddc
Fix alloc_dir mounting through task restarts
2015-11-10 14:12:30 -08:00
Diptanu Choudhury
bd82b0f1ce
Returning back if alloc runner isn't saved
2015-11-09 17:04:53 -08:00
Diptanu Choudhury
056d113ded
Exctracted a method to save the alloc runner state
2015-11-09 16:59:02 -08:00
Diptanu Choudhury
d6de54836e
Inlining error check
2015-11-09 16:45:42 -08:00
Diptanu Choudhury
a797f11f74
Refactored Save State of Alloc runner
2015-11-09 16:15:11 -08:00
Alex Dadgar
d885c6807a
Client restores state properly
2015-11-09 15:55:31 -08:00
Diptanu Choudhury
b350fc8f7f
Returning once we have an error while saving a task that doesn't exist
2015-11-09 12:44:14 -08:00
Diptanu Choudhury
17cab6ebd7
Updating snapshots of a TaskRunner when status of Task changes
2015-11-09 12:36:07 -08:00
Kenjiro Nakayama
b66244b46f
Update fingerprint test codes
2015-11-07 23:16:43 +09:00
Alex Dadgar
923595220e
Merge branch 'master' of https://github.com/hashicorp/nomad
2015-11-06 15:26:11 -08:00
Alex Dadgar
7e996cf4a2
Don't set the alloc status twice when not restarting
2015-11-06 15:26:01 -08:00
Chris Bednarski
45308133c8
Merge pull request #399 from hashicorp/f-windows-networking
...
Use the same network fingerprinter for *nix and windows
2015-11-06 14:04:06 -08:00
Chris Bednarski
472d1db1c0
Merge branch 'master' into f-windows-networking
2015-11-06 13:32:28 -08:00
Alex Dadgar
64a2f07632
Comments on alive
2015-11-06 11:26:14 -08:00
Alex Dadgar
34ccda8cd1
Add Valid command to spawner and make executors check when opening
2015-11-06 11:23:27 -08:00
Alex Dadgar
bf44d3c2ed
Merge pull request #392 from hashicorp/f-raw-exec-use-exec
...
RawExec driver uses exec_basic
2015-11-06 10:48:55 -08:00
Alex Dadgar
e49f3383b6
merge
2015-11-06 10:42:49 -08:00
Alex Dadgar
5ec6aeaa39
Merge
2015-11-06 10:41:42 -08:00
Alex Dadgar
325de0ec35
Docker privileged checks if host enabled it
2015-11-06 10:38:54 -08:00
Alex Dadgar
638f78e48c
Merge pull request #390 from the-control-group/f-docker-driver-options
...
Expanded docker driver options
2015-11-06 10:32:54 -08:00
Alex Dadgar
8ed9655c4c
Merge pull request #391 from hashicorp/f-periodic-fingerprint
...
Add support for periodic fingerprints and make consul periodic
2015-11-05 18:49:42 -08:00
Alex Dadgar
10e19064d9
Make periodic fingerprinting log the error
2015-11-05 18:47:16 -08:00
Diptanu Choudhury
fb8f922f2e
Passing in the AllocID to exec context so that it can be used in the drivers
2015-11-05 18:34:04 -08:00
Shiem Edelbrock
e2f1599604
Fix build
...
returned wrong value, and forot a ":" :/
2015-11-05 17:57:51 -08:00
Diptanu Choudhury
10092b5c05
Merge pull request #393 from hashicorp/f-client-side-restarts
...
Part 2 - Client side restarts
2015-11-05 17:43:04 -08:00
Diptanu Choudhury
f695f687f8
Refactored test
2015-11-05 17:33:03 -08:00
Diptanu Choudhury
64c1a0b18c
Fixed some tests and refactored logic
2015-11-05 17:30:41 -08:00
Diptanu Choudhury
93184d9a45
Incremeneting the counter once we calculate next restart
2015-11-05 17:13:25 -08:00
Diptanu Choudhury
ad44e4eeb5
Added some comments to code
2015-11-05 16:48:15 -08:00