yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #00559
[Bug 922835] Re: Filters for DescribeInstances in EC2 API do not work
** Changed in: nova
Status: Fix Committed => Fix Released
** Changed in: nova
Milestone: None => grizzly-3
--
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/922835
Title:
Filters for DescribeInstances in EC2 API do not work
Status in OpenStack Compute (Nova):
Fix Released
Bug description:
Filters for DescribeInstances EC2 API do not work. This is a two part
problem:
1. describe_instances in api/ec2/cloud.py doesn't pass the arguments to _format_describe_instances
2. Even when passing the args to _format_describe_instances, the filters don't work as described in the EC2 api
The EC2 API describes the function this way
(http://docs.amazonwebservices.com/AWSSDKforPHP/latest/index.html#m=AmazonEC2/describe_instances):
$response = $ec2->describe_instances(array(
'Filter' => array(
array('Name' => 'project-id', 'Value' => array( 'project1', 'project2')),
)
));
When passing the arguments to _format_describe_instances, in the
current implementation, it requires a call like this:
$response = $ec2->describe_instances(array(
'project_id' => array('project1', 'project2'),
));
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/922835/+subscriptions