Nick Ethier
e19921b47c
Optional Consul service tags for nomad server and agent services ( #5706 )
...
Optional Consul service tags for nomad server and agent services
2019-06-13 09:00:35 -04:00
Mahmood Ali
ecf98f2675
update website to link to Nomad 0.9.3
2019-06-12 14:56:18 -04:00
Mahmood Ali
b70cf3f664
Prepare for 0.9.4 dev cycle
2019-06-12 18:47:50 +00:00
Mahmood Ali
e0fce4603b
Release v0.9.3
2019-06-12 18:44:47 +00:00
Nomad Release bot
c5e8b66c37
Generate files for 0.9.3 release
2019-06-12 16:11:16 +00:00
Preetha
72ab8083c5
Merge pull request #5815 from hashicorp/f-downgrade-docs
...
Add warning docs around downgrades
2019-06-12 10:39:43 -05:00
Danielle Lancashire
844c6d51a4
update changelog
2019-06-12 17:35:57 +02:00
Preetha
34206f3015
Merge pull request #5820 from hashicorp/r-assorted-changes-20190612_1
...
Assorted minor changes
2019-06-12 10:33:16 -05:00
Danielle
f6757ff106
Merge pull request #5821 from hashicorp/dani/b-5770
...
trhooks: Add TaskStopHook interface to services
2019-06-12 17:30:49 +02:00
Chris Baker
0b953da2aa
Merge pull request #5825 from hashicorp/docs-updated-alloc-examples
...
documentation: fixed incorrect URLs in allocation signal/restart documentation
2019-06-12 11:28:05 -04:00
Chris Baker
0c74bad0cc
documentation: fixed incorrect URLs in allocation signal/restart documentation
2019-06-12 15:14:34 +00:00
Danielle
2ce49f67bf
Merge pull request #5823 from hashicorp/dani/fix-restart-api
...
alloc-lifecycle: Fix restart with empty body
2019-06-12 17:07:46 +02:00
Danielle Lancashire
1aa6bc80d8
trt: Fix test
2019-06-12 17:06:11 +02:00
Danielle
fe7c2ecbc1
Merge pull request #5822 from hashicorp/dani/allocrestartapidocs
...
docs: Add missing docs for alloc restart api
2019-06-12 16:58:59 +02:00
Danielle Lancashire
91c7cf956a
update changelog
2019-06-12 16:06:18 +02:00
Danielle Lancashire
5933528404
trhooks: Add TaskStopHook interface to services
...
We currently only run cleanup Service Hooks when a task is either
Killed, or Exited. However, due to the implementation of a task runner,
tasks are only Exited if they every correctly started running, which is
not true when you recieve an error early in the task start flow, such as
not being able to pull secrets from Vault.
This updates the service hook to also call consul deregistration
routines during a task Stop lifecycle event, to ensure that any
registered checks and services are cleared in such cases.
fixes #5770
2019-06-12 16:00:21 +02:00
Danielle Lancashire
0f3d45bab8
alloc-lifecycle: Fix restart with empty body
...
Currently when you submit a manual request to the alloc lifecycle API
with a version of Curl that will submit empty bodies, the alloc restart
api will fail with an EOF error.
This behaviour is undesired, as it is reasonable to not submit a body at
all when restarting an entire allocation rather than an individual task.
This fixes it by ignoring EOF (not unexpected EOF) errors and treating
them as entire task restarts.
2019-06-12 15:35:00 +02:00
Danielle Lancashire
0f9e5fa34e
docs: Add missing docs for alloc restart api
2019-06-12 15:09:52 +02:00
Mahmood Ali
3c1e77274b
comment DenormalizeAllocationDiffSlice applies to terminal allocs only
2019-06-12 08:28:43 -04:00
Mahmood Ali
56bdf0c5f6
tests: parsing dir should be equivalent to parsing individual files
2019-06-12 08:19:09 -04:00
Mahmood Ali
093a760b35
tests: avoid manipulating package variables
2019-06-12 08:16:32 -04:00
Mahmood Ali
ee7803d361
Merge pull request #5818 from hashicorp/b-consul-stanza
...
fix consul stanza parsing when multiple -config arguments are used
2019-06-12 06:29:24 -04:00
Lang Martin
8b49c5e64a
command add comments re: defaults to LoadConfig
2019-06-11 22:35:43 -04:00
Lang Martin
62eb6081fa
config_parse_test update comment for accuracy
2019-06-11 22:30:20 -04:00
Lang Martin
cedd2ba17f
config_parse get rid of ParseConfigDefault
2019-06-11 22:00:23 -04:00
Lang Martin
a25b4d9d49
Revert "config explicitly merge defaults once when using a config directory"
...
This reverts commit 006a9a1d45 .
2019-06-11 22:00:23 -04:00
Mahmood Ali
b4ff3d9d20
correct GH-5812 changelog
2019-06-11 19:46:50 -04:00
Mahmood Ali
65772b6741
changelog GH-5817
2019-06-11 19:44:18 -04:00
Mahmood Ali
c94834f575
Merge pull request #5817 from hashicorp/b-consul-stanza
...
fix consul stanza parsing when a configuration directory is used
2019-06-11 19:17:32 -04:00
Lang Martin
d1ee78ab30
agent/testdata add a configuration directory for testing
2019-06-11 16:34:04 -04:00
Lang Martin
4bfbeb649b
config merge maintains *HCL string fields used for duration conversion
2019-06-11 16:34:04 -04:00
Lang Martin
e9fa8e5621
config_parse_test, handle defaults
2019-06-11 16:34:04 -04:00
Lang Martin
006a9a1d45
config explicitly merge defaults once when using a config directory
2019-06-11 15:42:27 -04:00
Lang Martin
5a3a47c7a4
config_parse split out defaults from ParseConfig
2019-06-11 15:42:27 -04:00
Buck Doyle
bd21545307
Change Netlify site id ( #5814 )
...
The Netlify site now belongs to the Hashicorp organisation
rather than the hc-nomad user.
2019-06-11 14:25:55 -05:00
Preetha Appan
db813c6252
Add warning docs around downgrades
2019-06-11 13:16:37 -05:00
Mahmood Ali
bb67e1c2c4
scripts: use /dev/null when verifying s3
2019-06-11 13:30:54 -04:00
Mahmood Ali
95a48a190a
update changelog for 0.9.3
2019-06-11 13:25:27 -04:00
Mahmood Ali
abc9128ac3
Merge pull request #5806 from hashicorp/b-systemd-cgroups-path
...
drivers/exec: use an independent name=systemd cgroup path
2019-06-11 13:00:44 -04:00
Mahmood Ali
2cc2e60ded
update comment
2019-06-11 13:00:26 -04:00
Mahmood Ali
f0c9b60b45
Merge pull request #5812 from hashicorp/fix-allocresources-reference
...
Fallback to `alloc.TaskResources` for old allocs
2019-06-11 11:33:25 -04:00
Mahmood Ali
7a01a96cc2
Fallback to alloc.TaskResources for old allocs
...
When a client is running against an old server (e.g. running 0.8),
`alloc.AllocatedResources` may be nil, and we need to check the
deprecated `alloc.TaskResources` instead.
Fixes https://github.com/hashicorp/nomad/issues/5810
2019-06-11 10:32:53 -04:00
Lang Martin
2213cd5cfd
Merge pull request #5802 from hashicorp/b-config-meta-parsing
...
config meta parsing
2019-06-11 09:12:36 -04:00
Mahmood Ali
7423b3092f
Merge pull request #5805 from hashicorp/b-tg-rename-panic
...
Fix a panic related to updating alloc taskgroups
2019-06-11 08:53:55 -04:00
Mahmood Ali
c72bf13f8a
exec: use an independent name=systemd cgroup path
...
We aim for containers to be part of a new cgroups hierarchy independent
from nomad agent. However, we've been setting a relative path as
libcontainer `cfg.Cgroups.Path`, which makes libcontainer concatinate
the executor process cgroup with passed cgroup, as set in [1].
By setting an absolute path, we ensure that all cgroups subsystem
(including `name=systemd` get a dedicated one). This matches behavior
in Nomad 0.8, and behavior of how Docker and OCI sets CgroupsPath[2]
Fixes #5736
[1] d7edf9b2e4/vendor/github.com/opencontainers/runc/libcontainer/cgroups/fs/apply_raw.go (L326-L340)
[2] 238f8eaa31/vendor/github.com/containerd/containerd/oci/spec.go (L229)
2019-06-10 22:00:12 -04:00
Mahmood Ali
41a7fe8530
client/allocrunner: depend on internal task state
...
Alloc runner already tracks tasks associated with alloc. Here, we
become defensive by relying on the alloc runner tracked tasks, rather
than depend on server never updating the job unexpectedly.
2019-06-10 18:42:51 -04:00
Mahmood Ali
7825a3ca4d
Stop updating allocs.Job on stopping or preemption
2019-06-10 18:30:20 -04:00
Mahmood Ali
8ccb6bf3d6
test that stopped alloc jobs aren't modified
...
When an alloc is stopped, test that we don't update the job found in
alloc with new job that is no longer relevent for this alloc.
2019-06-10 17:14:26 -04:00
Lang Martin
3ddcb74a4c
config parse update hcl with support for decoding bool to string
2019-06-10 13:12:38 -04:00
Lang Martin
0606f50f46
config parse_test check for string coercion in client.meta
2019-06-10 13:12:38 -04:00