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

Sławek Kapłoński slawek at kaplonski.pl
Fri Nov 11 13:07:35 UTC 2016


Hello,

Can maybe someone (from core team) take a look on that? Thx in advance :)

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

On Mon, 07 Nov 2016, Sławek Kapłoński wrote:

> 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
> 



> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

-------------- 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/20161111/2119ae36/attachment.pgp>


More information about the OpenStack-dev mailing list