Commit Graph

10136 Commits

Author SHA1 Message Date
Preetha Appan
e41f68d7fa Fix linting 2018-01-31 09:56:53 -06:00
Preetha Appan
b2068741f7 Fix flaky test that fails when there is CPU contention 2018-01-31 09:56:53 -06:00
Preetha Appan
ccc434ee6a Add RescheduleTracker to allocations API struct 2018-01-31 09:56:53 -06:00
Preetha Appan
9a21db844d Fix unit test 2018-01-31 09:56:53 -06:00
Preetha Appan
eab9d2da92 Add reschedule policy to API, and HCL parsing support. 2018-01-31 09:56:53 -06:00
Preetha Appan
dd00e637ad Clean up comments, and one more unit test 2018-01-31 09:56:53 -06:00
Preetha Appan
c89c29deed Reconcile against reschedule tracker api changes 2018-01-31 09:56:53 -06:00
Preetha Appan
034e039ca0 Edge trigger evaluation when allocations client status is failed 2018-01-31 09:56:53 -06:00
Preetha Appan
aa1af00fbd Beef up unit test for rescheduling batch jobs 2018-01-31 09:56:53 -06:00
Preetha Appan
a49ad471f9 Address more code review feedback 2018-01-31 09:56:53 -06:00
Preetha Appan
c5f81b426f Make sure that reschedule trackers are not added for node drain replacements 2018-01-31 09:56:53 -06:00
Preetha Appan
0b6846873b Improve reconciler unit tests 2018-01-31 09:56:53 -06:00
Preetha Appan
4cbef07d37 Prevent side effect modification of select options when preferred nodes are set 2018-01-31 09:56:53 -06:00
Preetha Appan
c6c0741bd8 Add helper methods, use require and other code review feedback 2018-01-31 09:56:53 -06:00
Preetha Appan
d96873c827 Reconile with changes to structs for reschedule tracking 2018-01-31 09:56:53 -06:00
Preetha Appan
cc54e11802 Fix some comments and lint warnings, remove unused method 2018-01-31 09:56:53 -06:00
Preetha Appan
5ecb7895bb Reschedule previous allocs and track their reschedule attempts 2018-01-31 09:56:53 -06:00
Preetha Appan
b2f2e28940 Named fields in unit test and one more test case 2018-01-31 09:56:53 -06:00
Preetha Appan
227641e2dc Clean up the copy method + unit test 2018-01-31 09:56:53 -06:00
Preetha Appan
05d40afc14 Wrap reschedule events in another struct and other review feedback 2018-01-31 09:56:53 -06:00
Preetha Appan
949f0b3d5d Export RescheduleEligible method for accessibility from UpdateAlloc endpoint 2018-01-31 09:56:53 -06:00
Preetha Appan
d3e330381e Add comment 2018-01-31 09:56:53 -06:00
Preetha Appan
ca32ed2a4f New structs and methods for reschedule policy, reschedule tracking and unit tests 2018-01-31 09:56:53 -06:00
Michael Schurter
7b9b8b7d7b Merge pull request #3798 from simar7/qemu-graceful-shutdown-bug
[QEMU] Fixing an unintentional variable shadowing
2018-01-30 17:43:44 -08:00
Kyle Havlovitz
d5d719e5a0 Merge pull request #3812 from hashicorp/autopilot-config-change
Refactor redundancy_zone/upgrade_version out of client meta
2018-01-30 16:14:26 -08:00
Kyle Havlovitz
f72a94b6e6 Fix autopilot guide example 2018-01-30 16:12:39 -08:00
Kyle Havlovitz
078c7d9aa9 Fix remaining issues with autopilot change 2018-01-30 15:21:28 -08:00
Michael Schurter
c294323dd0 Add changelog entry for #3773 2018-01-30 14:59:17 -08:00
Chelsea Komlo
eed1f4098c Merge pull request #3817 from hashicorp/d-3814-changelog
Changelog for PR #3814
2018-01-30 17:58:07 -05:00
Michael Schurter
d50ae8a92b Merge pull request #3773 from mikemccracken/2018-01-18/destroy-container-on-err
lxc: cleanup partially configured containers after errors in Start
2018-01-30 14:52:29 -08:00
Chelsea Holland Komlo
149494da1d changelog for PR 3814 2018-01-30 17:46:48 -05:00
Chelsea Komlo
57dbd6c803 Merge pull request #3814 from jrasell/f_gh_3806
Update CLI to use ISO_8601 time format.
2018-01-30 17:39:39 -05:00
Michael Schurter
755b5d784b Merge pull request #3334 from hashicorp/f-vault-acl
Vault Secret Backend
2018-01-30 12:26:59 -08:00
Michael Schurter
47d6651c3a Mention minimum Vault version 2018-01-30 11:31:10 -08:00
Michael Schurter
a6ecce59f3 Minor formatting/style updates 2018-01-30 11:14:05 -08:00
James Rasell
0a13199471 Update CLI to use ISO_8601 time format.
This change updates the formatTime CLI helper function to return
an ISO_8601 time format which will make CLI time usage more
consistent and easier. Previosuly the time format was in US style
format which was somewhat confusing to non US users.

