If you attempt to create a security group where one already exists using
that name, a security groups quota reservation is leaked. Fix by
ensuring the reservation is rolled back in all failure cases.
Add a check to the tests to ensure that a reservation isn't leaked in
any of our sad path tests for security group creation.
Reviewed: https:/ /review. openstack. org/12264 github. com/openstack/ nova/commit/ 2525afadd347514 3040e6a4fe4021d c911a3f159
Committed: http://
Submitter: Jenkins
Branch: master
commit 2525afadd347514 3040e6a4fe4021d c911a3f159
Author: Mark McLoughlin <email address hidden>
Date: Fri Aug 31 16:49:06 2012 +0100
Avoid leaking security group quota reservations
Fixes bug #1043765
If you attempt to create a security group where one already exists using
that name, a security groups quota reservation is leaked. Fix by
ensuring the reservation is rolled back in all failure cases.
Add a check to the tests to ensure that a reservation isn't leaked in
any of our sad path tests for security group creation.
Change-Id: I22d6e4a0452d3a c7a23056b0a4aee 6f7dd135e30