diff options
| author | Anthony Young <sleepsonthefloor@gmail.com> | 2011-09-06 20:56:42 +0000 |
|---|---|---|
| committer | Tarmac <> | 2011-09-06 20:56:42 +0000 |
| commit | d01010583d5d581591c9edcf36c4da54f0c78da9 (patch) | |
| tree | 77f2054427ed9be0081e2c630dce83c9df156e6e /nova/compute | |
| parent | 99e223dc231bae3d98f7979a403d97fd100f03a1 (diff) | |
| parent | 1f3856ffb92ab690b1d630deb6fa025ae74348f7 (diff) | |
At present, the os servers.detail api does not return server.user_id or server.tenant_id. This is problematic, since the servers.detail api defaults to returning all servers for all users of a tenant, which makes it impossible to tell which user is associated with which server.
Similarly, when admin users access servers.list, all instances for all tenants are returned. Without a tenant_id field, administrators can't sift through the server list very easily.
This merge request does the following:
* add user_id and tenant_id to servers.detail
* makes it possible for admins to filter with the term 'tenant_id' (rather than project_id)
Diffstat (limited to 'nova/compute')
| -rw-r--r-- | nova/compute/api.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nova/compute/api.py b/nova/compute/api.py index 6806522f7..4e2944bb7 100644 --- a/nova/compute/api.py +++ b/nova/compute/api.py @@ -877,6 +877,7 @@ class API(base.Base): 'image': 'image_ref', 'name': 'display_name', 'instance_name': 'name', + 'tenant_id': 'project_id', 'recurse_zones': None, 'flavor': _remap_flavor_filter, 'fixed_ip': _remap_fixed_ip_filter} |
