← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1180973] Re: EC2 API throws stacktrace if adding security group rule that already exists

 

** Changed in: nova/grizzly
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1180973

Title:
  EC2 API throws stacktrace if adding security group rule that already
  exists

Status in OpenStack Compute (Nova):
  Fix Released
Status in OpenStack Compute (nova) grizzly series:
  Fix Released

Bug description:
  Using trunk (a87b4e36e9a0ce6d565cc9ea38fcff523271e9ff)

  when running the following command twice, the second time a stacktrace
  is thrown in nova-api.log

    euca-authorize -P icmp -t -1:-1 default

  2013-05-16 20:02:03.625 32701 TRACE nova.api.ec2 Traceback (most recent call last):
  2013-05-16 20:02:03.625 32701 TRACE nova.api.ec2   File "/opt/stack/nova/nova/api/ec2/__init__.py", line 481, in __call__2013-05-16 20:02:03.625 32701 TRACE nova.api.ec2     result = api_request.invoke(context)2013-05-16 20:02:03.625 32701 TRACE nova.api.ec2   File "/opt/stack/nova/nova/api/ec2/apirequest.py", line 79, in invoke2013-05-16 20:02:03.625 32701 TRACE nova.api.ec2     result = method(context, **args)2013-05-16 20:02:03.625 32701 TRACE nova.api.ec2   File "/opt/stack/nova/nova/api/ec2/cloud.py", line 678, in authorize_security_group_ingress
  2013-05-16 20:02:03.625 32701 TRACE nova.api.ec2     raise exception.EC2APIError(err % values_for_rule)2013-05-16 20:02:03.625 32701 TRACE nova.api.ec2 EC2APIError: {'to_port': -1, 'cidr': u'0.0.0.0/0', 'from_port': -1, 'protocol': 'icmp', 'parent_group_id': 1L} - This rule already exists in group
  2013-05-16 20:02:03.625 32701 TRACE nova.api.ec2

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1180973/+subscriptions