For example there are 3 instances in a server group (quota is 5).
When doing multi-creating of 3 more instances in this group
(would have 6 members), current quota checking scheme will fail to
prevent this happening, which is not expected.
This is due to the server_group_members quota check previously
only counting group members that existed as instance records in
cell databases and not accounting for build requests which are
the temporary representation of the instance in the API database
before the instance is scheduled to a cell.
Co-Authored-By: Matt Riedemann <email address hidden>
Reviewed: https:/ /review. openstack. org/580684 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=bbee9a26a5c 64a1463bd9a9f82 d735ec17c62d52
Committed: https:/
Submitter: Zuul
Branch: master
commit bbee9a26a5c64a1 463bd9a9f82d735 ec17c62d52
Author: Chen <email address hidden>
Date: Fri Jul 6 22:47:12 2018 +0800
Fix server_ group_members quota check
For example there are 3 instances in a server group (quota is 5).
When doing multi-creating of 3 more instances in this group
(would have 6 members), current quota checking scheme will fail to
prevent this happening, which is not expected.
This is due to the server_ group_members quota check previously
only counting group members that existed as instance records in
cell databases and not accounting for build requests which are
the temporary representation of the instance in the API database
before the instance is scheduled to a cell.
Co-Authored-By: Matt Riedemann <email address hidden>
Change-Id: If439f4486b8fe1 57c436c47aa4086 08e639a3e15
Closes-Bug: #1780373