Describe the bug
During a resource adjustment, the VM is restarted by Terraform. I noticed that the VM does not shut down cleanly with an ACPI event. Instead, the VM is turned off hard.
At least that's how I interpret the code:
https://github.com/terraform-providers/terraform-provider-nutanix/blob/34a9c14c88956bce549deb60599602e2a5b224d2/nutanix/resource_nutanix_virtual_machine.go#L1234-L1238
Expected behavior
- Terraform should send an ACPI shutdown and wait at least five minutes.
- The time to wait should be configurable.
Logs
I'll be happy to deliver more if necessary.
Versions (please complete the following information):
- OS that is executing Terraform: Debian 8.11
- Terraform: v0.11.14
- Nutanix Cluster (Prism Element / AOS): 5.10.9.1 LTS
- Nutanix Prism Central: 5.11.2.1
- Terraform provider version: v1.0.2
Additional context
Add any other context about the problem here.
Describe the bug
During a resource adjustment, the VM is restarted by Terraform. I noticed that the VM does not shut down cleanly with an ACPI event. Instead, the VM is turned off hard.
At least that's how I interpret the code:
https://github.com/terraform-providers/terraform-provider-nutanix/blob/34a9c14c88956bce549deb60599602e2a5b224d2/nutanix/resource_nutanix_virtual_machine.go#L1234-L1238
Expected behavior
Logs
I'll be happy to deliver more if necessary.
Versions (please complete the following information):
Additional context
Add any other context about the problem here.