Quota exceeded, too many server groups error in OpenStack

Dear friends today I will show you how to resolved Quota exceeded, too many server groups error in OpenStack. So let’s start and see step by step this issue and resolution of this error.

For more details about OpenStack quota you can Click-Here

Problem which we are facing

Virtual Machin creation failed within server group and we are getting below error. You can see in below screenshot.

OpenStack Quota exceed
Quota exceeded, too many servers in group

Reason of this Quota exceeded

The default value of server-groups is 10 and server-group-members is also 10. You can see in below.

[stack@undercloud (overcloudrc) ~]$ openstack quota show 42a3e6576b7042de8cc6128246d54c8e |grep -i server-group
| server-group-members        | 10                               |
| server-groups               | 10                               |
[stack@undercloud (overcloudrc) ~]$

When we will try to use more then 10 server group during virtual machine deployment, then we we will get this error.

Resolution of this Quota exceeded

To resolve this issue we have to increased server-group quota in our project. We can use this below command to increase our server-group quota.

openstack quota set –server-groups {Numbers of server-group} {Project-ID}

For example you can see in below

[stack@undercloud (overcloudrc) ~]$ openstack quota set --server-groups 20 42a3e6576b7042de8cc6128246d54c8e
[stack@undercloud (overcloudrc) ~]$

You can see in above screenshot we have successfully set server groups quota from 10 to 20. Now we can verify our server-groups quota is successfully updated or not. So let’s verify it.

[stack@undercloud (overcloudrc) ~]$ openstack quota show 42a3e6576b7042de8cc6128246d54c8e |grep -i server-group
| server-group-members        | 10                               |
| server-groups               | 20                               |
[stack@undercloud (overcloudrc) ~]$

We have successfully changed our server-groups quota in our project. Now we have resolved this issue and we can retry to deploy our virtual machine. It will be successfully deployed.

Quota list

We can use this below command to check default quota for Compute, Network and Volume.

openstack quota list –compute | –network | –volume

For example if we have to check default compute quota then we can use like below

[stack@undercloud (overcloudrc) ~]$ openstack quota list --compute
+----------------------------------+-------+-----------+----------------+-----------------------------+--------------------------+-----------+-----------+----------------+---------+---------------+----------------------+
| Project ID                       | Cores | Fixed IPs | Injected Files | Injected File Content Bytes | Injected File Path Bytes | Instances | Key Pairs | Metadata Items |     Ram | Server Groups | Server Group Members |
+----------------------------------+-------+-----------+----------------+-----------------------------+--------------------------+-----------+-----------+----------------+---------+---------------+----------------------+
| 0b2bc6eac1b048a7a0f1230c3a022d46 |    81 |        -1 |              5 |                       10240 |                      255 |        10 |       100 |            128 |  134120 |            10 |                   10 |
| 1257a3a0cd274cd38028f30055f2f1a0 |    16 |        -1 |              5 |                       10240 |                      255 |        10 |       100 |            128 |   65553 |            10 |                   10 |
| 1287be5226d841ec8180e91d49e89888 |    -1 |        -1 |             -1 |                          -1 |                       -1 |        -1 |        -1 |            128 |      -1 |            -1 |                   -1 |

And similar for Network quota:-

[stack@undercloud (overcloudrc) ~]$ openstack quota list --network
+----------------------------------+--------------+----------+-------+---------------+---------+-----------------+----------------------+---------+--------------+
| Project ID                       | Floating IPs | Networks | Ports | RBAC Policies | Routers | Security Groups | Security Group Rules | Subnets | Subnet Pools |
+----------------------------------+--------------+----------+-------+---------------+---------+-----------------+----------------------+---------+--------------+
| 0b2bc6eac1b048a7a0f1230c3a022d46 |           50 |      100 |   500 |            10 |      10 |             100 |                  500 |     100 |           -1 |
| 1287be5226d841ec8180e91d49e89888 |           -1 |       -1 |    -1 |            -1 |      -1 |              -1 |                   -1 |      -1 |           -1 |
| 1847d12d77054281b1052b26841ec4e8 |           50 |      100 |   500 |            10 |      10 |              10 |                   -1 |     100 |           

And also we can check default quota for volume like below:-

[stack@undercloud (overcloudrc) ~]$ openstack quota list --volume
+----------------------------------+---------+------------------+-----------+----------------------+-----------+---------+
| Project ID | Backups | Backup Gigabytes | Gigabytes | Per Volume Gigabytes | Snapshots | Volumes |
+----------------------------------+---------+------------------+-----------+----------------------+-----------+---------+
| 0b2bc6eac1b048a7a0f1230c3a022d46 | 10 | 1000 | 1000 | -1 | 10 | -1 |
| 1257a3a0cd274cd38028f30055f2f1a0 | 10 | 1000 | -1 | -1 | -1 | -1 |
| 1287be5226d841ec8180e91d49e89888 | -1 | -1 | -1 | -1 | -1 | -1 |
| 1847d12d77054281b1052b26841ec4e8 | 10 | 1000 | -1 | -1 | -1 | -1 |

So, in this session we have resolved server-groups quota exceeded error in OpenStack. I hope this small information will be helpful for you.

If you want to set extra specs in your OpenStack flavor you can Click-Here

This Post Has 3 Comments

  1. gralion torile

    Hi my friend! I wish to say that this post is amazing, nice written and include almost all significant infos. I would like to see more posts like this.

  2. graliontorile

    Good article and right to the point. I don’t know if this is actually the best place to ask but do you guys have any ideea where to employ some professional writers? Thanks 🙂

  3. zoritoler imol

    What i do not understood is in truth how you’re no longer actually much more well-appreciated than you might be now. You’re very intelligent. You understand thus significantly in terms of this subject, made me individually consider it from a lot of various angles. Its like men and women aren’t fascinated unless it is one thing to accomplish with Lady gaga! Your own stuffs outstanding. At all times deal with it up!

Leave a Reply