Skip to content

Add GPU quota to default quotas registration#295

Open
knikolla wants to merge 2 commits intomainfrom
knikolla-patch-1-1
Open

Add GPU quota to default quotas registration#295
knikolla wants to merge 2 commits intomainfrom
knikolla-patch-1-1

Conversation

@knikolla
Copy link
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings March 10, 2026 21:50
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the default quota registration migration to include an OpenStack GPU quota entry, so newly migrated OpenStack resources get a GPU-related quota attribute alongside existing compute/network/storage quotas.

Changes:

  • Add a new OpenStack default quota entry for attributes.QUOTA_GPU.
  • Register the new quota with quota label internal.gpu_quota during the register_default_quotas migration.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

},
{
"display_name": attributes.QUOTA_GPU,
"quota_label": "internal.gpu_quota",
Copy link

Copilot AI Mar 10, 2026

Choose a reason for hiding this comment

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

This new quota entry omits fields (e.g. multiplier, static_quota, unit_suffix) that every other default quota passes through to add_quota_to_resource. For consistency and to avoid depending on implicit defaults/CLI optionality, set them explicitly (likely multiplier: 0, static_quota: 0, unit_suffix: ""). Also, the unit test for register_default_quotas asserts the exact set of OpenStack default quota keys and will need to include attributes.QUOTA_GPU once this is added.

Suggested change
"quota_label": "internal.gpu_quota",
"quota_label": "internal.gpu_quota",
"multiplier": 0,
"static_quota": 0,
"unit_suffix": "",

Copilot uses AI. Check for mistakes.
…t_quotas.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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