cloudfoundry-community / terraform-provider-cloudfoundry

Terraform Cloud Foundry Provider
https://registry.terraform.io/providers/cloudfoundry-community/cloudfoundry/latest
Mozilla Public License 2.0
75 stars 87 forks source link

safe app deletion always retry on any error #567

Closed Cocossoul closed 3 weeks ago

Cocossoul commented 2 months ago

Our apps are failing to be deleted because some services can only unbound to one app at a time. Our issue has been solved temporarily by #547, but at some point the error message changed without notice, so the workaround wasn't cutting it anymore.

Knowing that the service broker messages can not be relied on, I think that it is best to retry app deletion on any error. In the worst case, if this is an error that cannot be solved by retrying only, then we will only loose a few minutes, but this is better than a Terraform apply failing and interrupting a deployment procedure.