Brian Lalor
31ef34838e
Fix output of 'nomad deployment fail' with no arg
2018-12-13 13:22:17 -05:00
Danielle Tomlinson
3647b701a6
taskrunner: Emit task events when a hook fails
2018-12-13 18:20:18 +01:00
Michael Lange
d83be97d78
Don't use Ember.get in conjunction with dynamic strings in the job-plan serializer
2018-12-13 07:53:37 -08:00
Michael Lange
5902842d6b
Don't use Ember.get in conjunction with dynamic strings in the allocation serializer
2018-12-13 07:53:37 -08:00
Michael Lange
7b466f9f60
Don't use Ember.get in conjunction with dynamic strings in the node serializer
2018-12-13 07:53:37 -08:00
Michael Lange
13b7434eca
Don't use Ember.get in conjunction with dynamic strings in the deployment serializer
2018-12-13 07:53:37 -08:00
Michael Lange
a00544e302
Don't use Ember.get in conjunction with dynamic strings in the job-summary serializer
2018-12-13 07:53:37 -08:00
Michael Lange
b5c11b4e43
Don't use Ember.get in conjunction with dynamic strings in the evaluation serializer
2018-12-13 07:53:37 -08:00
Michael Lange
7d76b6a59f
Test coverage for resource graph empty states
2018-12-13 07:53:17 -08:00
Michael Lange
6f2e5d49f0
Test coverage for allocation rows
2018-12-13 07:53:17 -08:00
Michael Lange
76a9d7ad7c
Conditionally show the utilization graphs on the allocation and task detail pages
2018-12-13 07:53:17 -08:00
Michael Lange
71a06a6b7f
Conditionally show utilization metrics on alloc and task rows
2018-12-13 07:53:17 -08:00
Michael Lange
0005b1fca2
Task isRunning is based on both the task state and the allocation state
2018-12-13 07:53:17 -08:00
Michael Lange
076ae5046b
Model isRunning based on the client status of the allocation
2018-12-13 07:53:17 -08:00
Michael Lange
48adb393d8
Merge pull request #4998 from hashicorp/b-ui-test-failure
...
UI: Fix intermittent test failure "cannot read property name of undefined"
2018-12-13 07:52:30 -08:00
Michael Lange
3b044816ac
Always create a running allocation when testing task state
2018-12-13 07:39:16 -08:00
Danielle Tomlinson
8b06e8d297
Merge pull request #4990 from hashicorp/dani/b-alloc-lock
...
client: updateAlloc release lock after read
2018-12-13 12:43:59 +01:00
Danielle Tomlinson
3823599da9
client: Give a copy of clientconfig to allocrunner
...
Currently, there is a race condition between creating a taskrunner, and
updating node attributes via fingerprinting.
This is because the taskenv builder will try to iterate over the
clientconfig.Node.Attributes map, which can be concurrently updated by
the fingerprinting process, thus causing a panic.
This fixes that by providing a copy of the clientconfg to the
allocrunner inside the Read lock during config creation.
2018-12-13 12:42:15 +01:00
Mahmood Ali
f0ec27da3c
tests: ensure exec tests pass valid task resources ( #4992 )
...
Prior to 97f33bb1537d04905cb84199672bcdf46ebb4e65, executor cgroup validation errors were
silently ignored. Enforcing them reveals test cases that missed them.
This doesn't change customer facing contract, as resource struct is
is either configured or we default to 100 (much higher than 2).
2018-12-12 20:40:38 -05:00
Chris Baker
af593c401c
Merge pull request #4974 from hashicorp/b-1173-log-spam
...
rpc accept loop: added backoff on logging
2018-12-12 16:54:42 -08:00
Mahmood Ali
d497729826
Merge pull request #4978 from hashicorp/f-device-tweaks
...
Display device attributes in `nomad node status -verbose`
2018-12-12 19:45:07 -05:00
Chris Baker
121a9eb8cb
some changes for more idiomatic code
2018-12-12 23:11:17 +00:00
Alex Dadgar
20c59df8b9
Merge pull request #4969 from hashicorp/f-alloc-hooks
...
Make alloc health watcher a postrun hook rather than shutdown hook
2018-12-12 14:34:36 -08:00
Alex Dadgar
fbe4d67d1b
fix iops related tests
2018-12-12 14:32:22 -08:00
Chris Baker
34600f8b75
fixed bug in loop delay
2018-12-12 19:16:41 +00:00
Chris Baker
89c64932c1
gofmt
2018-12-12 19:09:06 +00:00
Chris Baker
22c11d8799
improved code for readability
2018-12-12 18:52:06 +00:00
Danielle Tomlinson
4184eadaf4
client: updateAlloc release lock after read
...
The allocLock is used to synchronize access to the alloc runner map, not
to ensure internal consistency of the alloc runners themselves. This
updates the updateAlloc process to avoid hanging on to an exclusive lock
of the map while applying changes to allocrunners themselves, as they
should be internally consistent.
This fixes a bug where any client allocation api will block during the
shutdown or updating of an allocrunner and its child taskrunners.
2018-12-12 16:30:01 +01:00
Mahmood Ali
00c9385a2b
fixup! device attributes in nomad node status -verbose
2018-12-12 09:17:31 -05:00
Danielle Tomlinson
cbfa1388db
fixup: Code Review
2018-12-12 12:43:16 +01:00
Mahmood Ali
567f1930fe
Merge pull request #4962 from hashicorp/f-exec-device-mounts
...
drivers/exec: Support devices mounts
2018-12-11 20:20:01 -05:00
Preetha
f406e66ab8
Merge pull request #4881 from hashicorp/f-device-preemption
...
Device preemption
2018-12-11 18:34:19 -06:00
Alex Dadgar
fc14a04612
Merge pull request #4986 from hashicorp/b-vault-e2e
...
fix iops bug and increase test matrix coverage
2018-12-11 15:52:29 -08:00
Mahmood Ali
74bd0be6ea
drivers/exec: support device binds and mounts
2018-12-11 18:35:21 -05:00
Alex Dadgar
86d9ad4397
fix iops bug and increase test matrix coverage
2018-12-11 15:28:21 -08:00
Mahmood Ali
3d166e6e9c
Merge pull request #4984 from hashicorp/b-client-update-driver
...
client: update driver info on new driver fingerprint
2018-12-11 18:01:03 -05:00
Mahmood Ali
8726ab3b9e
Merge pull request #4985 from hashicorp/test-with-xenial
...
ci: Test with Ubuntu 16.04 in TravisCI
2018-12-11 18:00:39 -05:00
Mahmood Ali
69b2355274
Merge pull request #4975 from hashicorp/fix-master-20181209
...
Some test fixes and remedies
2018-12-11 18:00:21 -05:00
Mahmood Ali
979a65486d
tests: tag image explicitly
2018-12-11 17:59:45 -05:00
Alex Dadgar
2df8a56b76
changelog
2018-12-11 12:52:45 -08:00
Alex Dadgar
1531b6d534
Merge pull request #4970 from hashicorp/f-no-iops
...
Deprecate IOPS
2018-12-11 12:51:22 -08:00
Mahmood Ali
76bc2a3fd0
ci: install lxc-templates explicitly
...
LXC package on Ubuntu 16.04 doesn't depend on lxc-template, but we
require it in our tests.
2018-12-11 15:49:11 -05:00
Mahmood Ali
e6e71fb47a
tests: skip checking rdma cgroup
...
rdma was added in most recent kernels and libcontainer/docker
don't isolate them by default.
2018-12-11 15:49:11 -05:00
Mahmood Ali
095dba72ac
ci: use Ubuntu 16.04 (Xenial) in TravisCI
2018-12-11 15:49:11 -05:00
Mahmood Ali
ba515947c2
client: update driver info on new fingerprint
...
Fixes a bug where a driver health and attributes are never updated from
their initial status. If a driver started unhealthy, it may never go
into a healthy status.
2018-12-11 14:25:10 -05:00
Mahmood Ali
84ded28c6d
drivers/docker: enforce volumes.enabled ( #4983 )
...
When volumes.enable flag is off in Docker driver, disable all mounts of
paths outside alloc dir.
2018-12-11 14:22:50 -05:00
Danielle Tomlinson
d11c62fa3a
Merge pull request #4963 from hashicorp/dani/f-preempt-alloc-wait
...
client: Wait for preemptions to terminate
2018-12-11 18:06:34 +01:00
Danielle Tomlinson
ed1791f4bf
client: Style: use fluent style for building loggers
2018-12-11 18:03:45 +01:00
Danielle Tomlinson
1ee0777521
fixup: Correctly sort based on distance, use iradix for ordering
2018-12-11 17:35:51 +01:00
Preetha Appan
977a4a540d
Early continue after meeting needed count
...
Also adds another optimization that filters out un-needed allocations
as a final filtering step
2018-12-11 10:12:18 -06:00