Commit graph

8847 commits

Author SHA1 Message Date
Alex Dadgar c08f9e729f Merge pull request #3217 from hashicorp/b-batch-filter
Fix batch handling of complete allocs/node drains
2017-09-14 15:11:40 -07:00
Alex Dadgar b2f892b2ac changelog 2017-09-14 15:11:26 -07:00
Alex Dadgar 3904bde9a3 Fix batch handling of complete allocs/node drains
This PR fixes:
* An issue in which a node-drain that contains a complete batch alloc
would cause a replacement
* An issue in which allocations with the same name during a scale
down/stop event wouldn't be properly stopped.
* An issue in which batch allocations from previous job versions may not
have been stopped properly.

Fixes https://github.com/hashicorp/nomad/issues/3210
2017-09-14 15:08:57 -07:00
Alex Dadgar 96442414b8 Changelog 2017-09-14 14:35:53 -07:00
Alex Dadgar 6c935f7303 Update CHANGELOG.md 2017-09-14 14:34:02 -07:00
Alex Dadgar d156cb48b3 Merge pull request #3206 from hashicorp/b-eval-index
Worker waits til max ModifyIndex across EvalsByJob
2017-09-14 14:29:32 -07:00
Alex Dadgar e862bbc78a Changelog 2017-09-14 14:29:02 -07:00
Alex Dadgar 567eef50a8 Address feedback 2017-09-14 14:28:43 -07:00
Alex Dadgar 6911bd7676 Worker waits til max ModifyIndex across EvalsByJob
This PR fixes a scheduling race condition in which the plan results from
one invocation of the scheduler were not being considered by the next
since the Worker was not waiting for the correct index.

Fixes https://github.com/hashicorp/nomad/issues/3198
2017-09-14 14:28:43 -07:00
Alex Dadgar 765de546d8 Merge pull request #3214 from hashicorp/f-agent-servers
Sort /v1/agent/servers output
2017-09-14 14:22:00 -07:00
Alex Dadgar 08a0b1c2b6 changelog 2017-09-14 14:21:41 -07:00
Alex Dadgar 01180fec58 use assert 2017-09-14 14:20:22 -07:00
Alex Dadgar c55b7ce4d6 Sort /v1/agent/servers output
This PR sorts the output of the endpoint since its results are used as
part of Consul checks to avoid the value changing unnecessarily.

Fixes https://github.com/hashicorp/nomad/issues/3211
2017-09-14 14:20:22 -07:00
Alex Dadgar 90a3c20017 Merge pull request #3195 from hashicorp/b-node-locking
Non-locked accessors to common Node fields
2017-09-14 14:09:35 -07:00
Alex Dadgar d306da846c changelog and feedback 2017-09-14 14:08:58 -07:00
Alex Dadgar 07ed83fdd5 Non-locked accessors to common Node fields
This PR removes locking around commonly accessed node attributes that do
not need to be locked. The locking could cause nodes to TTL as the
heartbeat code path was acquiring a lock that could be held for an
excessively long time. An example of this is when Vault is inaccessible,
since the fingerprint is run with a lock held but the Vault
fingerprinter makes the API calls with a large timeout.

Fixes https://github.com/hashicorp/nomad/issues/2689
2017-09-14 14:08:26 -07:00
Chelsea Holland Komlo be7efd71d4 fixups from code review 2017-09-14 20:14:38 +00:00
Chelsea Holland Komlo 0d28c95b6b use separate response object 2017-09-14 19:17:05 +00:00
Chelsea Holland Komlo 79abb9810b update to use ACL test helpers 2017-09-14 19:08:25 +00:00
Chelsea Holland Komlo 3eff2a06c5 add job endpoint ACL 2017-09-14 18:17:35 +00:00
Chelsea Holland Komlo 254cb874e8 update metrics path 2017-09-14 18:11:47 +00:00
Alex Dadgar 2102bc3968 Merge pull request #3209 from dezmodue/patch-1
Adding missing <
2017-09-14 10:53:26 -07:00
Chelsea Holland Komlo c68438c3fc changelog 2017-09-14 17:50:54 +00:00
Chelsea Holland Komlo 663005de0d filter nomad services for only http 2017-09-14 17:50:54 +00:00
Chelsea Holland Komlo 55cdeac5ea update consul information 2017-09-14 17:50:53 +00:00
Chelsea Holland Komlo f66c692d99 Readme instructions 2017-09-14 17:50:53 +00:00
Chelsea Holland Komlo 794f65e67f add prometheus metrics for configuration with consul and nomad 2017-09-14 17:50:53 +00:00
Alex Dadgar fa2dd57071 Merge pull request #3205 from hashicorp/f-deployment-acl
Deployment.GetDeployment ACL enforcement
2017-09-14 10:50:17 -07:00
Alex Dadgar 1e644393aa review feeback 2017-09-14 10:50:04 -07:00
Alex Dadgar 9b997d2670 fix multierror merge 2017-09-13 21:48:52 -07:00
Alex Dadgar 5502f46951 changelog 2017-09-13 15:46:41 -07:00
Alex Dadgar 0de4df881f Merge pull request #3203 from hashicorp/b-search-hyphens
Fix UUID search with hyphens
2017-09-13 15:45:22 -07:00
Chelsea Komlo a8adee10c0 Merge pull request #3171 from hashicorp/f-prometheus-metrics
Prometheus metrics
2017-09-13 17:02:32 -04:00
Chelsea Holland Komlo 4ccb73ac67 vendor go-metrics 2017-09-13 19:31:26 +00:00
Chelsea Holland Komlo 2939751811 vendor gzip libarary 2017-09-13 19:21:21 +00:00
Chelsea Holland Komlo c014cb014f fix bug to return prometheus sink 2017-09-13 19:21:21 +00:00
Chelsea Holland Komlo fcc3071e52 fixups from code review 2017-09-13 19:21:21 +00:00
Chelsea Holland Komlo faabf61c6d updated documentation 2017-09-13 19:21:21 +00:00
Chelsea Holland Komlo f5975dceb7 refactoring prometheus endpoint 2017-09-13 19:21:21 +00:00
Chelsea Holland Komlo 1da4027758 vendor necessary libraries for prometheus metrics 2017-09-13 19:21:21 +00:00
Chelsea Holland Komlo e0f9cd4a0f add documentation for prometheus config option 2017-09-13 19:21:21 +00:00
Chelsea Holland Komlo 035fab0c8d enabling prometheus metrics should be a config option 2017-09-13 19:21:21 +00:00
Chelsea Holland Komlo d8e9f2fef7 add endpoint for prometheus 2017-09-13 19:21:21 +00:00
Alex Dadgar 109504f4bc Merge pull request #3192 from hashicorp/f-acl-cli
Add ACL Bootstrap CLI
2017-09-13 11:46:15 -07:00
Alex Dadgar 4b947222a8 Deployment.GetDeployment ACL enforcement 2017-09-13 11:44:23 -07:00
Alex Dadgar 484e481e74 vendor go-plugin file 2017-09-13 11:44:09 -07:00
Alex Dadgar 903e5e873c changelog 2017-09-13 11:43:13 -07:00
Alex Dadgar 54e04b5c0e Merge pull request #3201 from hashicorp/b-periodic-restore
Fix restoration of stopped periodic jobs
2017-09-13 11:42:29 -07:00
Alex Dadgar eff318a564 Merge pull request #3204 from hashicorp/f-sync-acl
sync acls
2017-09-13 11:39:22 -07:00
Alex Dadgar a2363e7583 sync acls 2017-09-13 11:38:29 -07:00