HewlettPackard / terraform-provider-oneview

Automates the provisioning of physical infrastructure from a private cloud using templates from HPE OneView with Terraform
Apache License 2.0
49 stars 30 forks source link

Server Profiles - Terraform doesn't wait for deletion to complete #366

Closed ClaireHayard closed 3 years ago

ClaireHayard commented 3 years ago

Scenario/Intent

When doing a terraform destroy of all ressources (from the server profiles to the networks), Terraform tries to delete the logical enclosure before the end of the server profiles deletion.

However, the output of the destroy says that the destruction of the server profiles is complete after ~10s.

In the OneView GUI, the server profiles are still in the process of being deleted but as they have multiple connections and are assigned to a server hardware, it takes more time for them to be deleted in the OneView.

Expected Result

The server profiles are all deleted and Terraform waits for the destruction to be complete before moving to delete other objects (in our case the logical enclosure).

Actual result

Error: Unable to deleted this logical enclosure because it is hosting active server profiles

AsisBagga commented 3 years ago

Hi @ClaireHayard Thank you for raising this issue, we will look into this.

AsisBagga commented 3 years ago

Hi @ClaireHayard As of now this fix is merged in GitHub. This fix would be available provider version 6.3. Ill proceed with closing this issue, and if you have any concerns please feel free to open a new issue.