IBM-Cloud / terraform-provider-ibm

https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs
Mozilla Public License 2.0
340 stars 667 forks source link

Unable to delete ocp clusters with worker-pools #5377

Closed Aashiq-J closed 4 months ago

Aashiq-J commented 4 months ago

Community Note

Terraform CLI and Terraform IBM Provider Version

Terraform v1.5.7
on darwin_amd64
+ provider registry.terraform.io/hashicorp/external v2.3.3
+ provider registry.terraform.io/hashicorp/helm v2.13.2
+ provider registry.terraform.io/hashicorp/kubernetes v2.30.0
+ provider registry.terraform.io/hashicorp/local v2.5.1
+ provider registry.terraform.io/hashicorp/null v3.2.2
+ provider registry.terraform.io/hashicorp/random v3.6.1
+ provider registry.terraform.io/hashicorp/time v0.11.1
+ provider registry.terraform.io/ibm-cloud/ibm v1.65.1

Affected Resource(s)

Terraform Configuration Files

Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.

[# Copy-paste your Terraform configurations here - for large Terraform configs,
# please share a link to the ZIP file.](https://github.ibm.com/GoldenEye/ocp-all-inclusive-module/tree/master/examples/end-to-end-example)
Run this example apply is successful but during destroy it gives an error.

Debug Output

β•·
β”‚ Error: Request failed with status code: 400, ServerErrorResponse: {"incidentID":"ccd4812f-f92b-449b-afc6-af499c04883b,ccd4812f-f92b-449b-afc6-af499c04883b","code":"E1437","description":"The action cannot be completed because it would reduce the worker pool size to below the cluster's minimum requirement of 2 workers.","type":"BadRequest"}
β”‚ 
β”‚ ---
β”‚ id: terraform-74d077da
β”‚ summary: 'Request failed with status code: 400, ServerErrorResponse:
β”‚ {"incidentID":"ccd4812f-f92b-449b-afc6-af499c04883b,ccd4812f-f92b-449b-afc6-af499c04883b","code":"E1437","description":"The
β”‚   action cannot be completed because it would reduce the worker pool size to below
β”‚   the cluster''s minimum requirement of 2 workers.","type":"BadRequest"}'
β”‚ severity: error
β”‚ resource: ibm_container_vpc_worker_pool
β”‚ operation: delete
β”‚ component:
β”‚   name: github.com/IBM-Cloud/terraform-provider-ibm
β”‚   version: 1.65.1
β”‚ ---
β”‚ 
β•΅

Panic Output

Expected Behavior

Successful destroy of the cluster workerpool

Actual Behavior

failing with the above error

Steps to Reproduce

  1. terraform destory

Important Factoids

References

Aashiq-J commented 4 months ago

This issue seems to be not related to provider