Skip to content

During a resource adjustment the VM is not shut down using ACPI #96

Closed
@mritzmann

Description

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.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions