[openstack-dev] [nova] Problem with Quota and servers spawned in groups

Sławek Kapłoński slawek at kaplonski.pl
Mon Nov 7 21:00:44 UTC 2016


Hello,

Some time ago I found that there is problem with unconsistent behaviour
(IMHO) of Nova API when user wants to spawn bunch of instances in server
group (affinity or anti-affinity). I described it in [1].
I also made some summary how Nova is working in different cases of
spawning instances. Results are like below:

+---------------------------------+-----------+-----------+--------------------------------+-----------------+
|             QUOTAS              |           |           |                                |                 |
+----------+----------------------+ min_count | max_count |  number of spawned instances   | Expected result |
|instances | server_group_members |           |           |                                |                 |
+==========+======================+===========+===========+================================+=================+
|    10    |          5           |     3     |     4     |             4                  |        4        |
+----------+----------------------+-----------+-----------+--------------------------------+-----------------+
|    10    |          5           |     6     |     9     |Quota exceeded, too many servers|Group Quota      |
|          |                      |           |           |in group (HTTP 403)             |exceeded         |
+----------+----------------------+-----------+-----------+--------------------------------+-----------------+
|    10    |          5           |     3     |     6     |Quota exceeded, too many servers|        5        |
|          |                      |           |           |in group (HTTP 403)             |                 |
+----------+----------------------+-----------+-----------+--------------------------------+-----------------+
|    10    |          5           |     3     |    11     |Quota exceeded, too many servers|        5        |
|          |                      |           |           |in group (HTTP 403)             |                 |
+----------+----------------------+-----------+-----------+--------------------------------+-----------------+
|    10    |          5           |     6     |    11     |Quota exceeded, too many servers|Group Quota      |
|          |                      |           |           |in group (HTTP 403)             |exceeded         |
+----------+----------------------+-----------+-----------+--------------------------------+-----------------+
|    10    |          5           |     3     |     -     |             3                  |        3        |
+----------+----------------------+-----------+-----------+--------------------------------+-----------------+
|    10    |          5           |     6     |     -     |Quota exceeded, too many servers|Group Quota      |
|          |                      |           |           |in group (HTTP 403)             |exceeded         |
+----------+----------------------+-----------+-----------+--------------------------------+-----------------+
|    10    |          5           |     11    |     -     |Quota exceeded for instances:   |Servers Quota    |
|          |                      |           |           |Requested 11, but already used 0|exceeded         |
|          |                      |           |           | of 10 instances                |                 |
+----------+----------------------+-----------+-----------+--------------------------------+-----------------+
|    10    |          5           |     -     |     3     |             3                  |        3        |
+----------+----------------------+-----------+-----------+--------------------------------+-----------------+
|    10    |          5           |     -     |     6     |Quota exceeded, too many servers|Group Quota      |
|          |                      |           |           |in group (HTTP 403)             |exceeded         |
+----------+----------------------+-----------+-----------+--------------------------------+-----------------+
|    10    |          5           |     -     |     11    |Quota exceeded, too many servers|Group Quota      |
|          |                      |           |           |in group (HTTP 403)             |exceeded         |
+----------+----------------------+-----------+-----------+--------------------------------+-----------------+

In "expected result" I described behaviour which I suppose that is should be
there.
Can You maybe check it and tell me if I'm right here and there is really bug as
described in [1]?

I also made some patch to fix it [2] so please review it if You think that it
is worth to fix this behaviour.

[1] https://bugs.launchpad.net/nova/+bug/1623809
[2] https://review.openstack.org/#/c/371592/

-- 
Best regards / Pozdrawiam
Sławek Kapłoński
slawek at kaplonski.pl

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20161107/98d6df89/attachment.pgp>


More information about the OpenStack-dev mailing list