Question

Creating a new VM under exsiting project

  • 11 July 2021
  • 0 replies
  • 34 views

Hi all,

I’m trying to use terraform to create VMs on our Nutanix cluster and I’ve encountered issues when trying to define the project name i’m trying to assign the new VM to.

I have created a variable that contains the project name and set the project_reference on the machine to point to that variable.

When running terraform plan everything seems to be working as expected but when i apply the terraform, the terraform crashes with the following error:

│ Error: Plugin did not respond

│   with nutanix_virtual_machine.tf-build-project-test[0],
│   on main.tf line 75, in resource "nutanix_virtual_machine" "tf-build-project-test":
│   75: resource "nutanix_virtual_machine" "tf-build-project-test" {

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

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

panic: interface conversion: interface {} is nil, not string

 

Has anyone encountered this issue or was able to successfully deploy a new VM under an existing project using terraform.

If i’m trying to deploy without setting the project everything runs smoothly

 

We are using AHV as the hypervisor.

 

Thanks,


0 replies

Be the first to reply!

Reply