Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Wednesday 23rd of August - Deletion and recreation of an environment fails" #66

Open
ozcan-ozkaya-et opened this issue Aug 23, 2023 · 1 comment

Comments

@ozcan-ozkaya-et
Copy link

ozcan-ozkaya-et commented Aug 23, 2023

** Expected Behavior**
We are recreating a Delphix environment, moving it from a plain resource to a module, terraform should delete the plain resource and create it under module instead. Delete the existing and create the new one.

** Actual Behavior**
Creation fails because does not wait for the deletion to be completed.

Steps To Reproduce the Problem
Recreate an existing environment, simply changing the resource address within the Terraform configuration.

Steps to reproduce the behavior:

  1. Move the address of an existing environment
  2. apply
  3. See error
Error: [NOT OK] Env-Create FAILED. JobId: e459d95263984aef98cd0f690af6c798 / Error: Failed to add host "10.35.23.28"

because it belongs to another host environment "magicplus-neur-staging-target-082".

module.main.module.delphix_target["082"].delphix_environment.target["magicplus-neur-staging-target-082"] will be created

Screenshots
Screenshot 2023-08-23 at 09 42 34

Plan actions
Destroy of current env.

 module.main.delphix_environment.target["082"] will be destroyed
 (because delphix_environment.target is not in configuration)

Creation of the new env

 # module.main.module.delphix_target["082"].delphix_environment.target["magicplus-neur-staging-target-082"] will be created

Version
Version
Engine V10
DCT v9
TF provider v2

Additional Context
Add any other context about the problem here, including additional logs or debugging information if appropriate.

@nick-mathison
Copy link
Contributor

Thanks for the detailed report!

This seems very similar to #67 where you are changing the value of a property (hostname) and then expect the Environment to update accordingly.

What's different is that you are reporting an incomplete "delete" action. We'll need to investigate and confirm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants