Preetha Appan
0babfcc42c
Make sure that task group has a deployment state before using it
2018-05-07 14:55:01 -05:00
Alex Dadgar
ca588f9ce0
clarify comment
2018-05-07 14:55:01 -05:00
Alex Dadgar
42d3c05e4d
Allow healthy canary deployment to skip progress deadline
2018-05-07 14:55:01 -05:00
Alex Dadgar
0e1fb91189
Reschedule when we have canaries properly
2018-05-07 14:55:01 -05:00
Michael Schurter
435a6bddce
consul: remove services with/without canary tags
...
Guard against Canary being set to false at the same time as an
allocation is being stopped: this could cause RemoveTask to be called
with the wrong Canary value and leaking a service.
Deleting both Canary values is the safest route.
2018-05-07 14:55:01 -05:00
Michael Schurter
17c6eb8629
consul: support canary tags for services
...
Also refactor Consul ServiceClient to take a struct instead of a massive
set of arguments. Meant updating a lot of code but it should be far
easier to extend in the future as you will only need to update a single
struct instead of every single call site.
Adds an e2e test for canary tags.
2018-05-07 14:55:01 -05:00
Michael Schurter
1154ccce41
typo: transistion -> transition
2018-05-07 14:50:01 -05:00
Alex Dadgar
686cff26d6
canary reschedule test
2018-05-07 14:50:01 -05:00
Alex Dadgar
588bf68d45
Test for rescheduling when there are canaries
2018-05-07 14:50:01 -05:00
Alex Dadgar
ff7b1bebcc
Allow canary count greater than desired
2018-05-07 14:50:01 -05:00
Alex Dadgar
be30f02913
Fix tests
2018-05-07 14:50:01 -05:00
Alex Dadgar
4c45ca813c
vendor testify
2018-05-07 14:50:01 -05:00
Alex Dadgar
4bad815050
remove unnessary merge of DeploymentStatus.Timestamp
2018-05-07 14:50:01 -05:00
Alex Dadgar
5c8238cde5
Ensure canaries tags are interpolated
2018-05-07 14:50:01 -05:00
Alex Dadgar
20df5aea5b
Canary tags structs
2018-05-07 14:50:01 -05:00
Alex Dadgar
8be599af94
Mark canaries on creation, and unmark on promotion
2018-05-07 14:50:01 -05:00
Preetha Appan
334f5fb826
better comments and remove commented code
2018-05-07 14:50:01 -05:00
Preetha Appan
aab61497e2
Fix deadlock in deployment watcher when deployment starts with no allocations and eventually has failed allocations
2018-05-07 14:50:01 -05:00
Preetha Appan
32557a1a99
Only use DesiredTransition.Reschedule in reconciler when its an active deployment
2018-05-07 14:50:01 -05:00
Alex Dadgar
eb6a99a6d8
CLI
2018-05-07 14:50:01 -05:00
Alex Dadgar
c240e021cc
change default to 10m and docs
2018-05-07 14:50:01 -05:00
Alex Dadgar
01fcba1c4a
Fix not enqueuing eval
2018-05-07 14:50:01 -05:00
Alex Dadgar
f95230028d
Fix typos
2018-05-07 14:50:01 -05:00
Alex Dadgar
b8aa63a780
Add test where deployment is marked as complete when done even with failed allocs
2018-05-07 14:50:01 -05:00
Alex Dadgar
011a084ab4
Test fixes
2018-05-07 14:50:01 -05:00
Alex Dadgar
be3e3eadf6
fix reconcile tests
2018-05-07 14:50:01 -05:00
Alex Dadgar
b1df4611fe
Only reschedule allowed deployment allocs
2018-05-07 14:50:01 -05:00
Alex Dadgar
91402ed0d1
Set Reschedule from deployment watcher
2018-05-07 14:50:01 -05:00
Alex Dadgar
062f236683
Use UpdateAllocDesiredTransistion instead of UpsertEval but no transistions yet
2018-05-07 14:50:01 -05:00
Alex Dadgar
2d6264e75d
rework where time gets set
2018-05-07 14:50:01 -05:00
Alex Dadgar
1050b89ac3
small review feedback fixes
2018-05-07 14:50:01 -05:00
Alex Dadgar
c3b9a9c94e
Small test fix
2018-05-07 14:50:01 -05:00
Alex Dadgar
04a4b1fc00
Drop file
2018-05-07 14:50:01 -05:00
Alex Dadgar
0e2866db4f
add latest eval back
2018-05-07 14:50:01 -05:00
Alex Dadgar
e424a11223
Pass through timestamp
2018-05-07 14:50:01 -05:00
Alex Dadgar
54f9e1b1eb
Handle progressed deployments and tests
2018-05-07 14:50:01 -05:00
Alex Dadgar
2bb9ada69c
Deployment watcher based on deployment having progress deadline
2018-05-07 14:50:01 -05:00
Alex Dadgar
bcaaa10d27
Progress deadline in deployment state
2018-05-07 14:50:01 -05:00
Alex Dadgar
16276753bf
Fix tests
2018-05-07 14:50:01 -05:00
Alex Dadgar
15c3abf816
Initial implementation
2018-05-07 14:50:01 -05:00
Michael Lange
f92d3641aa
Merge pull request #4201 from hashicorp/f-ui-fuzzy-job-search
...
UI: fuzzy and tokenized job search
2018-05-05 09:56:15 -07:00
Michael Lange
4f260e29df
Clean up computed property by inverting early return
2018-05-04 20:38:55 -07:00
Michael Schurter
bd4e761c29
Merge pull request #4251 from hashicorp/f-grpc-checks
...
Support Consul gRPC Health Checks
2018-05-04 14:55:16 -07:00
Michael Schurter
f2f6dab332
Merge pull request #4234 from hashicorp/b-4159
...
Fix race in StreamFramer and truncation in api/AllocFS.Logs
2018-05-04 14:24:07 -07:00
Michael Schurter
4197bc84b1
docs: try to make grpc explanation less confusing
2018-05-04 14:18:40 -07:00
Michael Schurter
e8ad712fa2
tests: fix grpc fields in task diff
2018-05-04 11:08:45 -07:00
Michael Schurter
ae41986fc2
docs: document grpc health check support
2018-05-04 11:08:45 -07:00
Michael Schurter
905bef8f2d
consul: make grpc checks more like http checks
2018-05-04 11:08:11 -07:00
Michael Schurter
882bf5a62c
vendor: update consul for grpc
2018-05-04 11:08:11 -07:00
Michael Schurter
93356e7d70
consul: initial grpc implementation
...
Needs to be more like http.
2018-05-04 11:08:11 -07:00