How can I disable or remove resource quota limits in OpenStack Cloud for a tenant?. In OpenStack Quotas are operational limits designed to prevent system capacities from being exhausted without notification. Example is the number of cpu cores and gigabytes of memory allowed per tenant being controlled to ensure that a single tenant cannot consume all CPU Cores and available memory in the cluster.

Quotas are enforced at the tenant/project level, rather than the user level. In a nutshell multiple users in a project will share the same resources allocated to their project. Because without sensible quotas a single tenant could use up all the available resources, default quotas are shipped with OpenStack. For Admin tenant there could be a need to disable the limits, especially if it is a private OpenStack without multiple tenants.

The OpenStack command-line interface enables you manage quotas for the OpenStack Compute service and the Block Storage service. If you’ve not configured your OpenStack Client refer to our article in below URL.

How To Install and Configure OpenStack Client on Linux

Test to confirm if the openstack client is working by listing available projects.

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

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

Remove Tenant Resource Quota Limits in OpenStack

What I’ll do is disable limits for Admin project in OpenStack Cloud Platform. Here is the screenshot of Compute > Overview page before removing the quota limits.

Removing Tenant Resource Quota Limits in OpenStack Cloud Cloud Computing How To limits Linux Tutorials Openstack quotas

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

$ openstack quota set --help

Disable number of instances limit:

openstack quota set --instances -1 admin

Disable limits on the number of floating IPs:

openstack quota set --floating-ips -1 admin

Disable limits on the number of CPU Cores:

openstack quota set --cores -1 admin

Disable limits on the amount of Memory:

openstack quota set --ram -1 admin

Disable limits on the Storage Gigabytes:

openstack quota set --gigabytes -1 admin

Disable limits on the number of Volumes:

openstack quota set --volumes -1 admin

Disable limits on the number of Security groups:

openstack quota set --secgroups -1 admin

Disable limits on the number of Security group rules:

openstack quota set --secgroup-rules -1 admin

Disable limits on the number of snapshots.

openstack quota set --snapshots -1 admin

Disable limits on the number of routers

openstack quota set --routers -1 admin

Disable limits on the number of networks

openstack quota set --networks -1 admin

How the quota settings look on the Dashboard after making above modifications.

Removing Tenant Resource Quota Limits in OpenStack Cloud Cloud Computing How To limits Linux Tutorials Openstack quotas

You should now be able provision as much resources as the capacity of your OpenStack Cloud environment. Note that this is not recommended settings for multi-tenant environment where some users could misuse resources affecting other customers. Strictly apply resource quotas on shared OpenStack cloud platform.

More articles on OpenStack:

Install OpenStack Victoria on CentOS 8 With Packstack

Install OpenStack Magnum Container Service on CentOS / Ubuntu

How To resize/extend Cinder Volume in OpenStack

Changing Linux Server Hostname in OpenStack