Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ibm_container_vpc_worker_pool returns too early #5608

Open
vburckhardt opened this issue Sep 4, 2024 · 0 comments
Open

ibm_container_vpc_worker_pool returns too early #5608

vburckhardt opened this issue Sep 4, 2024 · 0 comments
Labels
service/Kubernetes Service Issues related to Kubernetes Service Issues

Comments

@vburckhardt
Copy link

vburckhardt commented Sep 4, 2024

module.ocp_base.ibm_container_vpc_worker_pool.pool["secondpool"]: Creating...
module.ocp_base.ibm_container_vpc_worker_pool.pool["default"]: Modifying... [id=crc2i4ps0oaivt0judsg/crc2i4ps0oaivt0judsg-9a08c73]
module.ocp_base.ibm_container_vpc_worker_pool.pool["secondpool"]: Still creating... [10s elapsed]
module.ocp_base.ibm_container_vpc_worker_pool.pool["secondpool"]: Still creating... [20s elapsed]
module.ocp_base.ibm_container_vpc_worker_pool.pool["secondpool"]: Still creating... [30s elapsed]
module.ocp_base.ibm_container_vpc_worker_pool.pool["secondpool"]: Still creating... [40s elapsed]
module.ocp_base.ibm_container_vpc_worker_pool.pool["secondpool"]: Still creating... [50s elapsed]
module.ocp_base.ibm_container_vpc_worker_pool.pool["secondpool"]: Still creating... [1m0s elapsed]
module.ocp_base.ibm_container_vpc_worker_pool.pool["secondpool"]: Still creating... [1m10s elapsed]
module.ocp_base.ibm_container_vpc_worker_pool.pool["secondpool"]: Still creating... [1m20s elapsed]
module.ocp_base.ibm_container_vpc_worker_pool.pool["secondpool"]: Still creating... [1m30s elapsed]
module.ocp_base.ibm_container_vpc_worker_pool.pool["secondpool"]: Still creating... [1m40s elapsed]
module.ocp_base.ibm_container_vpc_worker_pool.pool["secondpool"]: Still creating... [1m50s elapsed]
module.ocp_base.ibm_container_vpc_worker_pool.pool["secondpool"]: Still creating... [2m0s elapsed]
module.ocp_base.ibm_container_vpc_worker_pool.pool["secondpool"]: Still creating... [2m10s elapsed]
module.ocp_base.ibm_container_vpc_worker_pool.pool["secondpool"]: Still creating... [2m20s elapsed]
module.ocp_base.ibm_container_vpc_worker_pool.pool["secondpool"]: Still creating... [2m30s elapsed]
module.ocp_base.ibm_container_vpc_worker_pool.pool["secondpool"]: Still creating... [2m40s elapsed]
module.ocp_base.ibm_container_vpc_worker_pool.pool["secondpool"]: Still creating... [2m50s elapsed]
module.ocp_base.ibm_container_vpc_worker_pool.pool["secondpool"]: Still creating... [3m0s elapsed]
module.ocp_base.ibm_container_vpc_worker_pool.pool["secondpool"]: Still creating... [3m10s elapsed]
module.ocp_base.ibm_container_vpc_worker_pool.pool["secondpool"]: Still creating... [3m20s elapsed]
module.ocp_base.ibm_container_vpc_worker_pool.pool["secondpool"]: Still creating... [3m30s elapsed]
module.ocp_base.ibm_container_vpc_worker_pool.pool["secondpool"]: Still creating... [3m40s elapsed]
module.ocp_base.ibm_container_vpc_worker_pool.pool["secondpool"]: Still creating... [3m50s elapsed]
module.ocp_base.ibm_container_vpc_worker_pool.pool["secondpool"]: Still creating... [4m0s elapsed]
module.ocp_base.ibm_container_vpc_worker_pool.pool["secondpool"]: Still creating... [4m10s elapsed]
module.ocp_base.ibm_container_vpc_worker_pool.pool["secondpool"]: Still creating... [4m20s elapsed]
module.ocp_base.ibm_container_vpc_worker_pool.pool["secondpool"]: Still creating... [4m30s elapsed]
module.ocp_base.ibm_container_vpc_worker_pool.pool["secondpool"]: Still creating... [4m40s elapsed]
module.ocp_base.ibm_container_vpc_worker_pool.pool["secondpool"]: Still creating... [4m50s elapsed]
module.ocp_base.ibm_container_vpc_worker_pool.pool["secondpool"]: Still creating... [5m0s elapsed]
module.ocp_base.ibm_container_vpc_worker_pool.pool["secondpool"]: Still creating... [5m10s elapsed]
module.ocp_base.ibm_container_vpc_worker_pool.pool["secondpool"]: Still creating... [5m20s elapsed]
module.ocp_base.ibm_container_vpc_worker_pool.pool["secondpool"]: Still creating... [5m30s elapsed]
module.ocp_base.ibm_container_vpc_worker_pool.pool["secondpool"]: Creation complete after 5m31s [id=crc2i4ps0oaivt0judsg/crc2i4ps0oaivt0judsg-ffeb199]

After the line Creation complete after - the worker nodes are still provisioning according to the UI (for at least a few minutes). In the scenario where the same apply create the new worker pool and scale the default worker pool to 0 worker nodes, this results in the following error

 Error: [ERROR] Error updating the worker_count 0: Request failed with status code: 400, ServerErrorResponse: {"incidentID":"06dfbf71-bf1a-4aa7-91d3-7b8e62b889ed,06dfbf71-bf1a-4aa7-91d3-7b8e62b889ed","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"}
│ 

Community Note

  • 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

Terraform CLI and Terraform IBM Provider Version

Affected Resource(s)

  • ibm_container_vpc_worker_pool

Terraform Configuration Files

https://github.com/terraform-ibm-modules/terraform-ibm-base-ocp-vpc/blob/main/examples/basic/main.tf

  1. Perform a first apply with 2 workers in default
  2. Add a second worker pool with at least 2 worker and update the default worker pool to 0 worker, run apply -> you'll see the error
@github-actions github-actions bot added the service/Kubernetes Service Issues related to Kubernetes Service Issues label Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
service/Kubernetes Service Issues related to Kubernetes Service Issues
Projects
None yet
Development

No branches or pull requests

1 participant