← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1131956] Re: ec2 _format_security_group() access db using quantum_driver

 

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

** Changed in: nova
    Milestone: None => grizzly-rc1

-- 
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/1131956

Title:
  ec2 _format_security_group() access db using quantum_driver

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  Also, there are no unit tests for the ec2 api when using quantum as
  the security group driver. I'll add tests with this bug fix.

  2013-02-22 02:28:49.151 DEBUG nova.api.ec2 [req-e346566f-ade0-4400-9863-fb9a3ebcb330 demo demo] action: DescribeSecurityGroups __call__ /opt/stack/new/nova/nova/api/ec2/__init__.py:334
  2013-02-22 02:28:49.208 ERROR nova.api.ec2 [req-e346566f-ade0-4400-9863-fb9a3ebcb330 demo demo] Unexpected error raised: 'grantee_group'
  2013-02-22 02:28:49.208 19263 TRACE nova.api.ec2 Traceback (most recent call last):
  2013-02-22 02:28:49.208 19263 TRACE nova.api.ec2   File "/opt/stack/new/nova/nova/api/ec2/__init__.py", line 481, in __call__
  2013-02-22 02:28:49.208 19263 TRACE nova.api.ec2     result = api_request.invoke(context)
  2013-02-22 02:28:49.208 19263 TRACE nova.api.ec2   File "/opt/stack/new/nova/nova/api/ec2/apirequest.py", line 79, in invoke
  2013-02-22 02:28:49.208 19263 TRACE nova.api.ec2     result = method(context, **args)
  2013-02-22 02:28:49.208 19263 TRACE nova.api.ec2   File "/opt/stack/new/nova/nova/api/ec2/cloud.py", line 489, in describe_security_groups
  2013-02-22 02:28:49.208 19263 TRACE nova.api.ec2     groups = [self._format_security_group(context, g) for g in raw_groups]
  2013-02-22 02:28:49.208 19263 TRACE nova.api.ec2   File "/opt/stack/new/nova/nova/api/ec2/cloud.py", line 506, in _format_security_group
  2013-02-22 02:28:49.208 19263 TRACE nova.api.ec2     source_group = rule['grantee_group']
  2013-02-22 02:28:49.208 19263 TRACE nova.api.ec2 KeyError: 'grantee_group'
  2013-02-22 02:28:49.208 19263 TRACE nova.api.ec2

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