Preetha Appan
cf9c398296
Handle client initialization errors when adding allocs or restoring allocs
...
We mark the alloc as failed and track failed allocs so that we don't send
updates after the first time
2019-01-12 10:37:12 -06:00
Danielle Tomlinson
03bf0bb65a
Merge pull request #5025 from hashicorp/dani/allocLockCleanup
...
client: Cleanup allocrunner access
2019-01-11 23:35:02 +01:00
Alex Dadgar
754b84edb1
changelog
2019-01-11 13:09:44 -08:00
Alex Dadgar
f171a723cb
Enable json logs
2019-01-11 11:36:37 -08:00
Alex Dadgar
16e8cdf5bb
Update client1.hcl
2019-01-11 11:36:37 -08:00
Alex Dadgar
e3859dc5e5
fix rkt use of executor
2019-01-11 11:36:37 -08:00
Alex Dadgar
270ae48b82
Plugins use parent loggers
...
This PR fixes various instances of plugins being launched without using
the parent loggers. This meant that logs would not all go to the same
output, break formatting etc.
2019-01-11 11:36:37 -08:00
Preetha
c32ea36031
Merge pull request #5181 from hashicorp/b-spread-weight
...
Make spread weight a pointer with default value if unset
2019-01-11 13:17:00 -06:00
Danielle Tomlinson
dccf2a0de9
client: Cleanup allocrunner access
2019-01-11 18:39:18 +01:00
Preetha Appan
7cdaf6e37d
Make spread weight a pointer with default value if unset
2019-01-11 10:31:21 -06:00
Mahmood Ali
8c9f22a5e4
Merge pull request #5175 from hashicorp/c-re-enable-tests
...
Re-enable client and java skipped tests
2019-01-11 10:08:16 -05:00
Preetha
180362f472
Merge pull request #5179 from hashicorp/b-fix-deprecated-resources
...
Remove unnecessary usage of alloc.Resource
2019-01-10 17:31:00 -06:00
Preetha
4af4e616a3
Merge pull request #5144 from hashicorp/f-spread-docs
...
Docs for spread stanza
2019-01-10 16:38:39 -06:00
Preetha Appan
fc9c87c032
Remove unnecessary usage of alloc.Resource
2019-01-10 16:36:47 -06:00
Preetha
6d4a853566
Merge pull request #5178 from hashicorp/blalor-patch-1
...
Oxford comma in variable interpolation summary
2019-01-10 16:11:18 -06:00
Preetha Appan
e12dd2f4d5
Address review comments
2019-01-10 15:46:03 -06:00
Brian Lalor
1cd7458202
Oxford comma in variable interpolation summary
...
This improves the readability of this section.
2019-01-10 16:15:41 -05:00
Mahmood Ali
cfb68457bc
tests: WaitForRunning checks for pending only
...
WaitForRunning risks a race condition where the allocation succeeds and
completes before WaitForRunning is called (or while it is running).
Here, I made the behavior match the function documentation.
I considered making it stricter, but callers need to account for
allocation terminating immediately after WaitForRunning terminates
anyway.
2019-01-10 15:36:57 -05:00
Mahmood Ali
215a137e4a
Merge pull request #5176 from hashicorp/r-rm-validation-tests
...
tests: remove tests for unsupported features
2019-01-10 12:41:48 -05:00
Preetha Appan
7ef1669363
Spread json docs
2019-01-10 11:10:04 -06:00
Preetha Appan
6b4c79c90f
Initial spread docs
2019-01-10 11:10:04 -06:00
Mahmood Ali
d9ff8d01ff
tests: remove tests for unsupported features
...
With switching to driver plugins, driver validation is quite tricky and
we need to do some design thinking before supporting it against.
2019-01-10 10:21:48 -05:00
Mahmood Ali
a99b7655cc
drivers/java: use libcontainer executor on java linux
2019-01-10 10:10:40 -05:00
Mahmood Ali
4240d6ac18
tests: ignore _JAVA_OPTIONS line
...
ignore _JAVA_OPTIONS line in `java -version`, as it's relevant.
2019-01-10 10:10:40 -05:00
Mahmood Ali
1b7b70f47e
tests: enable and fix tests requiring mock driver
2019-01-10 10:10:11 -05:00
Chris Baker
e7510596fb
Merge pull request #5158 from hashicorp/f-1157-validate-node-meta-variables
...
added validation on client metadata keys
2019-01-09 16:37:57 -05:00
Alex Dadgar
c7fc39d38d
Merge pull request #5168 from hashicorp/b-kill-race
...
Improve Kill handling on task runner
2019-01-09 12:05:10 -08:00
Alex Dadgar
d916c0dd12
add more comments
2019-01-09 12:04:22 -08:00
Michael Schurter
e44d51f4d0
Spelling fix
...
Co-Authored-By: dadgar <alex@hashicorp.com >
2019-01-09 11:42:40 -08:00
Chris Baker
b12e24ec99
Merge branch 'master' of github.com:hashicorp/nomad into f-1157-validate-node-meta-variables
2019-01-09 18:56:49 +00:00
Chris Baker
8a7c09aaab
increased config validation coverage for dev mode
2019-01-09 18:56:40 +00:00
Michael Schurter
a646833aa3
Merge pull request #5045 from hashicorp/b-drivermanager-tests-drain
...
drain: fix node drain monitoring
2019-01-09 10:23:28 -08:00
Mahmood Ali
f056ef5fa8
Merge pull request #5166 from hashicorp/b-docker-tests-mac
...
tests: run docker tests in macOS out of box
2019-01-09 13:07:37 -05:00
Mahmood Ali
d0efb37b80
Merge pull request #5162 from hashicorp/f-extract-lxc
...
Extract LXC from nomad
2019-01-09 13:07:05 -05:00
Mahmood Ali
d1fbd735f3
Merge pull request #5157 from hashicorp/r-drivers-no-cstructs
...
drivers: avoid referencing client/structs package
2019-01-09 13:06:46 -05:00
Michael Schurter
c22de10039
Merge pull request #5167 from hashicorp/e2e-task-events
...
Add another task events e2e test and fix test helper
2019-01-09 08:10:22 -08:00
Mahmood Ali
2349a01274
Merge pull request #5163 from hashicorp/r-minor-changes-20180108
...
Fix a panic on node.Deregister fail
2019-01-09 09:56:00 -05:00
Mahmood Ali
7840ab51e2
fix more cases of logging arity errors
2019-01-09 09:22:47 -05:00
Mahmood Ali
76d40947d7
Merge pull request #5159 from hashicorp/r-macos-tests
...
Fix Travis MacOS job
2019-01-09 08:22:30 -05:00
Alex Dadgar
a5ba15591a
Improve Kill handling on task runner
...
This PR improves how killing a task is handled. Before the kill function
directly orchestrated the killing and was only valid while the task was
running. The new behavior is to mark the desired state and wait for the
task runner to converge to that state.
2019-01-08 16:42:26 -08:00
Mahmood Ali
7cca4b0d11
cli: support hitting pre-0.9 nomad agents
...
node.NodeResources is nil when operating against pre-0.9.
2019-01-08 19:32:26 -05:00
Danielle Tomlinson
745d1c7665
Merge pull request #4991 from hashicorp/dani/b-fix-leaked-procs
...
vendor: Update go-plugin
2019-01-09 00:54:52 +01:00
Michael Schurter
fb12451ecf
e2e: test task events for a failed sibling task
2019-01-08 14:39:37 -08:00
Michael Schurter
c9dc5e4999
e2e: wait for at least N nodes to be ready
...
Before it was *exactly* N nodes which limited test portability between
clusters.
2019-01-08 14:39:37 -08:00
Chris Baker
1dc25090a5
move if dev check into config validation, to support dev-mod
...
validation in the future
2019-01-08 22:21:48 +00:00
Chris Baker
c506b56f96
Merge pull request #4888 from hashicorp/f-docs-clarification-on-config-folders
...
config dir clarification
2019-01-08 17:18:14 -05:00
Mahmood Ali
39fa004f75
tests: run docker tests in macOS out of box
...
Use `/tmp` as temporary directory for docker driver tests, so tests can
run out of the box without any intervention.
macOS sets tempdir as `/var`, which Docker does not whitelist as a path
that can be bind-mounted.
2019-01-08 14:35:40 -05:00
Mahmood Ali
855e3684e3
fixup! remove unused field
2019-01-08 12:58:12 -05:00
Mahmood Ali
f8f285248d
Merge pull request #5154 from hashicorp/f-revert-exec-devs
...
drivers/exec: restrict devices exposed to tasks
2019-01-08 12:43:06 -05:00
Mahmood Ali
8a96bf84a1
tests: fix a test job constaints failing in macOS
...
Allow scheduling mock job when running on MacOS (or Windows) hosts.
2019-01-08 12:37:42 -05:00