terraform-provider-cloudfoundry icon indicating copy to clipboard operation
terraform-provider-cloudfoundry copied to clipboard

Adding RouteMapping for v3 cli

Open erezdeveleap opened this issue 4 years ago • 2 comments

Hey!

I've having this error when I try to deploy my application via blue-green strategy, I am able to reproduce it (different ids): Error: Oh no. Something's gone wrong. I've tried to roll back but you should check to see if everything is OK.: The app could not be found: e8fa930d-d6c2-40b2-ba65-c2f44701631f

While debugging, I found out that I'm getting this error: { "error_code": "UnknownError", "description": "An unknown error occurred.", "code": 10001 }

This happens on RouteMapping function which uses ccv2 func (r RunBinder) MapRoutes(appDeploy AppDeploy) ([]ccv2.RouteMapping, error) { Which I suspect, the issue caused by the v2 of CF CLI, therefore I suggest we can try and use v3, and mayhap we can solve this

Thanks!!

erezdeveleap avatar Jan 26 '22 11:01 erezdeveleap

Switching to the v3 API fully means rewriting most of the provider I'm afraid. The UnknownError should probably be handled more gracefully by the deploy strategy. Are you using blue-green ?

loafoe avatar Mar 30 '22 15:03 loafoe

Hey Andy!

Yes, we debugged this together, we did using blue-green strategy

erezdeveleap avatar Mar 31 '22 10:03 erezdeveleap

@erezdeveleap please try the v0.50.1 or newer version

loafoe avatar Nov 24 '22 15:11 loafoe