Closes #3806
2018-01-30 08:57:07 +00:00
Kyle Havlovitz
2c873adba4 Refactor redundancy_zone/upgrade_version out of client meta 2018-01-29 20:03:38 -08:00
Alex Dadgar
bb5120fe98 Merge pull request #3684 from jrasell/f_gh_3678
Update `node-status` verbose command to include node address.
2018-01-29 15:32:14 -08:00
Alex Dadgar
3c8a76a2fe Merge pull request #3799 from mikemccracken/2018-01-25/lxc-log-outside-container
lxc: move lxc log file out of container-visible alloc dir
2018-01-29 14:32:22 -08:00
Alex Dadgar
ad8bfaea00 changelog 2018-01-29 09:49:11 -08:00
Alex Dadgar
d11fdc7e10 Merge pull request #3802 from filipochnik/docker-readonly-rootfs
Add ReadonlyRootfs option to the Docker driver
2018-01-29 09:47:27 -08:00
Charlie Voiselle
172bea2b88 Merge pull request #3809 from hashicorp/cv-docs-unrock-nomad
Changed `nomad.rocks` to `localhost:4646` to align with defaults.  Closes #3808
2018-01-29 12:46:36 -05:00
Alex Dadgar
f0929a8592 Merge pull request #3805 from kinvolk/indradhanush/remove-underscores-from-variable-names
rkt_test.go: Remove underscore from variable names
2018-01-29 09:46:12 -08:00
Charlie Voiselle
a6c3144fd5 Changed nomad.rocks to localhost:4646 to align with defaults
Should provide cut and paste example for most users. Advanced users should be able to correct URLs to something appropriate.
2018-01-29 11:27:52 -05:00
Indradhanush Gupta
686c5d48e6 rkt_test.go: Remove underscore from variable names 2018-01-29 11:39:50 +01:00
Filip Ochnik
7507a1e161 Add ReadonlyRootfs option to the Docker driver 2018-01-27 14:38:29 +01:00
Simarpreet Singh
19e1a7fd61 qemu: Make the driver debugging output more indicative
Signed-off-by: Simarpreet Singh <simar@linux.com>
2018-01-25 16:40:16 -08:00
Simarpreet Singh
1223a5705e qemu: Fix unintentional shadowing of monitorPath variable
Signed-off-by: Simarpreet Singh <simar@linux.com>
2018-01-25 16:24:10 -08:00
Simarpreet Singh
1015f05833 Merge pull request #1 from hashicorp/master
merging from upstream
2018-01-25 16:17:52 -08:00
Michael McCracken
2e72eea00a lxc: move lxc log file out of container-visible alloc dir
The LXC runtime's log file is currently written to TaskDir.LogDir,
which is mounted as alloc/logs inside the containers in the task
group.

This file is not intended to be visible to containers, and depending
on the log level, may have information about the host that a container
should not be allowed to see.

Signed-off-by: Michael McCracken <mikmccra@cisco.com>
2018-01-25 14:41:37 -08:00