Ask Your Question
0

delete hanging security group

asked 2016-09-19 06:09:13 -0500

laurentiusoica gravatar image

Hello,

I have a stack that was partly removed, excepting a security group that is reported as in use and cannot be deleted. Running "nova list" reports 0 instances so I assume this is a bug as there is no instance that could use the security group.

heat resource-show bc5582c2-ba2f-4a5e-bec6-12cd58a83128 dc_security_groups
| resource_status        | DELETE_FAILED                                                                                                                                                 |
| resource_status_reason | Conflict: resources.dc_security_groups.resources.oam_security_group.resources.tcp_security_group: Security Group 882ebea8-a5a6-4887-9393-6b26a42c406a in use. |

My question is how could I remove the security group manually.

Thanks

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-09-19 08:59:50 -0500

updated 2016-09-19 09:04:26 -0500

using the openstack command and a keystonerc_user file:

security group list
security group delete 882ebea8-a5a6-4887-9393-6b26a42c406a

or in older versions using nova:

secgroup-list
secgroup-delete 882ebea8-a5a6-4887-9393-6b26a42c406a

I believe you need to ensure that all resources (ips,instances,etc) got removed as it says it is in use......

edit flag offensive delete link more

Comments

security group delete returns

Security Group 882ebea8-a5a6-4887-9393-6b26a42c406a in use. (HTTP 400) (Request-ID: req-1ce31cd2-2900-4715-959a-53a7b5e76de1)

What do you mean by ips resources ? If this is floating ips then I do not have any. And no instances.

laurentiusoica gravatar imagelaurentiusoica ( 2016-09-19 09:16:30 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-09-19 06:09:13 -0500

Seen: 652 times

Last updated: Sep 19 '16