delphix-integrations / terraform-provider-delphix

Repository for Delphix Terraform Provider built on DCT APIs.
https://integrations.delphix.com
11 stars 9 forks source link

HUBS-1603 Plan phase hangs when VDB resource no longer exists #42

Closed kishlay-delphix closed 1 year ago

kishlay-delphix commented 1 year ago

Problem:

When the VDB was deleted from the engine and terraform plan was being executed, the drift detection mechanism in the provider was not working as expected.Even though the VDB was deleted from the remote the state file reference wasn't getting cleaned up resulting in a hang like behaviour.

Solution:

The drift mechanism was fixed and terraform plan was executing as expected.Also we added extra checks to ensure there is no false override of the state file.

Testing

Tested VDB deletion flow and terraform commands

nick-mathison commented 1 year ago

Unsure of the exact release process here, but we'll need to update the version to 1.0.1 before we tag a release.