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
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
You can run the above example and try to run terraform destroy, it should fail with the below error.
Debug Output
╷
│ Error: Request failed with status code: 400, ServerErrorResponse: {"incidentID":"812a6a0d-1d82-40f6-b1d9-e70971f3d1ff,812a6a0d-1d82-40f6-b1d9-e70971f3d1ff","code":"E1437","description":"The action cannot be completed because it would reduce the worker pool's size below the cluster's minimum requirement of 2 workers. If there are any worker operations pending, you might need wait for them to complete.","type":"BadRequest"}
│
│ ---
│ id: terraform-74d077da
│ summary: 'Request failed with status code: 400, ServerErrorResponse:
│ {"incidentID":"812a6a0d-1d82-40f6-b1d9-e70971f3d1ff,812a6a0d-1d82-40f6-b1d9-e70971f3d1ff","code":"E1437","description":"The
│ action cannot be completed because it would reduce the worker pool''s size below
│ the cluster''s minimum requirement of 2 workers. If there are any worker operations
│ pending, you might need wait for them to complete.","type":"BadRequest"}'
│ severity: error
│ resource: ibm_container_vpc_worker_pool
│ operation: delete
│ component:
│ name: github.com/IBM-Cloud/terraform-provider-ibm
│ version: 1.68.1
│ ---
│
╵
Panic Output
Expected Behavior
terraform Destroy should complete successfully.
Actual Behavior
terraform destroy fails
Steps to Reproduce
This error only occurs when we have only default worker pool and no other worker_pools.
terraform apply
terraform destroy
Important Factoids
References
#0000
The text was updated successfully, but these errors were encountered:
Note that you can't have a cluster with 0 worker nodes, and you can't power off or suspend billing for your worker nodes.
You can manually add a worker pool outside of terraform or remove one of the worker pools from the terraform state before running the destroy should you wish to import the default workerpool.
I acknowledge this is not ideal, but right now this is the best you can do
Community Note
Terraform CLI and Terraform IBM Provider Version
Terraform : 1.6
Provider : 1.68.1
Affected Resource(s)
Terraform Configuration Files
https://github.com/terraform-ibm-modules/terraform-ibm-base-ocp-vpc/tree/new-default/examples/advanced
You can run the above example and try to run terraform destroy, it should fail with the below error.
Debug Output
Panic Output
Expected Behavior
terraform Destroy should complete successfully.
Actual Behavior
terraform destroy fails
Steps to Reproduce
This error only occurs when we have only default worker pool and no other worker_pools.
terraform apply
terraform destroy
Important Factoids
References
The text was updated successfully, but these errors were encountered: