This patch modifies the behavior of removing security groups via the EC2
API to better match the EC2 API spec. The EC2 documentation says that a
group that is still in use can not be removed.
A new function has been added to the db API to find out whether a
particular security group is still in use. "In use" is defined as
applied to an active instance, or applied to another group that has not
been deleted.
Unit tests have been updated to ensure that an error is raised when
these conditions are hit.
Reviewed: https:/ /review. openstack. org/4154 github. com/openstack/ nova/commit/ 3dc539bcb0d9031 f81076ac2e18709 18400150ed
Committed: http://
Submitter: Jenkins
Branch: master
commit 3dc539bcb0d9031 f81076ac2e18709 18400150ed
Author: Russell Bryant <email address hidden>
Date: Fri Feb 10 19:01:10 2012 -0500
Don't allow EC2 removal of security group in use.
Fix bug 817872.
This patch modifies the behavior of removing security groups via the EC2
API to better match the EC2 API spec. The EC2 documentation says that a
group that is still in use can not be removed.
A new function has been added to the db API to find out whether a
particular security group is still in use. "In use" is defined as
applied to an active instance, or applied to another group that has not
been deleted.
Unit tests have been updated to ensure that an error is raised when
these conditions are hit.
Change-Id: I5b3fdf1da213b0 4084fe266c1a6ed 92e01cf1e19