-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
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:
- The
live_colormethod may returnnil(see https://github.com/madetech/cf-deploy/blob/master/lib/cf/deploy/commands.rb#L42), e.g. whencf routesfails... - If the
live_colorisnil, then theidle_coloris always"blue"(see https://github.com/madetech/cf-deploy/blob/master/lib/cf/deploy/blue_green.rb#L80-L86) - Suggestion 1: raise an error and abort if live color cannot be determined
- Suggestion 2: change the implementation of
idle_colorto more thoroughly check the return value oflive_color
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels