May not return tenants if marker is provided with limit

Bug #1023009 reported by Dmitry
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
In Progress
Undecided
Unassigned

Bug Description

When trying to get token list with limit=1 and marker set on first item received no any tenants. But there is actually two tenants for my user:

curl -i -X 'GET' 'http://main-node:35357/v2.0/tenants' -H 'User-Agent: python-client-base' -H 'X-Auth-Token: 464c1c917a31436594db5223478d75bc'
HTTP/1.1 200 OK
Content-Type: application/json
Vary: X-Auth-Token
Content-Length: 847
Date: Tue, 10 Jul 2012 14:53:38 GMT

{"tenants_links": [], "tenants": [{"enabled": 1, "description": null, "name": "****", "id": "1"}, {"enabled": 1, "description": "****", "name": "****", "id": "2"}, {"enabled": 1, "description": "****", "name": "****", "id": "3"}, {"enabled": 1, "description": "****", "name": "****", "id": "4"}, {"enabled": 1, "description": "****", "name": "****", "id": "6"}, {"enabled": 1, "description": "****", "name": "****", "id": "7"}, {"enabled": 1, "description": "****", "name": "****", "id": "8"}, {"enabled": 1, "description": "", "name": "****", "id": "9"}, {"enabled": 1, "description": null, "name": "****", "id": "11"}, {"enabled": 1, "description": null, "name": "****", "id": "12"}, {"enabled": 1, "description": null, "name": "****", "id": "13"}, {"enabled": 1, "description": null, "name": "****", "id": "14"}]}

curl -i -X 'GET' 'http://main-node:35357/v2.0/tenants?limit=1&marker=13' -H 'User-Agent: python-cliient-base' -H 'X-Auth-Token: 464c1c917a31436594db5223478d75bc'
HTTP/1.1 200 OK
Content-Type: application/json
Vary: X-Auth-Token
Content-Length: 36
Date: Tue, 10 Jul 2012 15:01:05 GMT

{"tenants_links": [], "tenants": []}

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

Changed in keystone:
status: New → In Progress
Revision history for this message
Dolph Mathews (dolph) wrote :

Are you seeing this in master? This looks like a potential duplicate of https://bugs.launchpad.net/keystone/+bug/1006055

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.