← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1198241] Re: nova ec2-api: DescribeInstances filter should be AND

 

I think I jumped the gun on this one -- the API docs areinconsistent.
Specifically, in the section below on tag filters:


"tag-key

    The key of a tag assigned to the resource. This filter is
independent of the tag-value filter. For example, if you use both the
filter "tag-key=Purpose" and the filter "tag-value=X", you get any
resources assigned both the tag key Purpose (regardless of what the
tag's value is), and the tag value X (regardless of what the tag's key
is). If you want to list only resources where Purpose is X, see the
tag:key filter.

tag-value

    The value of a tag assigned to the resource. This filter is
independent of the tag-key filter.

    Type: String
"


** Changed in: nova
       Status: New => Invalid

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

Title:
   nova ec2-api: DescribeInstances filter should be AND

Status in OpenStack Compute (Nova):
  Invalid

Bug description:
  From http://docs.aws.amazon.com/AWSEC2/latest/APIReference
  /ApiReference-query-DescribeInstances.html:

  "Supported Filters

  You can specify filters so that the response includes information for
  only certain instances. For example, you can use a filter to specify
  that you're interested in instances launched with a specific key pair.
  You can specify multiple values for a filter. The response includes
  information for an instance only if it matches at least one of the
  filter values that you specified.

  You can specify multiple filters; for example, specify instances that
  are launched with a specific key pair and use an Amazon EBS volume as
  the root device. The response includes information for an instance
  only if it matches all the filters that you specified. If there's no
  match, no special message is returned, the response is simply empty. "

  So: multiple values is OR, multiple filters is AND.

  This is just like https://bugs.launchpad.net/nova/+bug/1190845.

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