Increase default Nova quota in Openstack

Dear friends 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 2 compute node where 24 CPU on each compute node. Then in Openstack default nova quota may be display 24 CPU. If you want to use 48 CPU for your virtual machine then you have to set default quota 48 CPU instead of 24 CPU otherwise you can use only 24 CPU.

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

Display your default 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.

You can click on below link if you want to take snapshot of VM in Openstack.

How to take snapshot of VM in openstack

3 thoughts on “Increase default Nova quota in Openstack

  1. I like what you guys are up also. Such clever work and reporting! Keep up the excellent works guys I?¦ve incorporated you guys to my blogroll. I think it’ll improve the value of my site 🙂

  2. I love your blog.. very nice colors & theme. Did you create this website yourself? Plz reply back as I’m looking to create my own blog and would like to know wheere u got this from. thanks

Leave a Reply

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