You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
terraform {
required_providers {
nutanix={
source ="nutanix/nutanix"
version ="2.0.0"
}
}
}
data"nutanix_clusters_v2""clusters" {}
output"clusters" {
value=data.nutanix_clusters_v2.clusters
}
# Copy-paste your Terraform configurations here - for large Terraform configs,# please use a service like Dropbox and share a link to the ZIP file.
Debug Output
`2025-01-10T18:07:45.789+0100 [INFO] Terraform version: 1.10.4
2025-01-10T18:07:45.789+0100 [DEBUG] using github.com/hashicorp/go-tfe v1.70.0
2025-01-10T18:07:45.789+0100 [DEBUG] using github.com/hashicorp/hcl/v2 v2.23.0
2025-01-10T18:07:45.789+0100 [DEBUG] using github.com/hashicorp/terraform-svchost v0.1.1
2025-01-10T18:07:45.789+0100 [DEBUG] using github.com/zclconf/go-cty v1.16.0
2025-01-10T18:07:45.789+0100 [INFO] Go runtime version: go1.23.3
2025-01-10T18:07:45.789+0100 [INFO] CLI args: []string{"/tmp/terraform", "plan"}
2025-01-10T18:07:45.789+0100 [DEBUG] Attempting to open CLI config file: /Users/arechste/.terraformrc
2025-01-10T18:07:45.789+0100 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2025-01-10T18:07:45.790+0100 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2025-01-10T18:07:45.790+0100 [DEBUG] ignoring non-existing provider search directory /Users/arechste/.terraform.d/plugins
2025-01-10T18:07:45.790+0100 [DEBUG] ignoring non-existing provider search directory /Users/arechste/Library/Application Support/io.terraform/plugins
2025-01-10T18:07:45.790+0100 [DEBUG] ignoring non-existing provider search directory /Library/Application Support/io.terraform/plugins
2025-01-10T18:07:45.791+0100 [INFO] CLI command args: []string{"plan"}
2025-01-10T18:07:45.838+0100 [DEBUG] checking for provisioner in "."
2025-01-10T18:07:45.839+0100 [DEBUG] checking for provisioner in "/tmp"
2025-01-10T18:07:45.843+0100 [INFO] backend/local: starting Plan operation
2025-01-10T18:07:45.851+0100 [DEBUG] created provider logger: level=debug
2025-01-10T18:07:45.851+0100 [INFO] provider: configuring client automatic mTLS
2025-01-10T18:07:45.866+0100 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/nutanix/nutanix/2.0.0/darwin_arm64/terraform-provider-nutanix_v2.0.0 args=[".terraform/providers/registry.terraform.io/nutanix/nutanix/2.0.0/darwin_arm64/terraform-provider-nutanix_v2.0.0"]
2025-01-10T18:07:45.868+0100 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/nutanix/nutanix/2.0.0/darwin_arm64/terraform-provider-nutanix_v2.0.0 pid=22995
2025-01-10T18:07:45.868+0100 [DEBUG] provider: waiting for RPC address: plugin=.terraform/providers/registry.terraform.io/nutanix/nutanix/2.0.0/darwin_arm64/terraform-provider-nutanix_v2.0.0
2025-01-10T18:07:45.895+0100 [INFO] provider.terraform-provider-nutanix_v2.0.0: configuring server automatic mTLS: timestamp="2025-01-10T18:07:45.894+0100"
2025-01-10T18:07:45.904+0100 [DEBUG] provider.terraform-provider-nutanix_v2.0.0: plugin address: address=/var/folders/b_/cl0dhhjs2wn3t7vhtqpgfsp80000gn/T/plugin2386131933 network=unix timestamp="2025-01-10T18:07:45.904+0100"
2025-01-10T18:07:45.904+0100 [DEBUG] provider: using plugin: version=5
2025-01-10T18:07:45.995+0100 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2025-01-10T18:07:45.995+0100 [INFO] provider: plugin process exited: plugin=.terraform/providers/registry.terraform.io/nutanix/nutanix/2.0.0/darwin_arm64/terraform-provider-nutanix_v2.0.0 id=22995
2025-01-10T18:07:45.995+0100 [DEBUG] provider: plugin exited
2025-01-10T18:07:45.996+0100 [DEBUG] Building and walking validate graph
2025-01-10T18:07:45.998+0100 [DEBUG] ProviderTransformer: "data.nutanix_clusters_v2.clusters" (*terraform.NodeValidatableResource) needs provider["registry.terraform.io/nutanix/nutanix"]
2025-01-10T18:07:45.999+0100 [DEBUG] ReferenceTransformer: "var.subnet_name" references: []
2025-01-10T18:07:45.999+0100 [DEBUG] ReferenceTransformer: "var.vm_name" references: []
2025-01-10T18:07:45.999+0100 [DEBUG] ReferenceTransformer: "output.clusters (expand)" references: [data.nutanix_clusters_v2.clusters]
2025-01-10T18:07:45.999+0100 [DEBUG] ReferenceTransformer: "provider["registry.terraform.io/nutanix/nutanix"]" references: []
2025-01-10T18:07:45.999+0100 [DEBUG] ReferenceTransformer: "data.nutanix_clusters_v2.clusters" references: []
2025-01-10T18:07:45.999+0100 [DEBUG] ReferenceTransformer: "var.cluster_name" references: []
2025-01-10T18:07:45.999+0100 [DEBUG] Starting graph walk: walkValidate
2025-01-10T18:07:46.001+0100 [DEBUG] created provider logger: level=debug
2025-01-10T18:07:46.001+0100 [INFO] provider: configuring client automatic mTLS
2025-01-10T18:07:46.006+0100 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/nutanix/nutanix/2.0.0/darwin_arm64/terraform-provider-nutanix_v2.0.0 args=[".terraform/providers/registry.terraform.io/nutanix/nutanix/2.0.0/darwin_arm64/terraform-provider-nutanix_v2.0.0"]
2025-01-10T18:07:46.009+0100 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/nutanix/nutanix/2.0.0/darwin_arm64/terraform-provider-nutanix_v2.0.0 pid=22996
2025-01-10T18:07:46.009+0100 [DEBUG] provider: waiting for RPC address: plugin=.terraform/providers/registry.terraform.io/nutanix/nutanix/2.0.0/darwin_arm64/terraform-provider-nutanix_v2.0.0
2025-01-10T18:07:46.024+0100 [INFO] provider.terraform-provider-nutanix_v2.0.0: configuring server automatic mTLS: timestamp="2025-01-10T18:07:46.023+0100"
2025-01-10T18:07:46.033+0100 [DEBUG] provider: using plugin: version=5
2025-01-10T18:07:46.033+0100 [DEBUG] provider.terraform-provider-nutanix_v2.0.0: plugin address: address=/var/folders/b_/cl0dhhjs2wn3t7vhtqpgfsp80000gn/T/plugin1144338910 network=unix timestamp="2025-01-10T18:07:46.033+0100"
2025-01-10T18:07:46.115+0100 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2025-01-10T18:07:46.117+0100 [INFO] provider: plugin process exited: plugin=.terraform/providers/registry.terraform.io/nutanix/nutanix/2.0.0/darwin_arm64/terraform-provider-nutanix_v2.0.0 id=22996
2025-01-10T18:07:46.117+0100 [DEBUG] provider: plugin exited
2025-01-10T18:07:46.117+0100 [INFO] backend/local: plan calling Plan
2025-01-10T18:07:46.117+0100 [DEBUG] Building and walking plan graph for NormalMode
2025-01-10T18:07:46.118+0100 [DEBUG] ProviderTransformer: "data.nutanix_clusters_v2.clusters (expand)" (*terraform.nodeExpandPlannableResource) needs provider["registry.terraform.io/nutanix/nutanix"]
2025-01-10T18:07:46.118+0100 [DEBUG] ReferenceTransformer: "var.subnet_name" references: []
2025-01-10T18:07:46.118+0100 [DEBUG] ReferenceTransformer: "var.vm_name" references: []
2025-01-10T18:07:46.118+0100 [DEBUG] ReferenceTransformer: "output.clusters (expand)" references: [data.nutanix_clusters_v2.clusters (expand)]
2025-01-10T18:07:46.118+0100 [DEBUG] ReferenceTransformer: "provider["registry.terraform.io/nutanix/nutanix"]" references: []
2025-01-10T18:07:46.118+0100 [DEBUG] ReferenceTransformer: "data.nutanix_clusters_v2.clusters (expand)" references: []
2025-01-10T18:07:46.118+0100 [DEBUG] ReferenceTransformer: "var.cluster_name" references: []
2025-01-10T18:07:46.119+0100 [DEBUG] Starting graph walk: walkPlan
2025-01-10T18:07:46.119+0100 [DEBUG] created provider logger: level=debug
2025-01-10T18:07:46.119+0100 [INFO] provider: configuring client automatic mTLS
2025-01-10T18:07:46.122+0100 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/nutanix/nutanix/2.0.0/darwin_arm64/terraform-provider-nutanix_v2.0.0 args=[".terraform/providers/registry.terraform.io/nutanix/nutanix/2.0.0/darwin_arm64/terraform-provider-nutanix_v2.0.0"]
2025-01-10T18:07:46.124+0100 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/nutanix/nutanix/2.0.0/darwin_arm64/terraform-provider-nutanix_v2.0.0 pid=22997
2025-01-10T18:07:46.124+0100 [DEBUG] provider: waiting for RPC address: plugin=.terraform/providers/registry.terraform.io/nutanix/nutanix/2.0.0/darwin_arm64/terraform-provider-nutanix_v2.0.0
2025-01-10T18:07:46.139+0100 [INFO] provider.terraform-provider-nutanix_v2.0.0: configuring server automatic mTLS: timestamp="2025-01-10T18:07:46.139+0100"
2025-01-10T18:07:46.148+0100 [DEBUG] provider.terraform-provider-nutanix_v2.0.0: plugin address: address=/var/folders/b_/cl0dhhjs2wn3t7vhtqpgfsp80000gn/T/plugin444474663 network=unix timestamp="2025-01-10T18:07:46.148+0100"
2025-01-10T18:07:46.148+0100 [DEBUG] provider: using plugin: version=5
2025-01-10T18:07:46.269+0100 [WARN] ValidateProviderConfig from "provider["registry.terraform.io/nutanix/nutanix"]" changed the config value, but that value is unused
2025-01-10T18:07:46.270+0100 [INFO] provider.terraform-provider-nutanix_v2.0.0: 2025/01/10 18:07:46 [DEBUG] config wait_timeout 60: timestamp="2025-01-10T18:07:46.270+0100"
2025-01-10T18:07:46.271+0100 [DEBUG] Resource instance state not found for node "data.nutanix_clusters_v2.clusters", instance data.nutanix_clusters_v2.clusters
2025-01-10T18:07:46.271+0100 [DEBUG] ReferenceTransformer: "data.nutanix_clusters_v2.clusters" references: []
data.nutanix_clusters_v2.clusters: Reading...
2025-01-10T18:07:46.274+0100 [WARN] unexpected data: registry.terraform.io/nutanix/nutanix:stderr="2025-01-10 18:07:46.274 INFO - GET https://pcnx01.lab.ntnxlab.ch:9440/api/clustermgmt/v4.0/config/clusters"
2025-01-10T18:07:46.613+0100 [WARN] unexpected data: registry.terraform.io/nutanix/nutanix:stderr="2025-01-10 18:07:46.613 INFO - HTTP/1.1 200 OK"
2025-01-10T18:07:46.616+0100 [INFO] provider.terraform-provider-nutanix_v2.0.0: 2025/01/10 18:07:46 [ERROR] setting state: cluster_entities.0.network.0.backplane.0.subnet.0.prefix_length: '' expected type 'string', got unconvertible type 'int': timestamp="2025-01-10T18:07:46.616+0100"
2025-01-10T18:07:46.616+0100 [ERROR] vertex "data.nutanix_clusters_v2.clusters" error: cluster_entities.0.network.0.backplane.0.subnet.0.prefix_length: '' expected type 'string', got unconvertible type 'int'
2025-01-10T18:07:46.617+0100 [ERROR] vertex "data.nutanix_clusters_v2.clusters (expand)" error: cluster_entities.0.network.0.backplane.0.subnet.0.prefix_length: '' expected type 'string', got unconvertible type 'int'
2025-01-10T18:07:46.617+0100 [WARN] Planning encountered errors, so plan is not applyable
2025-01-10T18:07:46.617+0100 [INFO] backend/local: plan operation completed
Planning failed. Terraform encountered an error while generating this plan.
╷
│ Warning: Disabled Providers: foundation, ndb. Please provide required fields in provider configuration to enable them. Refer docs.
│
│ with provider["registry.terraform.io/nutanix/nutanix"],
│ on provider.tf line 10, in provider "nutanix":
│ 10: provider "nutanix" {
│
╵
╷
│ Error: cluster_entities.0.network.0.backplane.0.subnet.0.prefix_length: '' expected type 'string', got unconvertible type 'int'
│
│ with data.nutanix_clusters_v2.clusters,
│ on main.tf line 8, in data "nutanix_clusters_v2" "clusters":
│ 8: data "nutanix_clusters_v2" "clusters" {
│
╵
2025-01-10T18:07:46.633+0100 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2025-01-10T18:07:46.635+0100 [INFO] provider: plugin process exited: plugin=.terraform/providers/registry.terraform.io/nutanix/nutanix/2.0.0/darwin_arm64/terraform-provider-nutanix_v2.0.0 id=22997
2025-01-10T18:07:46.635+0100 [DEBUG] provider: plugin exited`
Panic Output
Expected Behavior
returns a list of clusters with expanded details
Actual Behavior
throws error (type conversion issue in API schema)
Nutanix Cluster Information
Terraform Version
`/tmp/terraform -v
2025-01-10T18:03:42.882+0100 [INFO] Terraform version: 1.10.4
2025-01-10T18:03:42.883+0100 [DEBUG] using github.com/hashicorp/go-tfe v1.70.0
2025-01-10T18:03:42.883+0100 [DEBUG] using github.com/hashicorp/hcl/v2 v2.23.0
2025-01-10T18:03:42.883+0100 [DEBUG] using github.com/hashicorp/terraform-svchost v0.1.1
2025-01-10T18:03:42.883+0100 [DEBUG] using github.com/zclconf/go-cty v1.16.0
2025-01-10T18:03:42.883+0100 [INFO] Go runtime version: go1.23.3
2025-01-10T18:03:42.883+0100 [INFO] CLI args: []string{"/tmp/terraform", "-v"}
2025-01-10T18:03:42.883+0100 [DEBUG] Attempting to open CLI config file: /Users/arechste/.terraformrc
2025-01-10T18:03:42.883+0100 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2025-01-10T18:03:42.884+0100 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2025-01-10T18:03:42.884+0100 [DEBUG] ignoring non-existing provider search directory /Users/arechste/.terraform.d/plugins
2025-01-10T18:03:42.884+0100 [DEBUG] ignoring non-existing provider search directory /Users/arechste/Library/Application Support/io.terraform/plugins
2025-01-10T18:03:42.884+0100 [DEBUG] ignoring non-existing provider search directory /Library/Application Support/io.terraform/plugins
2025-01-10T18:03:42.885+0100 [INFO] CLI command args: []string{"version", "-v"}
Terraform v1.10.4
on darwin_arm64
Affected Resource(s)
Terraform Configuration Files
Debug Output
`2025-01-10T18:07:45.789+0100 [INFO] Terraform version: 1.10.4
2025-01-10T18:07:45.789+0100 [DEBUG] using github.com/hashicorp/go-tfe v1.70.0
2025-01-10T18:07:45.789+0100 [DEBUG] using github.com/hashicorp/hcl/v2 v2.23.0
2025-01-10T18:07:45.789+0100 [DEBUG] using github.com/hashicorp/terraform-svchost v0.1.1
2025-01-10T18:07:45.789+0100 [DEBUG] using github.com/zclconf/go-cty v1.16.0
2025-01-10T18:07:45.789+0100 [INFO] Go runtime version: go1.23.3
2025-01-10T18:07:45.789+0100 [INFO] CLI args: []string{"/tmp/terraform", "plan"}
2025-01-10T18:07:45.789+0100 [DEBUG] Attempting to open CLI config file: /Users/arechste/.terraformrc
2025-01-10T18:07:45.789+0100 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2025-01-10T18:07:45.790+0100 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2025-01-10T18:07:45.790+0100 [DEBUG] ignoring non-existing provider search directory /Users/arechste/.terraform.d/plugins
2025-01-10T18:07:45.790+0100 [DEBUG] ignoring non-existing provider search directory /Users/arechste/Library/Application Support/io.terraform/plugins
2025-01-10T18:07:45.790+0100 [DEBUG] ignoring non-existing provider search directory /Library/Application Support/io.terraform/plugins
2025-01-10T18:07:45.791+0100 [INFO] CLI command args: []string{"plan"}
2025-01-10T18:07:45.838+0100 [DEBUG] checking for provisioner in "."
2025-01-10T18:07:45.839+0100 [DEBUG] checking for provisioner in "/tmp"
2025-01-10T18:07:45.843+0100 [INFO] backend/local: starting Plan operation
2025-01-10T18:07:45.851+0100 [DEBUG] created provider logger: level=debug
2025-01-10T18:07:45.851+0100 [INFO] provider: configuring client automatic mTLS
2025-01-10T18:07:45.866+0100 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/nutanix/nutanix/2.0.0/darwin_arm64/terraform-provider-nutanix_v2.0.0 args=[".terraform/providers/registry.terraform.io/nutanix/nutanix/2.0.0/darwin_arm64/terraform-provider-nutanix_v2.0.0"]
2025-01-10T18:07:45.868+0100 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/nutanix/nutanix/2.0.0/darwin_arm64/terraform-provider-nutanix_v2.0.0 pid=22995
2025-01-10T18:07:45.868+0100 [DEBUG] provider: waiting for RPC address: plugin=.terraform/providers/registry.terraform.io/nutanix/nutanix/2.0.0/darwin_arm64/terraform-provider-nutanix_v2.0.0
2025-01-10T18:07:45.895+0100 [INFO] provider.terraform-provider-nutanix_v2.0.0: configuring server automatic mTLS: timestamp="2025-01-10T18:07:45.894+0100"
2025-01-10T18:07:45.904+0100 [DEBUG] provider.terraform-provider-nutanix_v2.0.0: plugin address: address=/var/folders/b_/cl0dhhjs2wn3t7vhtqpgfsp80000gn/T/plugin2386131933 network=unix timestamp="2025-01-10T18:07:45.904+0100"
2025-01-10T18:07:45.904+0100 [DEBUG] provider: using plugin: version=5
2025-01-10T18:07:45.995+0100 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2025-01-10T18:07:45.995+0100 [INFO] provider: plugin process exited: plugin=.terraform/providers/registry.terraform.io/nutanix/nutanix/2.0.0/darwin_arm64/terraform-provider-nutanix_v2.0.0 id=22995
2025-01-10T18:07:45.995+0100 [DEBUG] provider: plugin exited
2025-01-10T18:07:45.996+0100 [DEBUG] Building and walking validate graph
2025-01-10T18:07:45.998+0100 [DEBUG] ProviderTransformer: "data.nutanix_clusters_v2.clusters" (*terraform.NodeValidatableResource) needs provider["registry.terraform.io/nutanix/nutanix"]
2025-01-10T18:07:45.999+0100 [DEBUG] ReferenceTransformer: "var.subnet_name" references: []
2025-01-10T18:07:45.999+0100 [DEBUG] ReferenceTransformer: "var.vm_name" references: []
2025-01-10T18:07:45.999+0100 [DEBUG] ReferenceTransformer: "output.clusters (expand)" references: [data.nutanix_clusters_v2.clusters]
2025-01-10T18:07:45.999+0100 [DEBUG] ReferenceTransformer: "provider["registry.terraform.io/nutanix/nutanix"]" references: []
2025-01-10T18:07:45.999+0100 [DEBUG] ReferenceTransformer: "data.nutanix_clusters_v2.clusters" references: []
2025-01-10T18:07:45.999+0100 [DEBUG] ReferenceTransformer: "var.cluster_name" references: []
2025-01-10T18:07:45.999+0100 [DEBUG] Starting graph walk: walkValidate
2025-01-10T18:07:46.001+0100 [DEBUG] created provider logger: level=debug
2025-01-10T18:07:46.001+0100 [INFO] provider: configuring client automatic mTLS
2025-01-10T18:07:46.006+0100 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/nutanix/nutanix/2.0.0/darwin_arm64/terraform-provider-nutanix_v2.0.0 args=[".terraform/providers/registry.terraform.io/nutanix/nutanix/2.0.0/darwin_arm64/terraform-provider-nutanix_v2.0.0"]
2025-01-10T18:07:46.009+0100 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/nutanix/nutanix/2.0.0/darwin_arm64/terraform-provider-nutanix_v2.0.0 pid=22996
2025-01-10T18:07:46.009+0100 [DEBUG] provider: waiting for RPC address: plugin=.terraform/providers/registry.terraform.io/nutanix/nutanix/2.0.0/darwin_arm64/terraform-provider-nutanix_v2.0.0
2025-01-10T18:07:46.024+0100 [INFO] provider.terraform-provider-nutanix_v2.0.0: configuring server automatic mTLS: timestamp="2025-01-10T18:07:46.023+0100"
2025-01-10T18:07:46.033+0100 [DEBUG] provider: using plugin: version=5
2025-01-10T18:07:46.033+0100 [DEBUG] provider.terraform-provider-nutanix_v2.0.0: plugin address: address=/var/folders/b_/cl0dhhjs2wn3t7vhtqpgfsp80000gn/T/plugin1144338910 network=unix timestamp="2025-01-10T18:07:46.033+0100"
2025-01-10T18:07:46.115+0100 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2025-01-10T18:07:46.117+0100 [INFO] provider: plugin process exited: plugin=.terraform/providers/registry.terraform.io/nutanix/nutanix/2.0.0/darwin_arm64/terraform-provider-nutanix_v2.0.0 id=22996
2025-01-10T18:07:46.117+0100 [DEBUG] provider: plugin exited
2025-01-10T18:07:46.117+0100 [INFO] backend/local: plan calling Plan
2025-01-10T18:07:46.117+0100 [DEBUG] Building and walking plan graph for NormalMode
2025-01-10T18:07:46.118+0100 [DEBUG] ProviderTransformer: "data.nutanix_clusters_v2.clusters (expand)" (*terraform.nodeExpandPlannableResource) needs provider["registry.terraform.io/nutanix/nutanix"]
2025-01-10T18:07:46.118+0100 [DEBUG] ReferenceTransformer: "var.subnet_name" references: []
2025-01-10T18:07:46.118+0100 [DEBUG] ReferenceTransformer: "var.vm_name" references: []
2025-01-10T18:07:46.118+0100 [DEBUG] ReferenceTransformer: "output.clusters (expand)" references: [data.nutanix_clusters_v2.clusters (expand)]
2025-01-10T18:07:46.118+0100 [DEBUG] ReferenceTransformer: "provider["registry.terraform.io/nutanix/nutanix"]" references: []
2025-01-10T18:07:46.118+0100 [DEBUG] ReferenceTransformer: "data.nutanix_clusters_v2.clusters (expand)" references: []
2025-01-10T18:07:46.118+0100 [DEBUG] ReferenceTransformer: "var.cluster_name" references: []
2025-01-10T18:07:46.119+0100 [DEBUG] Starting graph walk: walkPlan
2025-01-10T18:07:46.119+0100 [DEBUG] created provider logger: level=debug
2025-01-10T18:07:46.119+0100 [INFO] provider: configuring client automatic mTLS
2025-01-10T18:07:46.122+0100 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/nutanix/nutanix/2.0.0/darwin_arm64/terraform-provider-nutanix_v2.0.0 args=[".terraform/providers/registry.terraform.io/nutanix/nutanix/2.0.0/darwin_arm64/terraform-provider-nutanix_v2.0.0"]
2025-01-10T18:07:46.124+0100 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/nutanix/nutanix/2.0.0/darwin_arm64/terraform-provider-nutanix_v2.0.0 pid=22997
2025-01-10T18:07:46.124+0100 [DEBUG] provider: waiting for RPC address: plugin=.terraform/providers/registry.terraform.io/nutanix/nutanix/2.0.0/darwin_arm64/terraform-provider-nutanix_v2.0.0
2025-01-10T18:07:46.139+0100 [INFO] provider.terraform-provider-nutanix_v2.0.0: configuring server automatic mTLS: timestamp="2025-01-10T18:07:46.139+0100"
2025-01-10T18:07:46.148+0100 [DEBUG] provider.terraform-provider-nutanix_v2.0.0: plugin address: address=/var/folders/b_/cl0dhhjs2wn3t7vhtqpgfsp80000gn/T/plugin444474663 network=unix timestamp="2025-01-10T18:07:46.148+0100"
2025-01-10T18:07:46.148+0100 [DEBUG] provider: using plugin: version=5
2025-01-10T18:07:46.269+0100 [WARN] ValidateProviderConfig from "provider["registry.terraform.io/nutanix/nutanix"]" changed the config value, but that value is unused
2025-01-10T18:07:46.270+0100 [INFO] provider.terraform-provider-nutanix_v2.0.0: 2025/01/10 18:07:46 [DEBUG] config wait_timeout 60: timestamp="2025-01-10T18:07:46.270+0100"
2025-01-10T18:07:46.271+0100 [DEBUG] Resource instance state not found for node "data.nutanix_clusters_v2.clusters", instance data.nutanix_clusters_v2.clusters
2025-01-10T18:07:46.271+0100 [DEBUG] ReferenceTransformer: "data.nutanix_clusters_v2.clusters" references: []
data.nutanix_clusters_v2.clusters: Reading...
2025-01-10T18:07:46.274+0100 [WARN] unexpected data: registry.terraform.io/nutanix/nutanix:stderr="2025-01-10 18:07:46.274 INFO - GET https://pcnx01.lab.ntnxlab.ch:9440/api/clustermgmt/v4.0/config/clusters"
2025-01-10T18:07:46.613+0100 [WARN] unexpected data: registry.terraform.io/nutanix/nutanix:stderr="2025-01-10 18:07:46.613 INFO - HTTP/1.1 200 OK"
2025-01-10T18:07:46.616+0100 [INFO] provider.terraform-provider-nutanix_v2.0.0: 2025/01/10 18:07:46 [ERROR] setting state: cluster_entities.0.network.0.backplane.0.subnet.0.prefix_length: '' expected type 'string', got unconvertible type 'int': timestamp="2025-01-10T18:07:46.616+0100"
2025-01-10T18:07:46.616+0100 [ERROR] vertex "data.nutanix_clusters_v2.clusters" error: cluster_entities.0.network.0.backplane.0.subnet.0.prefix_length: '' expected type 'string', got unconvertible type 'int'
2025-01-10T18:07:46.617+0100 [ERROR] vertex "data.nutanix_clusters_v2.clusters (expand)" error: cluster_entities.0.network.0.backplane.0.subnet.0.prefix_length: '' expected type 'string', got unconvertible type 'int'
2025-01-10T18:07:46.617+0100 [WARN] Planning encountered errors, so plan is not applyable
2025-01-10T18:07:46.617+0100 [INFO] backend/local: plan operation completed
Planning failed. Terraform encountered an error while generating this plan.
╷
│ Warning: Disabled Providers: foundation, ndb. Please provide required fields in provider configuration to enable them. Refer docs.
│
│ with provider["registry.terraform.io/nutanix/nutanix"],
│ on provider.tf line 10, in provider "nutanix":
│ 10: provider "nutanix" {
│
╵
╷
│ Error: cluster_entities.0.network.0.backplane.0.subnet.0.prefix_length: '' expected type 'string', got unconvertible type 'int'
│
│ with data.nutanix_clusters_v2.clusters,
│ on main.tf line 8, in data "nutanix_clusters_v2" "clusters":
│ 8: data "nutanix_clusters_v2" "clusters" {
│
╵
2025-01-10T18:07:46.633+0100 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2025-01-10T18:07:46.635+0100 [INFO] provider: plugin process exited: plugin=.terraform/providers/registry.terraform.io/nutanix/nutanix/2.0.0/darwin_arm64/terraform-provider-nutanix_v2.0.0 id=22997
2025-01-10T18:07:46.635+0100 [DEBUG] provider: plugin exited`
Panic Output
Expected Behavior
Actual Behavior
Steps to Reproduce
terraform apply
Important Factors
`curl -v -k --request GET --url https://:9440/api/clustermgmt/v4.0/config/clusters --header 'Accept: application/json' --header 'Authorization: Basic ' --header 'Content-Type: application/json' |jq
The text was updated successfully, but these errors were encountered: