Preetha
0fdbdfd30b
Merge pull request #4259 from hashicorp/f-deployment-improvements
2018-05-08 16:37:10 -05:00
Chelsea Komlo
e809eb560c
Merge pull request #4179 from hashicorp/f-retry-join
...
Cloud Auto Join
2018-05-08 13:00:02 -04:00
Nick Ethier
11933eaa56
Merge pull request #4262 from hashicorp/b-3720-optional-meta
...
client/driver/env: interpolate empty optional meta params as empty strings
2018-05-07 20:44:02 -04:00
Nick Ethier
84926f759a
client/driver/env: interpolate empty optional meta params as empty strings
2018-05-07 20:19:51 -04:00
Chelsea Holland Komlo
321b0779d5
only write error log line on error
2018-05-07 16:57:07 -04:00
Chelsea Holland Komlo
496b5cce38
remove log line for empty addresses which could confuse on initalization
2018-05-07 16:57:07 -04:00
Chelsea Holland Komlo
d00e096073
retry until all options are exhausted
2018-05-07 16:57:07 -04:00
Chelsea Holland Komlo
9e78d227e5
ensure provider= is always the string prefix
2018-05-07 16:57:07 -04:00
Chelsea Holland Komlo
f34d76a7ed
update test for more realistic IP address from go-discover
2018-05-07 16:57:07 -04:00
Chelsea Holland Komlo
ae3bdddfdf
remove unused dependencies
2018-05-07 16:57:07 -04:00
Chelsea Holland Komlo
69a79f0c41
update go-discover
2018-05-07 16:57:07 -04:00
Chelsea Holland Komlo
6dc22ead23
vendor go-discover
2018-05-07 16:57:07 -04:00
Chelsea Holland Komlo
0d3c6a0441
comments and other fixups
2018-05-07 16:57:06 -04:00
Chelsea Holland Komlo
1e3bb6b21d
add go-discover
2018-05-07 16:57:06 -04:00
Chelsea Holland Komlo
5b7027d9ec
refactor to retryJoiner interface
2018-05-07 16:57:06 -04:00
Nick Ethier
517d0eec0b
Merge pull request #4261 from hashicorp/f-docker-progress-detection
...
client/driver: remove unused const 'dockerPullProgressEmitInterval'
2018-05-07 16:27:19 -04:00
Nick Ethier
fdef36ae38
client/driver: remove unused const 'dockerPullProgressEmitInterval'
2018-05-07 16:24:48 -04:00
Preetha Appan
4bc7db4447
newlines in test
2018-05-07 14:55:01 -05:00
Preetha Appan
083541e9ed
Fix deadlock in deadline timer logic when progress deadline is passed and the deployment is updated.
2018-05-07 14:55:01 -05:00
Preetha Appan
c317c54d75
Fix test set up to set ModifyTime for alloc
2018-05-07 14:55:01 -05:00
Preetha Appan
2e393fc89e
Set modify time for allocs in unit test, and define current time in one spot
2018-05-07 14:55:01 -05:00
Preetha Appan
809c2a980a
Fix panic in deployment watcher when deployment is not in the state store due to a gc
2018-05-07 14:55:01 -05:00
Preetha
6b3eb8e657
Fix typo
2018-05-07 14:55:01 -05:00
Preetha Appan
ceafb2b354
Update end to end tests to use shorter progress deadlines
2018-05-07 14:55:01 -05:00
Alex Dadgar
3701ee09c8
Fix the initial progress deadline calculation when the alloc is inplace updated to be part of a new deployment
2018-05-07 14:55:01 -05:00
Preetha Appan
801d147e83
More e2e test fixes after changes to rescheduling during deployments
2018-05-07 14:55:01 -05:00
Preetha Appan
83ad99c436
Some test fixes to e2e rescheduling tests
2018-05-07 14:55:01 -05:00
Michael Schurter
64240e476e
consul: change hashed canary bytes
2018-05-07 14:55:01 -05:00
Alex Dadgar
fc099e59ea
Add test
2018-05-07 14:55:01 -05:00
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