yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #32766
[Bug 1452298] Re: Fails to filter domains by id
I'm moving this to the server side, i don't think it is a client issue
because:
1. When you have an id you typically don't use find(), you use get().
Find implies a search by attribute and it returns an array as you will
often have multiple objects that match said attribute. Get is a fetch by
id, in the same way as most REST calls.
2. The client is actually generating the correct URL, with ?id=default
and the server is responding with the full list. I expect domain is not
the only thing we ignore searching for id with - it should be fixed but
i doubt it's a high priority because of point 1.
** Also affects: keystone
Importance: Undecided
Status: New
** 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 Keystone.
https://bugs.launchpad.net/bugs/1452298
Title:
Fails to filter domains by id
Status in OpenStack Identity (Keystone):
New
Status in Python client library for Keystone:
Invalid
Bug description:
V3 client fails to filter domains by id. Following code should list
only 'default' domain, but list of all domains is returned instead:
>>> import keystoneclient.v3.client as ksclient_v3
>>> client = ksclient_v3.Client(endpoint='http://192.0.2.5:35357/v3', token='153c6ee5a6486e7db131ada9a464ab0f12f3f4cb')
>>> default_domain = client.domains.list(id='default')[0]
>>> default_domain
<Domain description=Contains users and projects created by heat, enabled=True, id=29f4f3f567f943eb9769329352753b89, links={u'self': u'http://192.0.2.5:35357/v3/domains/29f4f3f567f943eb9769329352753b89'}, name=heat_stack>
>>> client.domains.list(id='default')
[<Domain description=Contains users and projects created by heat, enabled=True, id=29f4f3f567f943eb9769329352753b89, links={u'self': u'http://192.0.2.5:35357/v3/domains/29f4f3f567f943eb9769329352753b89'}, name=heat_stack>, <Domain description=Owns users and tenants (i.e. projects) available on Identity API v2., enabled=True, id=default, links={u'self': u'http://192.0.2.5:35357/v3/domains/default'}, name=Default>]
To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1452298/+subscriptions