Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make blue/green more robust when cf routes fails #7

Open
severin opened this issue Oct 28, 2016 · 2 comments
Open

Make blue/green more robust when cf routes fails #7

severin opened this issue Oct 28, 2016 · 2 comments

Comments

@severin
Copy link

severin commented Oct 28, 2016

If the cf routes command fails (e.g. when the pivotal API is having problems) then blue/green deployments always go to the blue host. This is bad when the blue host is the current live host...

Reproducing/how to fix:

@rrpff
Copy link
Contributor

rrpff commented Oct 28, 2016

Good catch, thanks for raising this.

Can you think of many cases where cf routes would fail aside from problems with the Pivotal API? I wonder if it be worth retrying the request a few times before raising an error.

@severin
Copy link
Author

severin commented Oct 28, 2016

It fails of course when you/cf is not logged in. But then everything fails and it is no problem ;) Retrying a couple of times might be worth it.

To share a bit more context: pivotal has/had problems this morning with their API and we ran into this problem: route lookup somehow failed, cf deploy targeted the blue host that was actually the live one, and cf push partially worked (it took the blue host offline to update it, but never brought it back up again)...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants