How to increase default Nova Quota in Openstack.

Today, we will see how to increase default Nova Quota in Openstack. After Openstack deployment, may be our complete compute resources are not display in default quota.

For example we have 4 compute node where 24 CPU on each compute node. Then in Openstack default nova quota may be display 48 CPU. If you want to use 96 CPU for your virtual machine then you have to set default quota 96 CPU instead of 48 CPU otherwise you can use only 48 CPU in openstack for your instances.

So if you want to increase default Nova quota according to your actual hardware resources then let’s see how to set default Nova quota step by steps in below.

As an administrative user, we can use the nova quota commands, which are provided by the python-novaclient package, to update the compute service quotas for a specific project or project user, as well as update the quota defaults for a new project.  

You can also click here for more details about default Nova quota management 

First of all we have to display our default Nova quota using below commands:-

[[email protected] ~]# nova quota-defaults
+-----------------------------+-------+
| Quota                       | Limit |
-----------------------------+-------+
| instances                   | 10    |
| cores                       | 20    |
| ram                         | 51200 |
| floating_ips                | 10    |
| fixed_ips                   | -1    |
| metadata_items              | 128   |
| injected_files              | 5     |
| injected_file_content_bytes | 10240 |
| injected_file_path_bytes    | 255   |
| key_pairs                   | 100   |
| security_groups             | 10    |
| security_group_rules        | 20    |
| server_groups               | 10    |
| server_group_members        | 10    |
+-----------------------------+-------+
[[email protected] ~]#

You can run below commands to update default Nova instance quota.

[[email protected] ~]# nova quota-class-update default --instances 40
[[email protected] ~]#

We have successfully updated default Nova instance quota. Let’s verify it’s updated successfully or not.

[[email protected] ~]# nova quota-defaults

+-----------------------------+-------+
| Quota                       | Limit |
+-----------------------------+-------+
| instances                   | 40    |
| cores                       | 40    |
| ram                         | 51200 |
| floating_ips                | 10    |
| fixed_ips                   | -1    |
| metadata_items              | 128   |
| injected_files              | 5     |
| injected_file_content_bytes | 10240 |
| injected_file_path_bytes    | 255   |
| key_pairs                   | 100   |
| security_groups             | 10    |
| security_group_rules        | 20    |
| server_groups               | 10    |
| server_group_members        | 10    |
+-----------------------------+-------+
[[email protected] ~]#

You can see we have successfully updated Nova default instance from 10 to 40.

We can also update default core. You can see in below we have 20 cores in default quota. Now we need to update 40 cores in default quota. So let’s start updating default Nova cores quota.

[[email protected] ~]# nova quota-defaults
+-----------------------------+-------+
| Quota                       | Limit |
+-----------------------------+-------+
| instances                   | 10    |
| cores                       | 20    |
| ram                         | 51200 |
| floating_ips                | 10    |
| fixed_ips                   | -1    |
| metadata_items              | 128   |
| injected_files              | 5     |
| injected_file_content_bytes | 10240 |
| injected_file_path_bytes    | 255   |
| key_pairs                   | 100   |
| security_groups             | 10    |
| security_group_rules        | 20    |
| server_groups               | 10    |
| server_group_members        | 10    |
+-----------------------------+-------+
[[email protected] ~]#

You can run below commands to update default Nova cores quota.

[[email protected] ~]# nova quota-class-update default --cores 40
[[email protected] ~]#

We have successfully updated default Nova core quota. Let’s verify it’s updated successfully or not.

[[email protected] ~]# nova quota-defaults
+-----------------------------+-------+
| Quota                       | Limit |
+-----------------------------+-------+
| instances                   | 40    |
| cores                       | 40    |
| ram                         | 51200 |
| floating_ips                | 10    |
| fixed_ips                   | -1    |
| metadata_items              | 128   |
| injected_files              | 5     |
| injected_file_content_bytes | 10240 |
| injected_file_path_bytes    | 255   |
| key_pairs                   | 100   |
| security_groups             | 10    |
| security_group_rules        | 20    |
| server_groups               | 10    |
| server_group_members        | 10    |
+-----------------------------+-------+
[[email protected] ~]#

We have successfully updated default Nova cores. You can see in above bold, Now we have 40 default cores quota.

Thant’s all we have successfully updated default Nova quota in Openstack.

Instance Live Migration in OpenStack using CLI

Leave a Reply

Your email address will not be published. Required fields are marked *