Alex Dadgar
|
e1c239daae
|
Merge pull request #4414 from hashicorp/b-stop-summary
Reset Queued allocs to zero when job stopped
|
2018-07-16 14:32:55 -07:00 |
|
Nick Ethier
|
6b6777359b
|
scheduler: fix missing err assignment
|
2018-07-11 14:27:10 -04:00 |
|
Nick Ethier
|
5f6def5b04
|
scheduler: better error handling
|
2018-07-05 11:00:03 -04:00 |
|
Nick Ethier
|
030e650e78
|
scheduler: fix nil pointer exception
|
2018-07-02 16:05:38 -04:00 |
|
Alex Dadgar
|
300b1a7a15
|
Tests only use testlog package logger
|
2018-06-13 15:40:56 -07:00 |
|
Alex Dadgar
|
c3c79c408e
|
Reset Queued allocs to zero when job stopped
When a job is stopped but not purged, we should set the Queued count to
be zero.
|
2018-06-13 10:46:39 -07:00 |
|
Preetha Appan
|
b64788043e
|
make test create index clearer
|
2018-06-05 17:29:59 -05:00 |
|
Preetha Appan
|
3e264dcb79
|
Fix reconciler bug with deployment not being created if job create index is different
This fixes an issue where if a job is purged and resubmitted Nomad does not create
a new deployment. Adds unit test that failed before this fix
|
2018-06-05 13:58:53 -05:00 |
|
Preetha Appan
|
f8a23bc54a
|
fix test comment
|
2018-05-09 16:01:34 -05:00 |
|
Preetha Appan
|
ef531b0f34
|
Add unit tests for forced rescheduling
|
2018-05-09 11:30:42 -05:00 |
|
Preetha Appan
|
c1b92c284e
|
Work in progress - force rescheduling of failed allocs
|
2018-05-08 17:26:57 -05:00 |
|
Alex Dadgar
|
555d14fd92
|
Add test
|
2018-05-07 14:55:01 -05:00 |
|
Preetha Appan
|
cf44670d56
|
Make sure that task group has a deployment state before using it
|
2018-05-07 14:55:01 -05:00 |
|
Alex Dadgar
|
c6478d9469
|
clarify comment
|
2018-05-07 14:55:01 -05:00 |
|
Alex Dadgar
|
768fec8505
|
Allow healthy canary deployment to skip progress deadline
|
2018-05-07 14:55:01 -05:00 |
|
Alex Dadgar
|
8626c1b94a
|
Reschedule when we have canaries properly
|
2018-05-07 14:55:01 -05:00 |
|
Alex Dadgar
|
8dee3ab068
|
canary reschedule test
|
2018-05-07 14:50:01 -05:00 |
|
Alex Dadgar
|
deb93dc7b7
|
Test for rescheduling when there are canaries
|
2018-05-07 14:50:01 -05:00 |
|
Alex Dadgar
|
550f5e31f8
|
Allow canary count greater than desired
|
2018-05-07 14:50:01 -05:00 |
|
Alex Dadgar
|
f95ab4ade8
|
Mark canaries on creation, and unmark on promotion
|
2018-05-07 14:50:01 -05:00 |
|
Preetha Appan
|
5329900f6d
|
Only use DesiredTransition.Reschedule in reconciler when its an active deployment
|
2018-05-07 14:50:01 -05:00 |
|
Alex Dadgar
|
e7444c3873
|
Add test where deployment is marked as complete when done even with failed allocs
|
2018-05-07 14:50:01 -05:00 |
|
Alex Dadgar
|
57969b4ee0
|
fix reconcile tests
|
2018-05-07 14:50:01 -05:00 |
|
Alex Dadgar
|
5547974f35
|
Only reschedule allowed deployment allocs
|
2018-05-07 14:50:01 -05:00 |
|
Alex Dadgar
|
fcf4f582d0
|
small review feedback fixes
|
2018-05-07 14:50:01 -05:00 |
|
Alex Dadgar
|
1336002255
|
Progress deadline in deployment state
|
2018-05-07 14:50:01 -05:00 |
|
Alex Dadgar
|
ee50789c22
|
Initial implementation
|
2018-05-07 14:50:01 -05:00 |
|
Preetha Appan
|
a569d34f25
|
Add custom status description for rescheduling follow up evals, and make unit test robust
|
2018-04-10 15:30:15 -05:00 |
|
Alex Dadgar
|
e5b5803265
|
Only mark allocs as part of deployment if deployment is active
|
2018-04-05 15:40:49 -07:00 |
|
Preetha Appan
|
7e17bc231f
|
remove unnecessary check and other fixes from code review
|
2018-04-04 07:35:20 -05:00 |
|
Preetha Appan
|
00537c739b
|
Fixes edge cases around timing and task finish time being set more than once
|
2018-04-03 16:34:59 -05:00 |
|
Alex Dadgar
|
3aa4ee9d75
|
Fix lost handling of not actually down nodes
|
2018-03-30 14:17:41 -07:00 |
|
Preetha Appan
|
d87e528059
|
rename skip->ignore and improve comment formatting
|
2018-03-29 15:11:10 -05:00 |
|
Preetha Appan
|
38a7614776
|
Refactored for readability, pair programmed with @dadgar
|
2018-03-29 13:28:37 -05:00 |
|
Preetha Appan
|
5090fefe96
|
Filter out allocs with DesiredState = stop, and unit tests
|
2018-03-29 09:28:52 -05:00 |
|
Alex Dadgar
|
b18f789020
|
Unmark drain when nodes hit their deadline and only batch/system left and add all job type integration test
|
2018-03-28 17:25:58 -07:00 |
|
Preetha Appan
|
d2899728fd
|
Fix linting
|
2018-03-28 12:26:28 -05:00 |
|
Alex Dadgar
|
9d60e2cebf
|
Correct status desc on draining system allocs
|
2018-03-26 17:54:46 -07:00 |
|
Preetha Appan
|
33e170c15d
|
s/linear/constant/g
|
2018-03-26 14:45:09 -05:00 |
|
Preetha
|
5668c3c38e
|
Merge pull request #4037 from hashicorp/b-fix-terminal-filtering-service-allocs
Fix edge case in reconciler
|
2018-03-26 13:14:51 -05:00 |
|
Preetha Appan
|
1b9e413a1a
|
one field per line in struct definition
|
2018-03-26 13:13:21 -05:00 |
|
Alex Dadgar
|
e106da84de
|
name and test
|
2018-03-26 11:06:21 -07:00 |
|
Alex Dadgar
|
e2a6e64fca
|
Don't create unnecessary deployments
|
2018-03-23 16:55:21 -07:00 |
|
Preetha Appan
|
cbfd69ce7a
|
Fix edge case in reconciler where service jobs with ClientstatusComplete were not replaced
|
2018-03-23 18:41:00 -05:00 |
|
Alex Dadgar
|
3b72dd94ba
|
Do not mark an allocation as an inplace update if specification hasn't changed
|
2018-03-23 14:36:05 -07:00 |
|
Michael Schurter
|
cb61a4bdc7
|
Fix linting errors
|
2018-03-21 16:51:45 -07:00 |
|
Alex Dadgar
|
92b636dd32
|
Fix deadline handling
|
2018-03-21 16:51:44 -07:00 |
|
Michael Schurter
|
9263cc2ed7
|
scheduler: migrate non-terminal migrating allocs
filterByTainted node should always migrate non-terminal migrating allocs
|
2018-03-21 16:49:48 -07:00 |
|
Michael Schurter
|
d1ec65d765
|
switch to new raft DesiredTransition message
|
2018-03-21 16:49:48 -07:00 |
|
Alex Dadgar
|
db4a634072
|
RPC, FSM, State Store for marking DesiredTransistion
fix build tag
|
2018-03-21 16:49:48 -07:00 |
|