Michael Schurter
2aa235f8f2
Rename InitializationMessage to DriverMessage
2016-12-20 11:51:09 -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
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
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
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
Michael Schurter
fbcc0ddbf5
Failure to resolve advertise address isn't fatal
2016-11-08 11:17:22 -08:00
Michael Schurter
c735589f41
Choose safer default advertise address
...
* -dev mode defaults bind & advertise to localhost
* Normal mode defaults bind to 0.0.0.0 & advertise to the resolved
hostname. If the hostname resolves to localhost it will refuse to
start and advertise must be manually set.
2016-11-08 11:17:16 -08:00
Diptanu Choudhury
a1b4b20eff
Changing the API to use the new servermember datastructure
2016-11-06 10:30:43 -08:00
Diptanu Choudhury
9e0507e878
Add an RPC endpoint for server members
2016-11-06 10:16:12 -08:00
Diptanu Choudhury
15f085a4d7
Merge pull request #1931 from hashicorp/rename-vault-config
...
Rename vault config
2016-11-06 10:14:25 -08:00
Diptanu Choudhury
98bd0e2100
Disable http checks if TLS is enabled
2016-11-03 17:33:58 -07:00
Diptanu Choudhury
b6f9df5415
Renaming TLS related vault config
2016-11-03 14:24:39 -07:00
Seth Vargo
4a1fa67f26
Separate agent configuration into its own pages
...
I apologize in advance for the rather long PR, but unfortunately there
is not an easy way to break this up into smaller chunks. This separates
the agent configuration into smaller, more consumable pieces just like
the job specification.
2016-11-02 18:30:00 -04:00
Diptanu Choudhury
808718523b
Merge pull request #1909 from hashicorp/region-wrapper
...
Making Nomad TLS configs region aware
2016-11-01 14:31:39 -07:00
Michael Schurter
536c2921e9
Remove ServerName because we verify based on region
2016-11-01 14:17:31 -07:00
Alex Dadgar
ebe4b7893b
Merge branch 'master' of github.com:hashicorp/nomad
2016-11-01 13:24:07 -07:00
Alex Dadgar
75696f4c70
Resolve
2016-11-01 13:23:44 -07:00
Alex Dadgar
1156c79e1b
Read from env
2016-11-01 12:37:27 -07:00
Seth Vargo
8baa0f8341
Merge pull request #1901 from hashicorp/sethvargo/more_docs
...
Update init command and add ephemeral_disk docs
2016-10-31 21:53:03 -04:00
Seth Vargo
90fad382cf
Address feedback
2016-10-31 21:52:45 -04:00
Alex Dadgar
674e572d35
Merge pull request #1902 from hashicorp/b-advertise
...
Allow advertise to not specify port
2016-10-31 18:17:30 -07:00
Alex Dadgar
d037c4ffe9
Check that advertise without ports works in test
2016-10-31 18:08:49 -07:00
Diptanu Choudhury
f0afdde81f
Merge branch 'master' of github.com:hashicorp/nomad
2016-10-31 17:50:58 -07:00
Diptanu Choudhury
724d537104
Added the migrate flag to init
2016-10-31 17:50:07 -07:00
Alex Dadgar
376651bcb2
Allow advertise to not specify port
2016-10-31 17:12:29 -07:00
Seth Vargo
e30f92e6da
Update docs on the sample command
2016-10-31 19:55:40 -04:00
Seth Vargo
358aa6a260
Fix typo
2016-10-31 16:52:56 -04:00