Commit Graph

7333 Commits

Author SHA1 Message Date
Michael Schurter 0143bef8c7 Remove unused syncInterval 2017-04-19 12:42:47 -07:00
Michael Schurter e204a287ed Refactor Consul Syncer into new ServiceClient
Fixes #2478 #2474 #1995 #2294

The new client only handles agent and task service advertisement. Server
discovery is mostly unchanged.

The Nomad client agent now handles all Consul operations instead of the
executor handling task related operations. When upgrading from an
earlier version of Nomad existing executors will be told to deregister
from Consul so that the Nomad agent can re-register the task's services
and checks.

Drivers - other than qemu - now support an Exec method for executing
abritrary commands in a task's environment. This is used to implement
script checks.

Interfaces are used extensively to avoid interacting with Consul in
tests that don't assert any Consul related behavior.
2017-04-19 12:42:47 -07:00
Michael Schurter 291f4f0b44 Merge pull request #2553 from hashicorp/b-2552-chown-on-copy
Chown files when copying into chroot
2017-04-19 12:38:26 -07:00
Michael Schurter e374593858 Add #2552 / #2553 to changelog 2017-04-19 12:37:15 -07:00
Alex Dadgar cb7c7da58a changelog 2017-04-19 11:12:17 -07:00
Alex Dadgar 1f817b6a50 Merge pull request #2566 from hashicorp/f-job-versions
Track multiple job versions and introduce a stop state for jobs
2017-04-19 11:11:11 -07:00
Alex Dadgar 5a2449d236 Respond to review comments 2017-04-19 10:54:03 -07:00
Seth Vargo d016bb7130
Fix logos 2017-04-18 14:15:06 -04:00
Michael Schurter 25a2717a3b Merge pull request #2572 from hashicorp/docs-2571-cli-tls
Mention required cli config when using tls
2017-04-18 09:40:43 -07:00
Michael Schurter 772f301b6b Mention required cli config when using tls
Fixes #2571
2017-04-18 09:04:06 -07:00
Alex Dadgar 5a08ea7801 Document fix 2017-04-17 20:53:15 -07:00
Alex Dadgar 1769fe468a Fix some tests 2017-04-17 19:39:20 -07:00
Michael Schurter 4b18f916d9 Set ownership on directories in chroot
Also support getOwner on all Unixes as they all have `Stat_t.{U,G}id`
2017-04-17 12:41:33 -07:00
Michael Schurter 83fb374d0b Don't disable hardlinking! 2017-04-17 11:03:15 -07:00
Michael Schurter 547d5a81b4 Chown files when copying into chroot
Fixes #2552

Not needed when hardlinking. Only adds Linux support but other OS's may
be easy.
2017-04-17 11:03:15 -07:00
Alex Dadgar 7c4ecf0858 API Docs 2017-04-16 16:58:48 -07:00
Alex Dadgar e7b128271f Diff code fixes 2017-04-16 16:54:40 -07:00
Alex Dadgar 7b3f3f80fb Status shows type of job 2017-04-15 17:08:05 -07:00
Alex Dadgar 34332af70e GC and some fixes 2017-04-15 17:08:05 -07:00
Alex Dadgar 3145086a42 non-purge deregisters 2017-04-15 17:08:05 -07:00
Alex Dadgar 45ad95e862 Agent API + api package 2017-04-15 17:08:05 -07:00
Alex Dadgar 7abcdff7fd GetJobVersions server endpoint 2017-04-15 17:08:05 -07:00
Alex Dadgar fda44689b7 Histories -> Versions 2017-04-15 17:08:05 -07:00
Alex Dadgar f97664512b Upsert Job Histories 2017-04-15 17:08:05 -07:00
Alex Dadgar d489ed3c7d Job History schema 2017-04-15 17:08:05 -07:00
Alex Dadgar 0c72aa9bd2 changelog 2017-04-14 15:30:31 -07:00
Alex Dadgar 5f04fc0d81 Merge pull request #2555 from hashicorp/f-nack-delay
Back-pressure on Nacks and ensure scheduling progress on failures
2017-04-14 15:27:54 -07:00
Alex Dadgar a331a234d4 NewEvalBroker comment 2017-04-14 15:26:54 -07:00
Alex Dadgar a9c8b09da8 Push to configs 2017-04-14 15:24:55 -07:00
Alex Dadgar 8aec604e3f Easy feedback fixes 2017-04-14 13:19:14 -07:00
Alex Dadgar 87978d6611 changelog 2017-04-14 13:15:23 -07:00
Alex Dadgar 61f4a2dac6 Sync allocation state before waiting for a destroy
This change ensures that the client syncs allocation state with the
servers before entering its wait loop for the allocation to be
destroyed.

Fixes https://github.com/hashicorp/nomad/issues/2563
2017-04-14 13:09:54 -07:00
Alex Dadgar ba052d8405 Merge branch 'master' of github.com:hashicorp/nomad 2017-04-14 12:47:52 -07:00
Alex Dadgar f8f4e859af updated cluster requirements 2017-04-14 12:47:46 -07:00
Michael Schurter 5fb9c7b206 Merge pull request #2556 from vrenjith/patch-2
Update java.html.md
2017-04-13 08:36:28 -07:00
vrenjith d3835a002f Update java.html.md 2017-04-13 12:05:37 +05:30
Alex Dadgar 918d130f34 vendor new go-memdb 2017-04-12 15:42:45 -07:00
Alex Dadgar 0d18b904d3 changelog 2017-04-12 15:02:21 -07:00
Alex Dadgar 0aecf0a09c Merge pull request #2524 from hashicorp/v-go-getter
Vendor go-getter
2017-04-12 15:00:32 -07:00
Alex Dadgar 0fc37a3718 changelog 2017-04-12 14:59:54 -07:00
Alex Dadgar 67d29f684d Merge pull request #2519 from hashicorp/b-sticky-tmp
Add sticky bit to temp directory
2017-04-12 14:59:14 -07:00
Alex Dadgar df7d59051f Reaping failed evaluations creates follow up eval
Create a follow up evaluation when reaping failed evaluations. This
ensures that a job will still make eventual progress.
2017-04-12 14:47:59 -07:00
Alex Dadgar ef875f6dda Delay Nack re-enqueue
Add a delay when an evaluation is nacked that starts off small but
compounds to a larger delay for subsequent Nacks. This creates some
back pressure.
2017-04-12 13:41:40 -07:00
Alex Dadgar e0f8c90b93 Make logging clearer 2017-04-11 12:34:09 -07:00
Alex Dadgar 2eb2b9aa2b changelog 2017-04-11 11:28:36 -07:00
Alex Dadgar ad5fea9875 Merge pull request #2541 from hashicorp/f-stable-distributed-id
Hash host ID so its stable and well distributed
2017-04-11 11:27:53 -07:00
Alex Dadgar af5cda6d8c changelog 2017-04-11 10:56:55 -07:00
Alex Dadgar 718a8ccb6a Merge pull request #2547 from hashicorp/f-extra-hosts
Add ExtraHosts to Docker driver
2017-04-11 10:56:11 -07:00
Alex Dadgar cdd624ff5b Add ExtraHosts to Docker driver
This PR allows job submitters to add extra hosts to the containers
/etc/hosts file.

Fixes https://github.com/hashicorp/nomad/issues/2546
2017-04-11 10:52:41 -07:00
Alex Dadgar 30ab0e8ffc changelog 2017-04-10 16:23:46 -07:00