Commit Graph

7851 Commits

Author SHA1 Message Date
Michael Schurter
3974dfa98c Fix TestAllocRunner_TaskLeader_StopTG
Also make alloc runner tests less racy. Basically every alloc runner
test used to have races with `upd.{Count,Allocs}`
2017-07-21 13:37:16 -07:00
Alex Dadgar
759bcce985 Merge pull request #2881 from hashicorp/f-parallel-command
Parallel nomad/command pkg tests
2017-07-21 11:04:19 -07:00
Alex Dadgar
7ff43e2e30 Release v0.6.0-rc2 2017-07-21 10:02:03 -07:00
Michael Schurter
5a5ade73d4 Forgot to bump version to rc2 2017-07-21 09:39:01 -07:00
Alex Dadgar
9bf9f59f8f Force parallelism on travis 2017-07-20 22:47:10 -07:00
Alex Dadgar
700147c90e Speed up client startup 2017-07-20 22:34:24 -07:00
Alex Dadgar
a77c6a4f71 Parallel 2017-07-20 21:24:21 -07:00
Alex Dadgar
da25a3d5ce Switch to in-process agent 2017-07-20 21:07:32 -07:00
Alex Dadgar
57e34b66ea Undo verbose and parallel on tests 2017-07-20 20:28:31 -07:00
Alex Dadgar
2cf5a7555d Merge pull request #2874 from hashicorp/f-command-agent-tests
Parallelize the command/agent tests and add new test agent
2017-07-20 20:27:49 -07:00
Alex Dadgar
50a58976c6 Fix bootstrapping and waiting 2017-07-20 20:15:37 -07:00
Alex Dadgar
a6af769ec1 Release v0.6.0-rc2 2017-07-20 17:55:48 -07:00
Alex Dadgar
6e315f945d Merge pull request #2868 from hashicorp/f-feedback
Variety of UX fixes
2017-07-20 17:43:42 -07:00
Alex Dadgar
4ad897ae92 Fix test 2017-07-20 17:42:58 -07:00
Alex Dadgar
0c3a75134b changelog 2017-07-20 17:36:47 -07:00
Alex Dadgar
3cd8d50bbc Multiple matched objects now treated as an error condition. 2017-07-20 17:31:07 -07:00
Michael Schurter
a1cdf87df0 Merge pull request #2876 from hashicorp/b-special-case-unix-epoch
Don't display UNIX epoch dates
2017-07-20 17:26:25 -07:00
Michael Schurter
78f7310e53 Mention #2878 in changelog 2017-07-20 17:17:45 -07:00
Michael Schurter
a7a830a980 Merge pull request #2878 from hashicorp/b-save-state
Fix state handling on restart
2017-07-20 17:16:46 -07:00
Michael Schurter
3b422a979f Mention #2877 in changelog 2017-07-20 17:14:46 -07:00
Alex Dadgar
5a2a5bd19e Merge pull request #2875 from hashicorp/b-discount
Handle destructive changes before placements
2017-07-20 17:12:05 -07:00
Michael Schurter
c98104d095 Merge pull request #2877 from kmalec/add-group-name-env
Pass task group name as NOMAD_GROUP_NAME environment variable
2017-07-20 16:51:10 -07:00
Karel Malec
bafe9276ec Pass task group name as NOMAD_GROUP_NAME environment variable 2017-07-21 01:22:54 +02:00
Michael Schurter
2d608d0baf Don't display UNIX epoch dates
Submitted times are UNIX epoch for jobs created before 0.6 which is
confusing in the CLI. Display nothing instead (formatted as "<none>").
2017-07-20 15:43:00 -07:00
Alex Dadgar
c8d763406f Better comment 2017-07-20 12:31:08 -07:00
Alex Dadgar
95fa06a356 Handle destructive changes before placements
This PR updates the generic scheduler to handle destructive changes
before handling placements. This is important because the destructive
change may be due to a lowering of resources. If this is the case, the
handling of the destructive changes first may make it possible for the
placement to happen.

To reason about this imagine there is one node with CPU = 500.

If the group originally had:
* `count = 1`
* `cpu = 400`

And then the job was updated such that the group had:
* `count = 4`
* `cpu = 120`

If the original alloc isn't discounted first, nothing would be able to
place.
2017-07-20 12:24:27 -07:00
Alex Dadgar
6a59fbd44a Update full node test to test more advanced case 2017-07-20 12:23:40 -07:00
Alex Dadgar
bb958ba745 Destroy tasks that are part of terminal alloc 2017-07-20 12:02:04 -07:00
Michael Schurter
738321efa3 Don't save task runner state if it is destroyed 2017-07-20 10:17:41 -07:00
Alex Dadgar
e44da4272b verbose and parallel 2017-07-20 09:57:39 -07:00
Alex Dadgar
a73e945067 More parallel 2017-07-20 09:36:34 -07:00
Alex Dadgar
873587381d New test agent 2017-07-19 22:14:36 -07:00
Alex Dadgar
8ae8f61731 Merge branch 'master' of github.com:hashicorp/nomad 2017-07-19 20:25:35 -07:00
Alex Dadgar
25ada7bbab Don't print atlas 2017-07-19 20:25:06 -07:00
Alex Dadgar
ae2ac8ab58 Should not persist state after alloc_runner is garbage collected 2017-07-19 17:31:30 -07:00
Alex Dadgar
d104ccce6b Blue/green and canary docs 2017-07-19 15:56:41 -07:00
Alex Dadgar
635395a479 Job promote command 2017-07-19 15:39:32 -07:00
Alex Dadgar
b0108e6369 Merge pull request #2863 from hashicorp/b-skip-err
Skip error log on shutdown
2017-07-19 15:19:07 -07:00
Kate Taggart
5457463fde Remove appveyor status from README (for now) 2017-07-19 14:49:26 -07:00
Alex Dadgar
0a1ab6ce9c Inspect job at a particular version 2017-07-19 13:44:30 -07:00
Alex Dadgar
bdb71e7074 Small fixes and UX changes 2017-07-19 13:34:24 -07:00
Alex Dadgar
dedb9127a3 Merge pull request #2866 from hashicorp/f-autocomplete-agent
Agent command autocompletes to hcl/json files
2017-07-19 13:18:32 -07:00
Michael Schurter
0c27ad58e5 Merge pull request #2861 from hashicorp/f-update-raft-serf
Update vendored raft and serf
2017-07-19 12:33:00 -07:00
Michael Schurter
caf451a170 Missing hashicorp/serf/serf dep 2017-07-19 11:53:53 -07:00
Michael Schurter
f91274c163 Update raft to hashicorp/raft@b3d48f1
Pulls in hashicorp/raft#225
2017-07-19 11:53:53 -07:00
Michael Schurter
64f4e06f7d Update serf to hashicorp/serf@bbeddf0 2017-07-19 11:53:53 -07:00
Michael Schurter
6c3a739031 Too lazy to remember the right formatter for floats 2017-07-19 11:53:18 -07:00
Alex Dadgar
8a371e0bd4 Fix predictor 2017-07-19 11:51:01 -07:00
Alex Dadgar
3127ce320c Agent command autocompletes to hcl/json files 2017-07-19 11:28:16 -07:00
Alex Dadgar
2426650286 Merge pull request #2862 from hashicorp/b-reconcile-panic
Fix update limit calculation to avoid panic
2017-07-19 11:19:09 -07:00