API v3 users.list limits result

Bug #1079661 reported by Andre Naehring
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Fix Released
Undecided
Dolph Mathews

Bug Description

experimenting with v3:

---
from keystoneclient.v3 import client

kc = client.Client(endpoint=iEndpoint, token=iToken)

users = kc.users.list()

print users
---

The result is limited to (if I count correct) 30 users. Using the same with v2 of the API and client, I receive the whole list of a thousand users (test database). All users are assigned to the same tenant, the query is not limited to one project / tenant. I receive users of different tenants, but only 30 with v3.

Revision history for this message
Dolph Mathews (dolph) wrote :

Moved this bug to keystone because it's the controllers that are defaulting to 30 results per page, but we haven't actually exposed paging to the API yet. Either the default paging needs to be removed, or the API implementation and client need to be updated to support paging.

This is spec'd in identity-api v3 for all collections as:

  "links": {
      "previous": url,
      "self": url,
      "next": url,
  }

Where next/previous could be null if you're at either limit of the pagination.

Changed in python-keystoneclient:
status: New → Confirmed
Changed in keystone:
milestone: none → grizzly-3
status: New → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to keystone (master)

Fix proposed to branch: master
Review: https://review.openstack.org/21466

Changed in keystone:
assignee: nobody → Dolph Mathews (dolph)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to keystone (master)

Reviewed: https://review.openstack.org/21466
Committed: http://github.com/openstack/keystone/commit/15739739419781128a9994eb28c1ab0ac0bf5e87
Submitter: Jenkins
Branch: master

commit 15739739419781128a9994eb28c1ab0ac0bf5e87
Author: Dolph Mathews <email address hidden>
Date: Thu Feb 7 15:09:18 2013 -0600

    Relational API links

    - Adds a self-relational link to both individual API entities and
      collections.
    - Adds null previous/next links to collections to support pagination in
      the future.
    - Temporarily disables pagination (fixes bug 1079661), as the client
      doesn't currently support or expect it. We probably need to return all
      results by default unless the client requests a limited resultset
      anyway.
    - Expands test coverage for granting roles to users & groups in projects
      & domains.

    Change-Id: Ib5d6d39f5e1eb673c3285ef0b98603c5d375de75

Changed in keystone:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in keystone:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in keystone:
milestone: grizzly-3 → 2013.1
Changed in python-keystoneclient:
assignee: nobody → 牛振国 (niu-zglinux)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-keystoneclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/29213

Changed in python-keystoneclient:
status: Confirmed → In Progress
Changed in python-keystoneclient:
assignee: 牛振国 (niu-zglinux) → nobody
Dolph Mathews (dolph)
no longer affects: python-keystoneclient
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.