Configure unified limits for quota enforcement
Unified limits is a quota system that stores operational limits in the Identity (keystone) service to optimize cloud resources. Use unified limits to enforce default quotas globally or specific quotas at the project level.
There are three steps for quota enforcement:
- Quota limits are retrieved by calling the unified limits API of the Identity service.
- Quota usage is counted from the Placement API service.
- Quota is enforced locally by using the
oslo.limitlimit enforcement library.
In unified limits, the following terms are different from legacy quota limits:
- Registered limit: A default limit that applies to all projects
- Limit: A project-scoped limit that applies to a particular project
To enable unified limits, you must configure the nova-api service and the nova-conductor services for each cell. To manage quota limits in the Identity service, cloud operators must use the OpenStackClient (OSC) registered limit and limit commands.
Prerequisites Copy linkLink copied!
- You have installed Red Hat OpenStack Services on OpenShift (RHOSO) 18.0.
- You are logged on to a workstation that has access to the RHOSO control plane as a user with
cluster-adminprivileges. - The
ocandpodmancommand line tools are installed on the workstation.
Enable unified limits Copy linkLink copied!
To enable unified limits, you must configure the nova-api service and the nova-conductor services for each cell. You can also define a list of resources to either require or ignore registered limits.
About this task Copy linkLink copied!
A server in ERROR state that has never been scheduled to a Compute host does not have Placement allocations, so it does not consume quota usage for cores and RAM.
A server in SHELVED_OFFLOADED state does not have Placement allocations, so it does not consume quota usage for cores and RAM. Because of this, a request to unshelve a server might be rejected if the user does not have enough quota available to support the cores and RAM that is needed by the server to be unshelved.
When you enable unified limits, during a server resize, quota use is inflated until the resize is complete. For more information, see https://bugs.launchpad.net/nova/+bug/1790204.)
Procedure Copy linkLink copied!
Migrate quota limits to the Identity service Copy linkLink copied!
You can migrate legacy quota limits from the Nova database to unified limits in the Identity (keystone) service by using the nova-managelimits migrate_to_unified_limits CLI command.