Skip to content

fix: validate server group member quota before provisioning - #1048

Open
Dong Ma (larainema) wants to merge 2 commits into
mainfrom
fix/server-group-quota-preflight
Open

Dong Ma (larainema) wants to merge 2 commits into
mainfrom
fix/server-group-quota-preflight

Conversation

@larainema

Copy link
Copy Markdown
Member

Summary

  • add a Nova limits preflight for the server_group_members quota
  • fail cluster, node group, and scale-up requests before creating CAPI/CAPO resources when the requested server group size is too large
  • include autoscaler max_node_count in the validation and return an actionable Magnum error

Testing

  • /Users/dong/dongdev/VEXXHOST/magnum-cluster-api/.tox/unit/bin/python -m pytest magnum_cluster_api/tests/unit/test_utils.py -k 'server_group_members_quota' magnum_cluster_api/tests/unit/test_driver.py -k 'quota'
  • uvx pre-commit run --files magnum_cluster_api/driver.py magnum_cluster_api/utils.py magnum_cluster_api/exceptions.py magnum_cluster_api/tests/conftest.py magnum_cluster_api/tests/unit/test_utils.py magnum_cluster_api/tests/unit/test_driver.py

@mnaser Mohammed Naser (mnaser) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe there was work upstream to enable a driver method that did pre-flight validation, can you check if that has landed, otherwise maybe we can push to get that to land and put all that logic there?

@larainema

Copy link
Copy Markdown
Member Author

I believe there was work upstream to enable a driver method that did pre-flight validation, can you check if that has landed, otherwise maybe we can push to get that to land and put all that logic there?

I checked upstream Magnum master and Gerrit, and I do not see the generic driver pre-flight validation hook landed yet, I created two patches related this.

Relevant upstream Magnum reviews:

Signed-off-by: Dong Ma <winterma.dong@gmail.com>
@larainema
Dong Ma (larainema) force-pushed the fix/server-group-quota-preflight branch from c411442 to 0329967 Compare November 27, 2026 01:02
Signed-off-by: Dong Ma <winterma.dong@gmail.com>
@larainema
Dong Ma (larainema) force-pushed the fix/server-group-quota-preflight branch from 0329967 to b400fe5 Compare November 27, 2026 01:03

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants