Failed delete SecurityGroupRule if fail during 'Delete secgroup rule in Nova'

Bug #1237262 reported by Yitao Jiang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack DBaaS (Trove)
Opinion
Undecided
Unassigned

Bug Description

Bug Reproduce:
firstly, create secgroup rule using trove-cli add_rule;
secondly, delete the secgroup rule using nova secgroup-delete-rule;
lastly, using trove-cli secgroup delete_rule to delete the same rule,
and in trove-api.log, you can see the exceptions below:

2013-10-09 15:42:05.270 12198 DEBUG trove.extensions.security_group.service [req-d92000f5-89eb-4a13-936a-6a2ef67ac5b7 admin 72992b6dbd474dab82def0e6e889729d] Delete Security Group Rule called 72992b6dbd474dab82def0e6e889729d, 12 delete /opt/stack/trove/trove/extensions/security_group/service.py:68
2013-10-09 15:42:05.278 12198 DEBUG trove.common.wsgi [req-d92000f5-89eb-4a13-936a-6a2ef67ac5b7 admin 72992b6dbd474dab82def0e6e889729d] Traceback (most recent call last):
  File "/opt/stack/trove/trove/common/wsgi.py", line 323, in execute_action
    **action_args)
  File "/opt/stack/trove/trove/openstack/common/wsgi.py", line 395, in execute_action
    return self.dispatch(self.controller, action, request, **action_args)
  File "/opt/stack/trove/trove/openstack/common/wsgi.py", line 404, in dispatch
    return method(*args, **kwargs)
  File "/opt/stack/trove/trove/extensions/security_group/service.py", line 71, in delete
    sec_group_rule = models.SecurityGroupRule.find_by(id=id, deleted=False)
  File "/opt/stack/trove/trove/db/models.py", line 97, in find_by
    cls.__name__)
ModelNotFoundError: SecurityGroupRule Not Found
 execute_action /opt/stack/trove/trove/common/wsgi.py:329
I dont't know whether it is a bug.

Revision history for this message
Denis M. (dmakogon) wrote :

It's not a bug, since you can interact with any of OS components you could do anything you want. That is why i think it's a wrong resource management.

Changed in trove:
status: New → Opinion
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.