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

Categories assignation issue #119

Closed
acosteseque opened this issue May 5, 2020 · 0 comments · Fixed by #120
Closed

Categories assignation issue #119

acosteseque opened this issue May 5, 2020 · 0 comments · Fixed by #120

Comments

@acosteseque
Copy link

Nutanix Cluster Information

Please provide the version of:

  • Nutanix Cluster (Prism Element / AOS): 5.16.1
  • Nutanix Prism Central: 5.16.1.2

Terraform Version

Terraform v0.12.24

  • provider.nutanix v1.0.2
  • provider.template v2.1.2

Affected Resource(s)

  • nutanix_virtual_machine

Terraform Configuration Files

data "nutanix_cluster" "cluster_by_name" {
  name = "ntnx-test-cls"
}
# # Create VM resources
resource "nutanix_virtual_machine" "vm" {
  count = 1
  name  = "vm-debug-${count.index}"
  cluster_uuid         = data.nutanix_cluster.cluster_by_name.id
  num_vcpus_per_socket = "1"
  num_sockets          = "4"
  memory_size_mib      = 4096
  categories {
    name  = "Environment"
    value = "Dev"
  }
  disk_list {
    disk_size_mib = 5000
  }
}

Debug Output

Error: internal error: cannot shut down the VM with UUID(d73fd035-3cb0-4384-ae4e-ee8dd36e8cd1): error waiting for vm (d73fd035-3cb0-4384-ae4e-ee8dd36e8cd1) to update: timeout while waiting for state to become 'COMPLETE' (last state: 'RUNNING', timeout: 1m0s)

on ApplicationServer.tf line 1, in resource "nutanix_virtual_machine" "vm":
1: resource "nutanix_virtual_machine" "vm" {

Expected Behavior

Adding the category to the VM without requiring powering down the VM
And also it seems that it cannot take into account power_state_mechanism = "ACPI"

Actual Behavior

if power_state_mechanism = "ACPI" it fails see debug output
if default power_state_mechanism it works with a VM power off

Steps to Reproduce

adding or modifying categories assignation to nutanix_virtual_machine

yannickstruyf3 added a commit to yannickstruyf3/terraform-provider-nutanix that referenced this issue May 12, 2020
marinsalinas added a commit that referenced this issue May 15, 2020
fix for issue #119 - timeout issue and categories reboot
yannickstruyf3 added a commit to yannickstruyf3/terraform-provider-nutanix that referenced this issue Nov 9, 2021
yannickstruyf3 pushed a commit to yannickstruyf3/terraform-provider-nutanix that referenced this issue Nov 9, 2021
fix for issue nutanix#119 - timeout issue and categories reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant