openstackopenstack-neutron

OpenStack: Could not delete Security Group because it says it is in use


When I'm trying to delete a security group, the delete operation fails

neutron security-group-delete f54609e7-f3a3-4b44-8060-2675058ea786
Security Group f54609e7-f3a3-4b44-8060-2675058ea786 in use.

I tried to delete all security group rules and the same error message appears.

How can I release it?


Solution

  • The security group in matter was attached to a nova server. This server also had attached to it a cinder volume. This volume remained stuck in "Creating" status.

    Because of this volume, the security group could not be deleted.

    I've identified the problem by using

    heat event-list <NAME or ID>