-
Notifications
You must be signed in to change notification settings - Fork 116
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
During a resource adjustment the VM is not shut down using ACPI #96
Comments
Hello @mritzmann thank you so much for your review, I will check it out and I will let you know when I have news |
Hello, @mritzmann, I implemented the new attribute to configure the Plz let me know if you have another comment or concern, thanks. |
Hi @PacoDw, thanks for taking care of it. I built the provider plugin from source and tried to test it. I have received the following error message.
My resource "nutanix_virtual_machine" "tf-test" {
name = "test"
cluster_uuid = "00056dce-32b5-c4ed-0000-00000001170b"
memory_size_mib = "2048"
num_sockets = "2"
lifecycle {
prevent_destroy = true
ignore_changes = [
nic_list,
disk_list,
guest_customization_cloud_init_user_data,
]
}
power_state_mechanism_config {
guest_transition_config {
should_fail_on_script_failure = true
enable_script_exec = true
}
mechanism = "ACPI"
}
} Probably because my test VM did not respond to the ACPI command within one minute or not at all (but this is probably more a problem of my VM). Therefore my questions:
|
@mritzmann Could you test it again against provider "nutanix" {
wait_timeout = 6 //that means this will wait 6 minutes.
// ... other provider configuration
} |
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.
The text was updated successfully, but these errors were encountered: