Commit Graph

15162 Commits

Author SHA1 Message Date
James Rasell
971a8cdc8a Fix incorrect link to the sample Grafana dashboard
closes #5799
2019-06-10 17:26:27 +02:00
Mahmood Ali
d7edf9b2e4 changelog GH-5794 2019-06-10 09:56:23 -04:00
Buck Doyle
038542481b Add PR previews with Netlify (#5787)
It would be preferable to only generate these for UI PRs but Netlify appears to
not have that flexibility. I tried setting up manual deployments in a Travis
environment but gave up the experiment; it could probably eventually work if
deployment failures become a nuisance.
2019-06-10 08:51:58 -05:00
Mahmood Ali
21a617a0e3 Merge pull request #5794 from hashicorp/b-preemption-network-panic
Only preempt for network when there is a network
2019-06-10 07:10:29 -04:00
Mahmood Ali
d342a24ba0 Only preempt for network when there is a network
When examining preemption for networks, only consider allocs that have
networks.

Fixes https://github.com/hashicorp/nomad/issues/5793
2019-06-07 18:55:55 -04:00
Mahmood Ali
2808674fac test: add tests for network devices and preemption 2019-06-07 18:55:02 -04:00
Mahmood Ali
85c449b766 Merge pull request #5776 from hashicorp/b-flaky-e2e-test
flaky e2e test
2019-06-06 20:26:17 -04:00
Mahmood Ali
c15c76337f Merge pull request #5788 from hashicorp/b-fix-node-down-test
tests: Migrated allocs aren't lost
2019-06-06 16:58:35 -04:00
Mahmood Ali
5574b2f3d0 tests: Migrated allocs aren't lost
Fix `TestServiceSched_NodeDown` for checking that the migrated allocs
are actually marked to be stopped.

The boolean logic in test made it skip actually checking client status
as long as desired status was stop.

Here, we mark some jobs for migration while leaving others as running,
and we check that lost flag is only set for non-migrated allocs.
2019-06-06 16:05:07 -04:00
Charlie Voiselle
62ba654062 Merge pull request #5785 from john-lay/website-link-for-port-host-label
Fix a website link under `Runtime Environment`
2019-06-06 14:11:03 -04:00
john-lay
0abbbc6163 Update the link to point to #mapped-ports 2019-06-06 17:44:01 +01:00
john-lay
9372fb74b9 Fix a website link under Runtime Environment
Under the `Network-related Variables` the `NOMAD_HOST_PORT_<label>` has
a incorrect link.
2019-06-06 14:28:30 +01:00
Mahmood Ali
4293c6d6b5 Merge pull request #5760 from hashicorp/f_improve_tfvars
Proposing new tfvars with additional inline docs
2019-06-06 09:09:21 -04:00
Mahmood Ali
6ccfd47cdd Merge pull request #5747 from hashicorp/b-test-fixes-20190521-1
More test fixes
2019-06-05 19:09:18 -04:00
Mahmood Ali
3f21aba9cb Merge pull request #5746 from hashicorp/b-no-updating-inmem-node
set node.StatusUpdatedAt in raft
2019-06-05 19:05:21 -04:00
Mahmood Ali
d9ac7c25d5 Merge pull request #5737 from fwkz/fix-restart-attempts
Fix restart attempts of `restart` stanza in `delay` mode.
2019-06-05 19:05:07 -04:00
Preetha
8ba7e52464 Merge pull request #5781 from hashicorp/b-revert-release-sup
Revert 0.9.2 release super script tags
2019-06-05 20:46:50 +05:30
Preetha Appan
b84d0b705e Update release version to 0.9.2 2019-06-05 20:45:17 +05:30
Preetha Appan
a1fef61bbc remove 0.9.2 rc1 download link 2019-06-05 20:41:11 +05:30
Preetha Appan
54be46e7fc revert 0.9.2 super script tags 2019-06-05 20:39:22 +05:30
Mahmood Ali
613235d586 Prepare for 0.9.3 dev cycle 2019-06-05 14:54:00 +00:00
Mahmood Ali
2b45c6d26c Release v0.9.2 2019-06-05 14:49:29 +00:00
Nomad Release bot
028326684b Generate files for 0.9.2 release 2019-06-05 11:59:27 +00:00
Mahmood Ali
f1dc5a6a98 update changelog for GH-5545 2019-06-04 22:40:38 -04:00
Mahmood Ali
f178a15938 Merge pull request #5778 from hashicorp/b-preempt-off-by-default
nomad: disable service+batch preemption by default
2019-06-04 20:00:09 -04:00
Mahmood Ali
de730a117c Merge pull request #5779 from hashicorp/d-preemption-ent
Add Enterprise docs for Preemption
2019-06-04 19:58:45 -04:00
Rob Genova
3e067bf6b8 Adds Enterprise docs for Preemption 2019-06-04 23:05:25 +00:00
Michael Schurter
1186d77133 nomad: disable service+batch preemption by default
Enterprise only.

Disable preemption for service and batch jobs by default.

Maintain backward compatibility in a x.y.Z release. Consider switching
the default for new clusters in the future.
2019-06-04 15:54:50 -07:00
Lang Martin
f7ab4f0f21 e2e update shell scripts argument quoting 2019-06-04 15:52:32 -04:00
Mahmood Ali
50fc86ad26 changelog GH-5728 2019-06-04 15:11:41 -04:00
Mahmood Ali
fc9f75371e Merge pull request #5772 from hashicorp/f-disable-nomad-exec
client config flag to disable remote exec
2019-06-04 14:38:59 -04:00
Mahmood Ali
b170ef9a03 link to flag from alloc exec doc 2019-06-04 14:37:56 -04:00
Lang Martin
4b8c9428f4 e2e/deployment DeploymentsForJob fail instead of nil, error passing 2019-06-04 14:31:42 -04:00
Lang Martin
6ca33d0f20 e2e/deployment fail if the second deployment times out 2019-06-04 14:08:30 -04:00
Lang Martin
9b0ae12358 deployment update website examples to say 'requires manual promotion' 2019-06-04 13:45:44 -04:00
Lang Martin
293b3d4b9f e2e bin/update and bin/run, README 2019-06-04 13:42:07 -04:00
Lang Martin
22b6c2e6ad e2e/deployment find the second deployment, use its status 2019-06-04 13:41:52 -04:00
Michael Schurter
0a29d67beb Merge pull request #5773 from hashicorp/b-revert-planapply-snapshotafter
nomad: revert use of SnapshotAfter in planApply
2019-06-04 08:25:21 -07:00
Chris Baker
168e3e928b Merge pull request #5768 from hashicorp/b-nmd-1489-cleanup-docker-images
Cleanup docker images
2019-06-03 20:16:23 -04:00
Michael Schurter
cd3cd0ad9d nomad: revert use of SnapshotAfter in planApply
Revert plan_apply.go changes from #5411

Since non-Command Raft messages do not update the StateStore index,
SnapshotAfter may unnecessarily block and needlessly fail in idle
clusters where the last Raft message is a non-Command message.

This is trivially reproducible with the dev agent and a job that has 2
tasks, 1 of which fails.

The correct logic would be to SnapshotAfter the previous plan's index to
ensure consistency. New clusters or newly elected leaders will not have
a previous plan, so the index the leader was elected should be used
instead.
2019-06-03 15:34:21 -07:00
Chris Baker
7b6d233617 docker/driver: downgraded log level for error in DestroyTask 2019-06-03 21:21:32 +00:00
Chris Baker
262c863a8b drivers/docker: modify container/image cleanup to be robust to containers removed out of band 2019-06-03 19:52:28 +00:00
Mahmood Ali
5a597f4947 client config flag to disable remote exec
This exposes a client flag to disable nomad remote exec support in
environments where access to tasks ought to be restricted.

I used `disable_remote_exec` client flag that defaults to allowing
remote exec. Opted for a client config that can be used to disable
remote exec globally, or to a subset of the cluster if necessary.
2019-06-03 15:31:39 -04:00
Chris Baker
60a3e95cd0 update changelog 2019-06-03 19:07:13 +00:00
Chris Baker
3b827703fb docker/tests:
- modified tests to cleanup now that RemoveContainer isn't in StartTask
- fix some broken tests by removing docker images/containers before test
2019-06-03 19:05:08 +00:00
Chris Baker
3a96683131 docker: DestroyTask was not cleaning up Docker images because it was erroring early due to an attempt to inspect an image that had already been removed 2019-06-03 19:04:27 +00:00
Mahmood Ali
9349f48e9c changelog exec memory consumption fix 2019-05-31 14:59:13 -05:00
Mahmood Ali
86a6569933 Merge pull request #5728 from hashicorp/restore-08-caps
drivers/exec: Restore 0.8 capabilities
2019-05-29 11:49:39 -05:00
Chris Baker
d017b5fbc5 update changelog for #5557 (#5763) 2019-05-28 09:18:24 -04:00
Mahmood Ali
6217d50803 Fix test comparisons 2019-05-24 21:38:22 -05:00