Commit Graph

9954 Commits

Author SHA1 Message Date
Michael Schurter 2bf1d6d85e rkt: Don't require port_map with host networking
Also don't try to return a DriverNetwork with host networking. None will
ever exist as that's the point of host networking: rkt won't create a
network namespace.
2017-12-01 17:23:25 -08:00
Michael Schurter 288e94302e Add changelog entry for #3608 2017-12-01 15:59:42 -08:00
Chelsea Holland Komlo 4ee2122536 get KillTimeout in seconds, not nanoseconds 2017-12-01 10:43:00 -05:00
Chelsea Komlo 297c4ddbf9
Merge pull request #3611 from jens-solarisbank/master
Fix typos in metric names. #3610
2017-12-01 10:25:18 -05:00
Jens Herrmann 5680fcccc2 Fix typos in metric names. #3610 2017-12-01 15:24:14 +01:00
Michael Schurter 2cbde16b9b Add check for Windows ECONNRESET 2017-11-30 21:30:20 -08:00
Michael Schurter 3e8e3aac70 Add defensive check to safeguard from future #3342s
I hate adding "this should never happen" checks, but causing a tight
loop that OOMs Nomad is just too easy in this code otherwise.
2017-11-30 20:37:13 -08:00
Michael Schurter 29d86eb348 Fix race in framer and improperly returned err
Fixes #3342

Two bugs were fixed:

* Closing the StreamFramer's exitCh before setting the error means other
  goroutines blocked on exitCh closing could see the error as nil. This
  was *not* observered.
* parseFramerError on Windows would fall through and return an
  improperly captured nil err variable. There's no need for
  parseFramerError to be a closure which fixes the confusion.
