← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1756190] Re: Project tags is too restrictive

 

I tested this and I believe ksc/osc is not affected by this, the server-
side changes were enough to return the correct result.

** Changed in: python-keystoneclient
       Status: New => Invalid

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

Title:
  Project tags is too restrictive

Status in OpenStack Identity (keystone):
  Fix Released
Status in python-keystoneclient:
  Invalid

Bug description:
  Currently, when querying project tags it only matches projects that
  have exactly the parameters given and no additional parameters. This
  is out of alignment with both the project tags spec and nova.

  This is best explained by example:

  Consider two projects: p1 and p2
  p1 has tags [blue, green, red]
  p2 has tag [blue]

  tags=blue is only returning p1. It should return both p1 and p2.
  tags=blue,green is returning no projects. This should return p1.
  tags-any=blue is returning p1 and p2. This should continue to return both p1 and p2.
  tags-any=blue,yellow is returning both p1 and p2. This should continue to return both.

  This also applies to not-tags and not-tags-any.

  not-tags=blue is returning p1 and it should not.
  not-tags=blue,green currently returning both p1 and p2. It should not return p1.
  not-tags-any=blue should continue to not return both p1 and p2.
  not-tags-any=blue,yellow should continue not to return either p1 or p2.

  In other words, tags is currently returning projects that have an
  exact set of it's parameters. It should return projects that have a
  superset of it's parameters -- or all the parameters and maybe some
  other stuff.

  tags should logically AND it's parameters
  tags-any should logically OR it's parameters

  This will bring us into alignment with the tags spec (although perhaps
  the tags spec could be updated to be clearer?) and also with Nova's
  server tags implementation.

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


References