on 2024 Aug 02 10:18 AM
Hi,
We ran in to an unexpected behavior when doing a blue-green deploy of our MTA. In the mta.yaml file a destination for the application is defined, making use of ${default-url}, meaning that the url for the destination is defined at deploy time. With a normal cf deploy we would now have MyApp with the route MyRoute and a destination MyDest pointing to MyRoute.
The problem arises with the blue-green deploy since this deploys a new app (with route) with the "-idle" suffix e.g. MyApp-idle. This means that ${default-url} also gets the "-idle" suffix. So now we have the app MyApp-idle, with the route MyRoute-idle and MyDest pointing to MyRoute-idle. When continuing the deploy and the live app is removed, MyApp-idle is renamed to MyApp and the MyRoute-idle is removed and only the live route MyRoute remains (all according to cf deploy --strategy blue-green) the destination is however not updated and still pointing to MyRoute-idle. So now there is a mismatch between the destination and the route and the application fails.
I can see a few workarounds, none which is very appealing.
Is there a good approach to solve this issue?
Best regards
Lars
Request clarification before answering.
Thanks you! That seems to be exactly what I was looking for.
Regards
Lars
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
31 | |
21 | |
16 | |
8 | |
7 | |
6 | |
5 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.