Bug 907178
Summary: | Deletion of the "default" security group fails without error | ||
---|---|---|---|
Product: | Red Hat OpenStack | Reporter: | Rami Vaknin <rvaknin> |
Component: | openstack-nova | Assignee: | Brent Eagles <beagles> |
Status: | CLOSED ERRATA | QA Contact: | Rami Vaknin <rvaknin> |
Severity: | low | Docs Contact: | |
Priority: | unspecified | ||
Version: | 2.0 (Folsom) | CC: | beagles, ndipanov, oblaut, pbrady, yeylon |
Target Milestone: | snapshot4 | Keywords: | Triaged |
Target Release: | 2.1 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | openstack-nova-2012.2.3-2.el6ost | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-03-21 18:16:06 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Rami Vaknin
2013-02-03 15:46:15 UTC
Can you please clarify the exact command you are using to delete the security group? I ran the following from the admin user: "nova secgroup-delete default" After hunting through layers and trying to find out how the segroup-delete implementation avoided deleting the default security group, I discovered it simply does *not* prevent the deletion. The group *does* get 'deleted' (or in this case it is marked as deleted). However, there is code to ensure that the default group is there so it recreates at 'appropriate times' (e.g. when nova secgroup-list) is called. To demonstrate it, simply run nova secgroup-delete, then run 'select deleted, deleted_at, name, user_id from nova.security_groups' from mysql (or whatever is appropriate for the backend database in use). You should see a new record created for each one that is deleted. In short the bug is not simply an expected response problem, but one that causes badness in the database. Fortunately the fix is the same, check the name of the security group before doing anything. Verified on 2012.2.3-4.el6ost, after the fix deletion of the "default" secgroup ends with error: "ERROR: Unable to delete system group 'default' (HTTP 400) (Request-ID: req-c8bd0c86-bd6f-418f-85ad-1722769f78c5)" In addition, the return code is 127. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHSA-2013-0657.html |