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

Cisco M6 Standalone server "Error: The terraform-provider-nutanix_v1.9.5.exe plugin crashed" verified terraform version 64bit #714

Open
nicoapo opened this issue Jan 7, 2025 · 0 comments

Comments

@nicoapo
Copy link

nicoapo commented Jan 7, 2025

Nutanix Cluster Information

Terraform Version
Terraform v1.10.3
on windows_amd64

  • provider registry.terraform.io/nutanix/nutanix v1.9.5

Please list the affected resources and data sources.
with nutanix_foundation_central_image_cluster.img2,
│ on main.tf line 23, in resource "nutanix_foundation_central_image_cluster" "img2":
│ 23: resource "nutanix_foundation_central_image_cluster" "img2"{

│ The plugin encountered an error, and failed to respond to the plugin.(*GRPCProvider).ApplyResourceChange call. The plugin logs may contain more details.eChange call. The plugin logs may contain more details.

Terraform Configuration Files

#defining nutanix configuration
provider "nutanix" {
  username = var.nutanix_username
  password = var.nutanix_password
  endpoint = var.nutanix_endpoint
  port     = 9440
  insecure = true
}

//resource for node imaging and cluster creation
resource "nutanix_foundation_central_image_cluster" "this" {
  //required fields
  aos_package_url   = var.aos_package_url
  cluster_name      = var.cluster_name
  redundancy_factor = var.redundancy_factor
  hypervisor_iso_details {
    url = var.hypervisor_iso_details.url
  }

  //Optional fields
  storage_node_count    = var.storage_node_count
  cluster_size          = var.cluster_size
  aos_package_sha256sum = var.aos_package_sha256sum
  timezone              = var.timezone
  cluster_external_ip   = var.cluster_external_ip
  skip_cluster_creation = var.skip_cluster_creation

  // define common network settings
  dynamic "common_network_settings" {
    for_each = [var.common_network_settings]
    content {
      cvm_dns_servers        = common_network_settings.value.cvm_dns_servers
      hypervisor_dns_servers = common_network_settings.value.hypervisor_dns_servers
      cvm_ntp_servers        = common_network_settings.value.cvm_ntp_servers
      hypervisor_ntp_servers = common_network_settings.value.hypervisor_ntp_servers
    }
  }

  // define node list 
  dynamic "node_list" {
    for_each = var.node_list
    content {
      cvm_gateway                   = node_list.value.cvm_gateway
      cvm_netmask                   = node_list.value.cvm_netmask
      cvm_ip                        = node_list.value.cvm_ip
      hypervisor_gateway            = node_list.value.hypervisor_gateway
      hypervisor_netmask            = node_list.value.hypervisor_netmask
      hypervisor_ip                 = node_list.value.hypervisor_ip
      hypervisor_hostname           = node_list.value.hypervisor_hostname
      imaged_node_uuid              = node_list.value.imaged_node_uuid
      use_existing_network_settings = node_list.value.use_existing_network_settings
      ipmi_gateway                  = node_list.value.ipmi_gateway
      ipmi_netmask                  = node_list.value.ipmi_netmask
      ipmi_ip                       = node_list.value.ipmi_ip
      image_now                     = node_list.value.image_now
      hypervisor_type               = node_list.value.hypervisor_type
    }
  }
}

Debug Output

Panic Output

│ Error: Plugin did not respond

│ with nutanix_foundation_central_image_cluster.img2,
│ on main.tf line 23, in resource "nutanix_foundation_central_image_cluster" "img2":
│ 23: resource "nutanix_foundation_central_image_cluster" "img2"{

│ The plugin encountered an error, and failed to respond to the plugin.(*GRPCProvider).ApplyResourceChange call. The plugin logs may contain more details.eChange call. The plugin logs may contain more details.

Stack trace from the terraform-provider-nutanix_v1.9.5.exe plugin:

panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x8 pc=0x134fa00]

goroutine 100 [running]:
github.com/terraform-providers/terraform-provider-nutanix/nutanix.foundationCentralPollingNode.func1()
github.com/terraform-providers/terraform-provider-nutanix/nutanix/resource_nutanix_foundation_central_image_nodes.go:954 +0xc0
github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource.(*StateChangeConf).WaitForStateContext.func1()
github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/resource/state.go:110 +0x21f
created by github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource.(*StateChangeConf).WaitForStateContext
github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/resource/state.go:83 +0x1dd

Error: The terraform-provider-nutanix_v1.9.5.exe plugin crashed!

Expected Behavior

Created the cluster within foundation central with the manual attributes, on a cisco m6 standalone server
Actual Behavior
nothing was created or started the process of imaging
Steps to Reproduce

  1. terraform apply
    Important Factors
    We are using cisco m6 standalone servers that we are trying to fully automate the foundation central process via terraform like our previous ESXI HX Cluster deployments through intersight.

using a tfvars folder for the linked variables​ within the same folder structure

example:
--->
similar issue verified i am using the correct version.
(#689)

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

No branches or pull requests

1 participant