Commit Graph

13097 Commits

Author SHA1 Message Date
Preetha Appan
4c97c5ea0c Comments 2018-11-08 09:48:43 -06:00
Preetha Appan
6bb8e5aa58 Show preemption output in plan CLI 2018-11-08 09:48:43 -06:00
Alex Dadgar
b52780133b Merge pull request #4830 from hashicorp/f-device-manager
Device Manager
2018-11-07 13:58:32 -08:00
Alex Dadgar
37f239ea74 fix race 2018-11-07 12:22:07 -08:00
Alex Dadgar
72755c2039 remove unused struct field 2018-11-07 11:55:06 -08:00
Alex Dadgar
873cf30af1 seperate struct and proto generation 2018-11-07 11:51:03 -08:00
Alex Dadgar
ad4c26a1e3 review comments 2018-11-07 11:31:52 -08:00
Michael Lange
25101789de Merge pull request #4841 from hashicorp/f-ui-error-handling-on-all-pages
UI: Error handling on all pages
2018-11-07 11:16:06 -08:00
Alex Dadgar
eae45992db reserve uses donectx 2018-11-07 10:43:15 -08:00
Alex Dadgar
a8e95502fe tests 2018-11-07 10:43:15 -08:00
Alex Dadgar
57f40c7e3e Device manager
Introduce a device manager that manages the lifecycle of device plugins
on the client. It fingerprints, collects stats, and forwards Reserve
requests to the correct plugin. The manager, also handles device plugins
failing and validates their output.
2018-11-07 10:43:15 -08:00
Alex Dadgar
4351c49969 Merge pull request #4802 from hashicorp/f-device-binpack
Schedule Devices
2018-11-07 10:35:11 -08:00
Alex Dadgar
a36b682cf4 review comments 2018-11-07 10:33:22 -08:00
Alex Dadgar
ea5fd244f6 allocs fit checks if devices get oversubscribed 2018-11-07 10:33:22 -08:00
Alex Dadgar
dcbf9bdbab Split device accounter and allocator 2018-11-07 10:32:03 -08:00
Alex Dadgar
7ab3ce4bde affinities 2018-11-07 10:32:03 -08:00
Alex Dadgar
77ad27de60 assign devices 2018-11-07 10:32:03 -08:00
Alex Dadgar
c153282be9 Add devices to allocated resources 2018-11-07 10:32:03 -08:00
Michael Lange
7af84f347a Merge pull request #4801 from hashicorp/b-ui-proper-task-group-breadcrumb
UI: Proper task group breadcrumb on the allocation pages
2018-11-06 16:41:46 -08:00
Michael Lange
31e21aed2a Merge pull request #4837 from hashicorp/b-ui-d3-race-condition
UI: Guard against the line chart element already being destroyed
2018-11-06 16:28:45 -08:00
Mahmood Ali
e869d1f37b Merge pull request #4825 from hashicorp/f-driver-plugin-java
Implement java driver plugin
2018-11-06 15:07:29 -08:00
Mahmood Ali
62d24ce9ef reconcile java with latest patterns 2018-11-06 12:49:29 -08:00
Mahmood Ali
12149c3804 driver/java: support non-linux targets
Java driver supports non-linux targets, so LinuxResources fields isn't
guaranteed to be not-nil.
2018-11-06 12:41:39 -08:00
Mahmood Ali
dc0d244dd8 Reconcile with latest master patterns 2018-11-06 12:41:39 -08:00
Mahmood Ali
efe9a60556 register the java plugin 2018-11-06 12:41:39 -08:00
Mahmood Ali
0022496e5b add java driver tests 2018-11-06 12:41:39 -08:00
Mahmood Ali
f7d83d7e80 Implement java driver 2018-11-06 12:41:39 -08:00
Preetha Appan
05aacc86e3 Fix failing resource subtraction test 2018-11-06 12:26:26 -06:00
Michael Schurter
8122c76cd6 Merge pull request #4828 from hashicorp/b-restore
Implement client agent restarting
2018-11-05 18:50:15 -06:00
Michael Lange
705efadfe7 Clean up the remaining routes 2018-11-05 16:33:33 -08:00
Michael Lange
11ba511471 Handle the job 404 error case on the other job sub pages 2018-11-05 16:06:08 -08:00
Michael Lange
cb5bd66dd6 Handle the job 404 error case in versions 2018-11-05 15:42:04 -08:00
Michael Lange
1226a079f9 Handle the job 404 case in the job definition route 2018-11-05 15:20:31 -08:00
Michael Schurter
e58a91b701 client: update alloc status when terminating
Defensively update alloc status whenever killing all tasks.
2018-11-05 15:11:10 -08:00
Michael Schurter
a22205cd8f client: block on context as well as waitCh
For lifecycle operations such as Restart and Kill, the client should not
expect driver plugins to be well behaved and close their waitCh on
context cancelation. Always wait on the passed in context as well as the
waitCh.
2018-11-05 12:32:05 -08:00
Michael Schurter
740ca8e6ca client: fix tr lifecycle logic and shutdown delay
ShutdownDelay must be honored whenever the task is killed or restarted.
Services were not being deregistered prior to restarting.
2018-11-05 12:32:05 -08:00
Michael Schurter
d2e48e35c0 tests: get consul integration tests building 2018-11-05 12:32:05 -08:00
Michael Schurter
d5c8e5bd26 client: fix ar and tr tests 2018-11-05 12:32:05 -08:00
Michael Schurter
9b82025608 client: do not run terminal allocs 2018-11-05 12:32:05 -08:00
Michael Schurter
fdbe446ea6 client: first pass at implementing task restoring
Task restoring works but dead tasks may be restarted
2018-11-05 12:32:05 -08:00
Michael Lange
1e00702624 Handle the job 404 case in task group routes 2018-11-02 19:25:50 -07:00
Michael Lange
5aef27ccd8 Guard against the element already being destroyed
Since DOM code is in a run.next, it's possible that between the DOM
code being queued and running the element is destroyed. So the DOM
code needs to guard against this using the isDestroyed API.
2018-11-02 17:08:02 -07:00
Preetha
ee813524a9 Merge pull request #4836 from hashicorp/b-preemption-testfix
update preemption tests to use new node resource structs
2018-11-02 18:12:49 -05:00
Preetha Appan
1b787a15bf add comment 2018-11-02 18:11:36 -05:00
Preetha Appan
ea5d8cb625 update preemption tests to use new node resource structs
also includes a fix to remove unnecessary subtraction of network mbits
2018-11-02 17:59:53 -05:00
Preetha
6aa0c7ffa9 Merge pull request #4794 from hashicorp/f-preemption-systemjobs
Preemption for system jobs
2018-11-02 16:28:06 -05:00
Preetha Appan
97cf4e1d7a Address more minor code review feedback 2018-11-02 16:26:34 -05:00
Preetha Appan
c49a3e20c5 Fix test setup 2018-11-02 16:06:25 -05:00
Preetha Appan
1380acbf56 dereference safely 2018-11-02 15:58:59 -05:00
Preetha Appan
8235919158 Fix static port preemption to be device aware 2018-11-02 13:07:24 -05:00