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 sla...@kaplonski.pl
signature.asc
Description: PGP signature
__________________________________________________________________________ OpenStack Development Mailing List (not for usage questions) Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev