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

Blue Green Deployment : id_bg doesnt update the app id to latest version

Open dipumonharidask opened this issue 2 years ago • 3 comments

Found an issue while deploying using blue green strategy using 0.50.4 version of the terraform provider

id_bg gives the app id value for the old app, it doesn't update the value to the updated version of the app.

This leads to issues for network_policy creation as policies are not created as old application is deleted after upgrade.

Found this issue in version 0.50.4 of the provider.

dipumonharidask avatar Jan 11 '23 10:01 dipumonharidask

Same issue here As an ugly workaround, I had to completely delete then redeploy the app for the terraform deployment to converge

psycofdj avatar Jan 11 '23 10:01 psycofdj

I was unable to reproduce the issue locally, can you please share with me the steps to reproduce as well as your configuration?

Thanhphan1147 avatar Jan 13 '23 15:01 Thanhphan1147

We faced the issue in below scenario:

  • Deploy two applications.
  • Get bg_id of one app as output and pass it is as an input to another app.
  • Create network policy between both the apps.
  • Network policy will be created using app I'd of older version app id of first app, not the updated version's app id.

dipumonharidask avatar Jan 16 '23 16:01 dipumonharidask