all_tenants=0 passed to server list request still lists all tenants

Bug #1240347 reported by Christopher Yeoh
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Low
Christopher Yeoh

Bug Description

Listing servers through the API with all_tenants set to 0 or false such as

curl -i http://192.168.1.18:8774/v2/4b2ac3d76cba499b9981cb4dfed963ea/servers/detail?all_tenants=0 -X GET -H "X-Auth-Project-Id: admin" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: 251e8d2b0dce46578591b8980b7cfee4"

results in servers from all tenants being returned anyway. We don't see this bug with python nova client because it simply doesn't pass the all_tenants flag along with the url if all_tenants is set to 0

Tags: api
Changed in nova:
importance: Undecided → Low
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

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

Changed in nova:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/52007
Committed: http://github.com/openstack/nova/commit/874e272a56d314a6fb1bd98e7ecd7f986f3b3898
Submitter: Jenkins
Branch: master

commit 874e272a56d314a6fb1bd98e7ecd7f986f3b3898
Author: Chris Yeoh <email address hidden>
Date: Wed Oct 16 16:10:20 2013 +1030

    all_tenants=0 should not return instances from all tenants

    Fixes set up of server list filters so specifying all_tenants=0
    or all_tenants=False when requesting a list of servers does not
    result in instances from all tenants being returned.

    Change-Id: I72575e4e2cf9019cfd5bf3b07ada53cadf2001e2
    Closes-Bug: #1240347

Changed in nova:
status: In Progress → Fix Committed
Changed in nova:
milestone: none → icehouse-1
Thierry Carrez (ttx)
Changed in nova:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: icehouse-1 → 2014.1
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.