Commit Graph

1024 Commits

Author SHA1 Message Date
Michael Schurter
6235122b55 Fix tests post rebase 2017-01-06 11:39:13 -08:00
Alex Dadgar
248c069652 Merge pull request #2128 from hashicorp/f-dispatch
Nomad Constructor Jobs and Dispatch
2017-01-06 05:22:49 +08:00
Alex Dadgar
5031075b7c Merge pull request #2098 from jorgemarey/f-telemetry-nodename
Allow to set the nodename on telemetry
2017-01-04 03:33:48 +08:00
Cameron Stokes
ca33d0e5cc Errant colon in logs usage. 2016-12-24 17:12:16 -08:00
Cameron Stokes
48e99e01f1 Fix inconsistencies in usage cli output. 2016-12-24 12:39:33 -08:00
Jorge Marey
a39cebb744 Add option to set nodename instead of hostname on telemetry values 2016-12-21 09:53:29 +01:00
Michael Schurter
fccf115c56 Merge pull request #2054 from hashicorp/f-prestart
Add Driver.Prestart method
2016-12-20 16:18:56 -08:00
Diptanu Choudhury
e42ce28ae7 Added two tests 2016-12-20 14:27:38 -08:00
Michael Schurter
750d59773c Rename InitializationMessage to DriverMessage 2016-12-20 11:51:09 -08:00
Diptanu Choudhury
a709731258 Updated changelog and fixed tests 2016-12-20 11:32:17 -08:00
Diptanu Choudhury
dabb8de14e Merge pull request #2081 from hashicorp/f-gc
Garbage collector for allocations
2016-12-20 11:19:32 -08:00
Diptanu Choudhury
7ebe4a6972 Added comments 2016-12-20 10:49:48 -08:00
Diptanu Choudhury
26e766e81a Merge pull request #2032 from hashicorp/b-allocs
Making the status command return the allocs of currently registered job
2016-12-19 18:10:27 -08:00
Diptanu Choudhury
e5ca8f4709 Added comments 2016-12-19 18:10:02 -08:00
Alex Dadgar
6f2e7527d7 Fix test 2016-12-18 16:54:12 -08:00
Alex Dadgar
c2cb2cc11f Fix test and prevent job with payload from being submitted 2016-12-18 16:32:14 -08:00
Justin Walz
a8a53ee01e show desired status and description for allocation 2016-12-15 15:15:29 -08:00
Brian Shumate
e3becf726c Help text grammar updates
- Grammar change in usage info text
- Capitalization in stats retrieval error text
- Typo in outputTaskResources stats comment
2016-12-15 12:31:29 -05:00
Alex Dadgar
bf9355ac4f Children fixes + nomad status outputs summaries
Children object is always initialized instead of lazily.
`nomad status` outputs children summaries and has specialized view for
constructor jobs.
2016-12-14 16:58:54 -08:00
Alex Dadgar
2ba26fc413 dispatch help 2016-12-14 15:19:27 -08:00
Diptanu Choudhury
615fbbe17a Added a garbage collector for allocations 2016-12-14 15:01:12 -08:00
Alex Dadgar
e495eecece Rename structs 2016-12-14 14:28:43 -08:00
Alex Dadgar
a6933ed9aa comment 2016-12-09 17:51:50 -08:00
Alex Dadgar
23dee058c7 fix high cpu usage + faster encoding 2016-12-09 17:33:10 -08:00
Alex Dadgar
723f8f0343 Benchmark 2016-12-09 14:44:50 -08:00
Alex Dadgar
2b50359edf Fix FD leak 2016-12-09 10:49:39 -08:00
Alex Dadgar
ef778d7c92 Dispatch command 2016-12-05 15:10:23 -08:00
Michael Schurter
cd3dab959e Merge pull request #2009 from hashicorp/f-use-embedded-consul
Add a chaos test for consul syncer and fix some races it found
2016-12-05 10:55:47 -08:00
Alex Dadgar
2868a77d74 start of the cli command 2016-12-04 21:22:13 -08:00
Michael Schurter
19fd195f79 Add SyncNow test 2016-12-02 16:44:18 -08:00
Michael Schurter
ec4a0d2a22 Don't require serf advertise address for clients 2016-12-02 11:07:00 -08:00
Michael Schurter
ee17940dfe Add Driver.Prestart method
The Driver.Prestart method currently does very little but lays the
foundation for where lifecycle plugins can interleave execution _after_
task environment setup but _before_ the task starts.

Currently Prestart does two things:

* Any driver specific task environment building
* Download Docker images

This change also attaches a TaskEvent emitter to Drivers, so they can
emit events during task initialization.
2016-12-02 11:03:48 -08:00
Alex Dadgar
9dc2f63240 agent tests 2016-12-01 16:27:22 -08:00
Alex Dadgar
d978c008d3 Decompress 2016-11-28 16:05:56 -08:00
Alex Dadgar
2048fb20c0 Merge pull request #2007 from hashicorp/b-stream-framer-panic
Fixes race on StreamFramer Destroy
2016-11-28 12:57:28 -08:00
Michael Schurter
4eb30022b2 Use net.JoinHostPort instead of fmt.Sprintf
Using fmt.Sprintf breaks IPv6 addresses.
2016-11-28 10:38:54 -08:00
Alex Dadgar
14de95f97f dispatch beginning 2016-11-25 18:04:55 -08:00
Diptanu Choudhury
5eb4e8adb3 Making the status command return the allocs of currently registered job 2016-11-24 16:31:30 +01:00
Michael Schurter
5202944edb Remove lie from comment 2016-11-18 11:05:22 -08:00
Michael Schurter
ec4ce3bbe2 Fix incorrect lock usage around consul maps 2016-11-18 10:12:02 -08:00
Michael Schurter
f0c58d5fcb Fix SyncNow 2016-11-18 10:12:02 -08:00
Michael Schurter
eda45a65d1 New chaos test to exercise consul syncer 2016-11-18 10:12:02 -08:00
Alex Dadgar
81e2d53e2d Fixes race on StreamFramer Destroy
This PR:
* Fixes a race in which StreamFramer could panic while closing.
* Simplifies the logic of the StreamFramer
* Removes a potentially leaked goroutine
2016-11-17 20:14:47 -08:00
Alex Dadgar
0f1e5cbea2 Merge pull request #1996 from hashicorp/t-failing-tests
Fix some failing tests
2016-11-15 16:27:19 -08:00
Alex Dadgar
756738d9f1 Fix TestRktDriver_PortsMapping and TestAgent_LoadKeyrings 2016-11-15 15:49:05 -08:00
Alex Dadgar
1d7588a1fc Fix TestRetryJoin 2016-11-15 15:28:21 -08:00
Alex Dadgar
5d4e0f18bc Updated AWS speeds and network_speed now overrides
This PR:

* Makes AWS network speeds more granular
* Makes `network_speed` an override and not a default
* Adds a default of 1000 MBits if no network link speed is detected.

Fixes #1985
2016-11-15 13:55:51 -08:00
Michael Schurter
240318741a Switch syncer tests to use embedded consul 2016-11-15 10:22:25 -08:00
Alex Dadgar
1c4575fa06 Fix indent 2016-11-10 16:00:17 -08:00
Alex Dadgar
96cbf337c1 Move parsing of vault token above validation such that it works in dev mode 2016-11-10 11:47:43 -08:00