Alex Dadgar
7e918003ba
Allow specification of timezones
2017-02-15 14:37:06 -08:00
Alex Dadgar
0e6b84145c
Fix interval breaking two tests
2017-02-14 17:06:30 -08:00
Alex Dadgar
b6357f96c5
Merge pull request #2308 from hashicorp/f-leader-task
...
Leader task
2017-02-14 11:03:32 -08:00
Alex Dadgar
4432b09e03
Remove old vault status
2017-02-13 10:44:10 -08:00
Alex Dadgar
238b4bcafd
Add Leader support to client
2017-02-10 17:55:19 -08:00
Alex Dadgar
2d4d9b79d8
Operator command/endpoint/documentation
2017-02-09 18:04:46 -08:00
David Bresson
1c81a71f13
avoid nil pointer dereference
2017-02-03 08:39:57 -08:00
David Bresson
e7a7690815
extend config merge test to test merging to empty config
2017-02-03 08:35:18 -08:00
Diptanu Choudhury
d0fe4a67a5
Merging GC related config values
2017-02-02 13:38:11 -08:00
Alex Dadgar
b951b84b44
Merge pull request #2278 from hashicorp/b-consul-merge
...
Fix Consul Config Merging/Copying
2017-02-02 11:39:26 -08:00
Alex Dadgar
7fae2d2cea
Fix Consul Config Merging/Copying
...
This PR fixes config merging/copying code.
Fixes https://github.com/hashicorp/nomad/issues/2264
2017-02-02 11:12:07 -08:00
Alex Dadgar
15ffdff497
Vault Client on Server handles SIGHUP
...
This PR allows the Vault client on the server to handle a SIGHUP. This
allows updating the Vault token and any other configuration without
downtime.
2017-02-01 14:24:10 -08:00
Diptanu Choudhury
11d7cb1230
Making the GC related fields tunable
2017-01-31 15:51:20 -08:00
Alex Dadgar
83106de217
Merge branch 'master' into d-vault
2017-01-27 15:19:34 -08:00
Alex Dadgar
08a32cb93c
Add command line flag for create-from-role
2017-01-27 14:11:34 -08:00
Alex Dadgar
27ebf3da43
Fix typo
2017-01-26 13:07:50 -08:00
Alex Dadgar
9c3d38a645
Respond to comments
2017-01-26 11:34:44 -08:00
Alex Dadgar
c4c94de96e
Dispatch command
2017-01-25 21:27:44 -08:00
Alex Dadgar
a9aa992f0c
Merge pull request #2235 from hashicorp/f-http-logs
...
Logs via a browser
2017-01-23 16:59:37 -08:00
Alex Dadgar
c61f8d2526
Review feedback
2017-01-23 16:58:53 -08:00
Alex Dadgar
9152477890
docs
2017-01-23 16:08:26 -08:00
Alex Dadgar
ab330b96aa
test
2017-01-23 16:04:50 -08:00
Alex Dadgar
6590990263
disallow follow
2017-01-23 15:12:09 -08:00
Alex Dadgar
606bb30863
Merge pull request #2226 from hashicorp/b-vault
...
Improve Vault integration and validation
2017-01-23 14:59:41 -08:00
Michael Schurter
3c7e50bc1b
Fix tests
2017-01-20 17:04:52 -08:00
Michael Schurter
1f7b5b4b47
Rename Constructor -> Parameterized Job
2017-01-20 12:43:10 -08:00
Alex Dadgar
fb86904902
Check capabilities, allow creation against role
...
Check the capabilities of the Vault token to ensure it is valid and also
allow targetting of a role that the token is not from.
2017-01-19 13:40:32 -08:00
Diptanu Choudhury
1999b7eebb
Merge pull request #2159 from hashicorp/b-consul-config
...
Fixed merging consul config
2017-01-18 16:14:54 -08:00
Diptanu Choudhury
e927de02d2
Moved functions to helper from structs
2017-01-18 15:55:14 -08:00
Alex Dadgar
6478167e19
plain w
2017-01-13 13:12:36 -08:00
Diptanu Choudhury
6809a4b104
Added executorconfig
2017-01-12 15:47:58 -08:00
Diptanu Choudhury
dffc0acfc9
Remove unused code
2017-01-12 11:54:19 -08:00
Diptanu Choudhury
b1d0078db5
Filter executor log messages
2017-01-12 11:54:19 -08:00
Michael Schurter
90f6ac7490
Fix tests post rebase
2017-01-06 11:39:13 -08:00
Alex Dadgar
8d5f0fea69
Merge pull request #2128 from hashicorp/f-dispatch
...
Nomad Constructor Jobs and Dispatch
2017-01-06 05:22:49 +08:00
Alex Dadgar
23fcd807cb
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
ce80b5c421
Errant colon in logs usage.
2016-12-24 17:12:16 -08:00
Cameron Stokes
249fd8bf42
Fix inconsistencies in usage cli output.
2016-12-24 12:39:33 -08:00
Jorge Marey
189a49b74d
Add option to set nodename instead of hostname on telemetry values
2016-12-21 09:53:29 +01:00
Michael Schurter
4a9a574d9d
Merge pull request #2054 from hashicorp/f-prestart
...
Add Driver.Prestart method
2016-12-20 16:18:56 -08:00
Diptanu Choudhury
bab81734f5
Added two tests
2016-12-20 14:27:38 -08:00
Michael Schurter
2aa235f8f2
Rename InitializationMessage to DriverMessage
2016-12-20 11:51:09 -08:00
Diptanu Choudhury
9cdd576720
Updated changelog and fixed tests
2016-12-20 11:32:17 -08:00
Diptanu Choudhury
6c11f38cb0
Merge pull request #2081 from hashicorp/f-gc
...
Garbage collector for allocations
2016-12-20 11:19:32 -08:00
Diptanu Choudhury
6e6e0d364a
Added comments
2016-12-20 10:49:48 -08:00
Diptanu Choudhury
25fb7130fd
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
9786708526
Added comments
2016-12-19 18:10:02 -08:00
Alex Dadgar
5d48c492a4
Fix test
2016-12-18 16:54:12 -08:00
Alex Dadgar
4e8035756b
Fix test and prevent job with payload from being submitted
2016-12-18 16:32:14 -08:00
Justin Walz
1f5e78cc87
show desired status and description for allocation
2016-12-15 15:15:29 -08:00
Brian Shumate
f292889970
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
bf1e157bd8
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
5a742528c9
dispatch help
2016-12-14 15:19:27 -08:00
Diptanu Choudhury
afdaa979f7
Added a garbage collector for allocations
2016-12-14 15:01:12 -08:00
Alex Dadgar
4a5c3c8db0
Rename structs
2016-12-14 14:28:43 -08:00
Alex Dadgar
59b47caa86
comment
2016-12-09 17:51:50 -08:00
Alex Dadgar
356fbde803
fix high cpu usage + faster encoding
2016-12-09 17:33:10 -08:00
Alex Dadgar
d82747bd33
Benchmark
2016-12-09 14:44:50 -08:00
Alex Dadgar
3aff765cba
Fix FD leak
2016-12-09 10:49:39 -08:00
Alex Dadgar
1d9bf5e9d5
Dispatch command
2016-12-05 15:10:23 -08:00
Michael Schurter
09ffe4307d
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
a7ce915042
start of the cli command
2016-12-04 21:22:13 -08:00
Michael Schurter
9798e7c7c1
Add SyncNow test
2016-12-02 16:44:18 -08:00
Michael Schurter
407657519f
Don't require serf advertise address for clients
2016-12-02 11:07:00 -08:00
Michael Schurter
770ed703d0
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
244c95b1ce
agent tests
2016-12-01 16:27:22 -08:00
Alex Dadgar
b232dc4c94
Decompress
2016-11-28 16:05:56 -08:00
Alex Dadgar
e42d9ba26b
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
b3ede6a5b7
Use net.JoinHostPort instead of fmt.Sprintf
...
Using fmt.Sprintf breaks IPv6 addresses.
2016-11-28 10:38:54 -08:00
Alex Dadgar
cfd9593e7a
dispatch beginning
2016-11-25 18:04:55 -08:00
Diptanu Choudhury
5191b4d33a
Making the status command return the allocs of currently registered job
2016-11-24 16:31:30 +01:00
Michael Schurter
92f579891c
Remove lie from comment
2016-11-18 11:05:22 -08:00
Michael Schurter
fc1f557a36
Fix incorrect lock usage around consul maps
2016-11-18 10:12:02 -08:00
Michael Schurter
da9a8bbcef
Fix SyncNow
2016-11-18 10:12:02 -08:00
Michael Schurter
57e5e03ccc
New chaos test to exercise consul syncer
2016-11-18 10:12:02 -08:00
Alex Dadgar
7ead95c333
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
c2697123a9
Merge pull request #1996 from hashicorp/t-failing-tests
...
Fix some failing tests
2016-11-15 16:27:19 -08:00
Alex Dadgar
cb187ffce6
Fix TestRktDriver_PortsMapping and TestAgent_LoadKeyrings
2016-11-15 15:49:05 -08:00
Alex Dadgar
6a4efbf3b2
Fix TestRetryJoin
2016-11-15 15:28:21 -08:00
Alex Dadgar
9497991590
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
393efe2579
Switch syncer tests to use embedded consul
2016-11-15 10:22:25 -08:00
Alex Dadgar
29d21daa01
Fix indent
2016-11-10 16:00:17 -08:00
Alex Dadgar
e322f5c070
Move parsing of vault token above validation such that it works in dev mode
2016-11-10 11:47:43 -08:00
Michael Schurter
8b0511713f
Merge pull request #1955 from hashicorp/b-fix-default-advertise
...
Choose safer default advertise address
2016-11-09 16:03:17 -08:00
Michael Schurter
cb1e2d2194
Fix comment
2016-11-09 15:51:00 -08:00
Michael Schurter
c301e696cf
Fix typo in test
2016-11-09 13:16:56 -08:00
matt maier
c6504f3418
Update Circonus integration expose Check Display Name and Check Tags
...
configuration options.
2016-11-09 15:12:30 -05:00
Michael Schurter
fdc5aa5a50
Add unit test for missing port helper func
2016-11-09 11:55:10 -08:00
Michael Schurter
a75e5b5803
Addresses are just addresses - no ports
...
Store address+port in an unexported field for ease-of-use
2016-11-09 11:49:55 -08:00
Diptanu Choudhury
7ea3efbd28
Added a warning message if disk attribute is non zero
2016-11-08 17:06:37 -08:00
Michael Schurter
23de99b1df
Enable dev mode to allow using localhost in tests
2016-11-08 16:35:11 -08:00
Michael Schurter
f1120e4de0
Fix test that fails now that advertise can't be localhost
2016-11-08 16:22:04 -08:00
Michael Schurter
290f71f62e
Restore sync/atomic use for consistency
2016-11-08 16:21:52 -08:00
Michael Schurter
293c596411
Normalize configs for agent tests
2016-11-08 16:13:09 -08:00
Michael Schurter
6d83a192cf
Fix int pointer formatting and server config test
2016-11-08 16:02:20 -08:00
Michael Schurter
4235d65011
Move config normalization into config.go to ease testing
2016-11-08 15:44:10 -08:00
Michael Schurter
1e3a2ae04d
Match old error messages
2016-11-08 15:25:29 -08:00
Michael Schurter
ad07eef9ab
Handle missing ports in addresses
2016-11-08 13:44:41 -08:00
Michael Schurter
2960380055
Refactor getAdvertise into a func
2016-11-08 13:06:56 -08:00
Diptanu Choudhury
a70fbd7cf1
Fixed a test
2016-11-08 13:01:56 -08:00