Preetha Appan
fefbdd3178
Filter out allocs with DesiredState = stop, and unit tests
2018-03-29 09:28:52 -05:00
Preetha Appan
f62f3d8176
Update rescheduling job specs in integration test
2018-03-29 07:42:10 -05:00
Alex Dadgar
3099ef05e2
Unmark drain when nodes hit their deadline and only batch/system left and add all job type integration test
2018-03-28 17:25:58 -07:00
Michael Schurter
35f42b1fca
Merge pull request #4059 from hashicorp/b-drain-health-svc-only
...
only service allocs should have health watched
2018-03-28 16:49:22 -07:00
Michael Schurter
12dd17affe
only service allocs should have health watched
2018-03-28 16:20:11 -07:00
Michael Lange
b7248824cf
Merge pull request #4063 from hashicorp/b-ui-display-message
...
UI: Read the task event message from the DisplayMessage prop
2018-03-28 14:50:34 -06:00
Michael Lange
4361043718
Read the task event message from the DisplayMessage prop
2018-03-28 12:52:02 -07:00
Chelsea Komlo
b26031b90d
Merge pull request #4057 from hashicorp/specify-docker-msg
...
Specify docker name in driver health messages
2018-03-28 13:32:36 -04:00
Preetha Appan
27cd4201d5
Update CHANGELOG
2018-03-28 12:31:53 -05:00
Preetha
6f870b8bd7
Merge pull request #4052 from hashicorp/f-specify-total-memory
...
Allow to specify total memory on agent configuration
2018-03-28 12:28:41 -05:00
Preetha Appan
501b0ee7ce
Fix linting
2018-03-28 12:26:28 -05:00
Preetha Appan
09fa5f5850
Fix compilation fail in test after rebase
2018-03-28 11:54:34 -05:00
Chelsea Holland Komlo
9645d5120e
reformat message
2018-03-28 12:28:16 -04:00
Chelsea Holland Komlo
cdfeac13a1
specify driver health messages
2018-03-28 11:35:21 -04:00
Preetha Appan
57872ff162
docs
2018-03-28 10:15:33 -05:00
Preetha Appan
30d104251b
Code review feedback and unit test
2018-03-28 10:07:15 -05:00
Charlie Voiselle
33e57bf5a3
rkt: logging enhancements ( #4044 )
...
* Added extra debug logging; extended timeout; added jitter.
* small log changes
* increase timeout
* remove unneccessary uuid
2018-03-27 17:30:06 -07:00
Michael Schurter
f28370f605
Merge pull request #4054 from hashicorp/b-drainer-index-fix
...
drainer: reset index when new job registered
2018-03-27 16:28:25 -07:00
Michael Schurter
def4a7248f
Merge pull request #4050 from hashicorp/f-demo-agent-names
...
demo: give agents unique names
2018-03-27 16:27:23 -07:00
Michael Schurter
605b8b157f
Merge pull request #4034 from hashicorp/b-0-attempt-restarts
...
client: always mark exited sys/svc allocs as failed
2018-03-27 16:26:58 -07:00
Michael Schurter
1b81bfb657
Merge pull request #4053 from hashicorp/b-drain-sys-jobs-2
...
drain: fix draining of system jobs
2018-03-27 16:26:45 -07:00
Alex Dadgar
a34b08ce86
Merge pull request #4056 from hashicorp/b-system-eligible
...
Create evals for system jobs when drain is unset
2018-03-27 16:25:57 -07:00
Alex Dadgar
400cbcf128
Create evals for system jobs when drain is unset
...
This PR creates evals for system jobs when:
* Drain is unset and mark eligible is true
* Eligibility is restored to the node
2018-03-27 15:53:24 -07:00
Michael Schurter
079f425c32
client: always mark exited sys/svc allocs as failed
...
When restarts.attempts=0 was set in a jobspec a system or service alloc
that exited with 0 status would be marked as `completed` instead of
`failed`. Since system and service jobs are intended to run until
stopped or updated, they should always be marked as failed when they
exit even in cases where the exit code is 0.
2018-03-27 14:30:19 -07:00
Michael Schurter
39797dce5c
demo: give agents unique names
...
Give demo agents unique names to improve `nomad node status` output.
Since the agents default to the hostname, they all had the same name
whether using the root or demo Vagrantfiles.
2018-03-27 14:29:53 -07:00
Michael Schurter
452f6a77be
drain: improve comments
2018-03-27 14:27:09 -07:00
Michael Schurter
c032d4da65
drain: give cli more time before exiting
...
May want to bump this a bit more as the drain often completes amidst a
flurry of alloc updates.
2018-03-27 14:24:02 -07:00
Michael Schurter
9d39af1ca0
drain: unittest draining node logic
2018-03-27 14:24:01 -07:00
Michael Schurter
fdaa641203
test: add mock batch and system allocs
...
Since the BatchJob helper had a different task group than the Alloc
helper, it was difficult to create a valid batch alloc.
2018-03-27 14:24:01 -07:00
Michael Schurter
501312900a
drain: stop sys jobs after drain completes
...
System allocs should be drained when a node's deadline is hit or when
all other allocs on the node have stopped/migrated.
2018-03-27 14:24:01 -07:00
Michael Schurter
f051a7fb70
drainer: reset index when new job registered
2018-03-27 14:12:59 -07:00
Chelsea Komlo
3583f85343
Merge pull request #4035 from hashicorp/node-events-timestamps
...
Properly format node event timestamps
2018-03-27 16:57:39 -04:00
Mildred Ki'Lya
d31105c69e
Allow to specify total memory on agent configuration
...
Allow to set the total memory of an agent in its configuration file. This
can be used in case the automatic detection doesn't work or in specific
environments when memory overcommit (using swap for example) can be
desirable.
2018-03-27 15:46:18 -05:00
Preetha
f501c21815
Merge pull request #4024 from hashicorp/f-delayed-rescheduling-docs
...
docs for delayed rescheduling options
2018-03-27 15:14:20 -05:00
Preetha Appan
ab39d028ce
more review feedback
2018-03-27 14:55:19 -05:00
Preetha Appan
b77f26021a
Replace linear with constant, and other small changes
2018-03-27 14:55:19 -05:00
Preetha Appan
8f208055bc
Initial docs for new delayed rescheduling options
2018-03-27 14:55:19 -05:00
Chelsea Holland Komlo
5c51404e8b
fix up to string to use time.Time
2018-03-27 15:43:57 -04:00
Chelsea Holland Komlo
4dd4c37d17
move tests to use time.Time
2018-03-27 15:43:57 -04:00
Chelsea Holland Komlo
041786360e
use time.Time for node events for compatibility
2018-03-27 15:43:57 -04:00
Chelsea Holland Komlo
6e35eec31e
properly formatting unix timestamps
2018-03-27 15:43:57 -04:00
Alex Dadgar
5b1f2e7acd
Merge pull request #4049 from hashicorp/b-tunnel
...
Only track nodes if the conn is from the node
2018-03-27 12:39:34 -07:00
Alex Dadgar
3fc8f8e578
Merge pull request #4051 from hashicorp/b-alloc-stream-snap
...
Fix alloc watcher snapshot streaming
2018-03-27 12:39:13 -07:00
Alex Dadgar
d10e155e0f
Fix alloc watcher snapshot streaming
2018-03-27 11:14:53 -07:00
Alex Dadgar
b6c35859e5
Merge pull request #4048 from hashicorp/f-system
...
Correct status desc on draining system allocs
2018-03-27 10:12:36 -07:00
Alex Dadgar
1a5559a912
Only track nodes if the conn is from the node
...
Fixes a bug in which a connection to a Nomad server was treated as a
connection to a node because the server forwarded a node specific RPC.
2018-03-27 09:59:31 -07:00
Alex Dadgar
95c3c637ba
Correct status desc on draining system allocs
2018-03-26 17:54:46 -07:00
Chelsea Komlo
24a1f60e7b
Merge pull request #4025 from hashicorp/reload-http-tls
...
Allow TLS configurations for HTTP and RPC connections to be reloaded …
2018-03-26 18:00:30 -04:00
Preetha Appan
1669512557
Fix too long token test case
2018-03-26 16:28:33 -05:00
Preetha
3f20074998
Merge pull request #4045 from hashicorp/f-rename-linear-constant
...
s/linear/constant/g
2018-03-26 16:22:21 -05:00