Remove the tenant resource quota limit in OpenStack

You can download this article in PDF format via the link below to support us.Download the guide in PDF formatClose

How to disable or delete resource quota restrictions in a tenant’s OpenStack Cloud? In OpenStack, quotas are operating limits designed to prevent system capacity from being exhausted without notification. An example is to control the number of CPU cores and gigabytes of memory allowed by each tenant to ensure that a single tenant cannot consume all the CPU cores and available memory in the cluster.

Quotas are enforced at the tenant/project level, not the user level. In short, multiple users in a project will share the same resources assigned to their projects. Since there is no reasonable quota, a tenant may use up all available resources, so OpenStack comes with a default quota. For Admin tenants, restrictions may need to be disabled, especially if there is no private OpenStack for multiple tenants.

The OpenStack command-line interface allows you to manage quotas for OpenStack Compute services and Block Storage services. If you have not configured the OpenStack client, please refer to the article in the URL below.

How to install and configure OpenStack Client on Linux

Test by listing available items to confirm whether the openstack client is running.

$ openstack project list
+----------------------------------+----------+
| ID                               | Name     |
+----------------------------------+----------+
| 05ff16c5dc4b43c8a0d1c20e43fd529a | services |
| f9e4445b9ac14d4da47d0a0451f2e0c9 | admin    |
+----------------------------------+----------+

$ openstack quota list [--project <project>] [--detail] (--compute | --volume | --network)

Remove the tenant resource quota limit in OpenStack

What I want to do is to disable the restriction of the Admin project in OpenStack Cloud Platform.This is the screenshot Calculation>Overview Page, and then delete the quota limit.

You can check all available quota settings from the help page.

$ openstack quota set --help

Disable instance limit:

openstack quota set --instances -1 admin

Disable floating IP limit:

openstack quota set --floating-ips -1 admin

Disable the limit on the number of CPU cores:

openstack quota set --cores -1 admin

Disable memory limit:

openstack quota set --ram -1 admin

Disable the storage gigabyte limit:

openstack quota set --gigabytes -1 admin

Disable volume limit:

openstack quota set --volumes -1 admin

Disable the limit on the number of security groups:

openstack quota set --secgroups -1 admin

Disable the restriction on the number of security group rules:

openstack quota set --secgroup-rules -1 admin

Disable the limit on the number of snapshots.

openstack quota set --snapshots -1 admin

Disable the limit on the number of routers

openstack quota set --routers -1 admin

Disable network limit

openstack quota set --networks -1 admin

After the above modification, the appearance of the quota setting on the dashboard.

Remove the tenant resource quota limit in OpenStack

Now you should be able to provide as many resources as the capacity of the OpenStack Cloud environment. note It is not recommended to use this setting in a multi-tenant environment, because some users may abuse resources that affect other customers in this environment. Strictly apply resource quotas on the shared OpenStack cloud platform.

More articles about OpenStack:

Install OpenStack Victoria on CentOS 8 using Packstack

Install OpenStack Magnum container service on CentOS/Ubuntu

How to resize/extend Cinder in OpenStack

Change Linux server hostname in OpenStack

You can download this article in PDF format via the link below to support us.Download the guide in PDF formatClose

Sidebar