2017-11-30 17:42:53 -08:00
Michael Schurter 5c00d10fe2 Update tail, x/sys, and fsnotify deps 2017-11-30 15:52:43 -08:00
Michael Lange 94ebdc652f
Merge pull request #3603 from hashicorp/f-ui-placement-failures
UI Placement Failures & Evaluations
2017-11-30 13:36:34 -08:00
Charlie Voiselle c057a2786e
Merge pull request #3602 from angrycub/b-namespace-cli-prefix-collision-fix
Handle exact namespace match properly when also matched as prefix
2017-11-30 15:18:19 -05:00
Michael Lange 956e967ffd Acceptance tests for evaluations 2017-11-29 20:12:45 -08:00
Michael Lange f3acc8bd6d Fixes an off by one bug in the ipv6 generator function
Sigh.
2017-11-29 20:12:13 -08:00
Michael Lange d663f7ea70 Mirage magic for evaluations 2017-11-29 20:12:13 -08:00
Michael Lange bd7a474c28 Be clear about what the placment failures number next to task groups is 2017-11-29 20:12:12 -08:00
Michael Lange 4451265b79 List placement failures on the job detail page 2017-11-29 20:12:12 -08:00
Michael Lange d1277ac933 Add a table of evaluations to the job detail page 2017-11-29 20:12:12 -08:00
Michael Lange 4e3b58a24a Associate jobs, task groups, and evaluations 2017-11-29 20:12:12 -08:00
Michael Lange 8240f99769 Models evaluation data 2017-11-29 20:12:12 -08:00
Michael Lange f747cc79e4 Revert "UI Placement failures""
This reverts commits
141ecd8d9170f56c8302b5c776532e6d287a40e3
d2d838c2de08aac716a9431d9720b5c12bb19ba1
8099db433641429816e8479c6d23116269f744c0
86262b3ceff607627a9c9e0e25eb81b9b5ee739c
eb4104ec528982e0ee6ae9a05fb0460e53139f3f
0e0e23e238017815bdb6dcfbc056275b3deaacca
6d45658d77fb4c40760a63cced71b74757356e48
b52a8176e85b9c6f13ec012f7fce2ec3df1c8751
2017-11-29 20:03:39 -08:00
Michael Lange 961926880a Acceptance tests for evaluations 2017-11-29 19:46:28 -08:00
Michael Lange 84c9fb20f3 Fixes an off by one bug in the ipv6 generator function
Sigh.
2017-11-29 19:46:27 -08:00
Michael Schurter 0b12984552 Add atomic migrations to changelog and docs 2017-11-29 17:27:13 -08:00
Michael Schurter 5e975bbd0f Add comment and normalize err check ordering
as per PR comments
2017-11-29 17:26:11 -08:00
Michael Schurter d996c3a231 Check for error file when receiving snapshots 2017-11-29 17:26:11 -08:00
Michael Schurter ca946679f6 Destroy partially migrated alloc dirs
Test that snapshot errors don't return a valid tar currently fails.
2017-11-29 17:26:11 -08:00
Michael Schurter 23c66e37c5 Handle errors during snapshotting
If an alloc dir is being GC'd (removed) during snapshotting the walk
func will be passed an error. Previously we didn't check for an error so
a panic would occur when we'd try to use a nil `fileInfo`.
2017-11-29 17:26:11 -08:00
Charlie Voiselle c563aa7bd9 gofmt changes 2017-11-29 19:43:19 -05:00
Charlie Voiselle 8ef6964817 Handle exact namespace match properly when also matched as prefix
This fixes an issue with the nomad namespace inspect and nomad namespace status commands failing to run for namespaces whose names are the start of another namespace's name: for example, foo and foobar. If the argument matches the first possibility returned by prefix exactly, that namespace will be targetted. If no exact match occurs, the behavior is unchanged.
2017-11-29 19:40:08 -05:00
Michael Lange 2ed76e50e3 Mirage magic for evaluations 2017-11-29 16:30:33 -08:00
Michael Lange 3b184b974b Be clear about what the placment failures number next to task groups is 2017-11-29 16:30:33 -08:00
Michael Lange 3a1652ba83 List placement failures on the job detail page 2017-11-29 16:30:33 -08:00
Michael Lange 1d5b67b9bf Add a table of evaluations to the job detail page 2017-11-29 16:30:33 -08:00
Michael Lange d434a62563 Associate jobs, task groups, and evaluations 2017-11-29 16:30:33 -08:00
Michael Lange 6be9d7e919 Models evaluation data 2017-11-29 16:30:33 -08:00
Chelsea Holland Komlo 2e159fe01e add changelog 2017-11-29 15:27:50 -05:00
Chelsea Holland Komlo 2208964948 Support StopTimeout for Docker tasksw
Update github.com/fsouza/go-dockerclient
2017-11-29 14:33:05 -05:00
Michael Lange ec15b90d3a
Merge pull request #3564 from hashicorp/f-ui-log-streaming
UI: Log streaming
2017-11-29 09:36:41 -08:00
Chelsea Komlo 8d786d82a8
Merge pull request #3597 from tbartelmess/b-fix-exhaustion-strings
Changed Superset to only return the resource name
2017-11-29 11:19:18 -05:00
Chelsea Komlo ae08b0b8fe
Merge pull request #3598 from jrasell/patch-3
Update community.html.erb to include Levant.
2017-11-29 10:23:27 -05:00
James Rasell 2dbfec4d4c
Update community.html.erb to include Levant.
This change requests that Levant be added to the Nomad community page. Levant is an open source templating and deployment tool for HashiCorp Nomad jobs that provides realtime feedback and detailed failure messages upon deployment issues. Further details about Levant can be seen on the [jrasell/levant](https://github.com/jrasell/levant) GitHub page.
2017-11-29 12:39:28 +01:00
Thomas Bartelmess 9acfa166c0
Changed Superset to only return the resource name
The Superset method on Resources used to return a string in the format of “[resource name] exhausted”.
This was leading to the output in plan/create job API DimensionExhausted to return keys like
```
"DimensionExhausted": {"cpu exhausted": 1}
```
This was not anywhere documented, however, one of the examples on the website showed it like this.

The other side effect of this is that the CLI formats the strings from the name of the key leading to output like
```
* Dimension "cpu exhausted" exhausted on 1 nodes
```
2017-11-28 23:16:08 -05:00
Michael Schurter ed36bf29ea
Merge pull request #3596 from tbartelmess/b-min-resource-errors
Fixed error messges for MeetsMinResources
2017-11-28 18:20:20 -07:00
Thomas Bartelmess 60e4c777ac
Fixed error messges for MeetsMinResources 2017-11-28 19:44:33 -05:00
Chelsea Komlo fc8f670b02
Merge pull request #3583 from neojin/update-docs-api-regions
update API docs for /regions endpoint
2017-11-28 10:00:31 -05:00
Chelsea Komlo bf389ed3f3
Merge pull request #3584 from neojin/update-api-docs-client-gc
API docs: /client/gc returns text/plain, not json
2017-11-28 09:59:12 -05:00
Chelsea Komlo 733fabfd8a
Merge pull request #3590 from yurisklar/master
Fix Website Docs for Periodic jobs TimeZone
2017-11-28 09:54:00 -05:00
Kyle Havlovitz ee80314627 Add missing exist checks and doc line 2017-11-27 14:46:37 -08:00
Iurii Skliar 71718db753 Fix Website Docs for Periodic jobs TimeZone 2017-11-27 18:06:26 +01:00
Jin Lee d669eb6b5c /client/gc returns text/plain, not json 2017-11-23 10:15:33 -08:00