After adding a nutanix_karbon_worker_nodepool it should be possible to add a second one.
ie. this should work:
add a nutanix_karbon_worker_nodepool resource
terraform apply
add another nutanix_karbon_worker_nodepool resource
terraform apply
Actual Behavior
The last terraform apply actually fails with this output:
$ terraform apply
nutanix_karbon_cluster.mycluster: Refreshing state... [id=14e1857b-46b2-4f49-410a-2e8ed0ce22e9]
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 main.tf line 19, in provider "nutanix":
│ 19: provider "nutanix" {
│
╵
╷
│ Error: unable to expand node pool during flattening: nodepool name must be passed
│
│ with nutanix_karbon_cluster.mycluster,
│ on nke.tf line 1, in resource "nutanix_karbon_cluster" "mycluster":
│ 1: resource "nutanix_karbon_cluster" "mycluster" {
│
╵
Steps to Reproduce
add a nutanix_karbon_worker_nodepool resource
terraform apply
add another nutanix_karbon_worker_nodepool resource
terraform apply
In the state, you should find a block corrupted in the worker_node_pool section of the nutanix_karbon_cluster :
Nutanix Cluster Information
Terraform Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
Expected Behavior
After adding a
nutanix_karbon_worker_nodepool
it should be possible to add a second one. ie. this should work:nutanix_karbon_worker_nodepool
resourceterraform apply
nutanix_karbon_worker_nodepool
resourceterraform apply
Actual Behavior
The last
terraform apply
actually fails with this output:Steps to Reproduce
nutanix_karbon_worker_nodepool
resourceterraform apply
nutanix_karbon_worker_nodepool
resourceterraform apply
In the state, you should find a block corrupted in theworker_node_pool
section of thenutanix_karbon_cluster
: