[Openstack] Tenant List
Georgios Dimitrakakis
giorgis at acmac.uoc.gr
Fri Jun 20 11:18:09 UTC 2014
These are my findings:
$ nova help list
usage: nova list [--reservation-id <reservation-id>] [--ip <ip-regexp>]
[--ip6 <ip6-regexp>] [--name <name-regexp>]
[--instance-name <name-regexp>] [--status <status>]
[--flavor <flavor>] [--image <image>] [--host
<hostname>]
[--all-tenants [<0|1>]] [--tenant [<tenant>]]
[--deleted]
[--fields <fields>] [--minimal]
List active servers.
Optional arguments:
--reservation-id <reservation-id>
Only return servers that match reservation-id.
--ip <ip-regexp> Search with regular expression match by IP
address
(Admin only).
--ip6 <ip6-regexp> Search with regular expression match by IPv6
address
(Admin only).
--name <name-regexp> Search with regular expression match by name
--instance-name <name-regexp>
Search with regular expression match by server
name
(Admin only).
--status <status> Search by server status
--flavor <flavor> Search by flavor name or ID
--image <image> Search by image name or ID
--host <hostname> Search servers by hostname to which they are
assigned
(Admin only).
--all-tenants [<0|1>]
Display information from all tenants (Admin
only).
--tenant [<tenant>] Display information from single tenant (Admin
only).
--deleted Only display deleted servers (Admin only).
--fields <fields> Comma-separated list of fields to display. Use
the
show command to see which fields are available.
--minimal Get only uuid and name.
Best,
G.
On Fri, 20 Jun 2014 16:44:30 +0530, Deepak Shetty wrote:
> GEORGIOS,
>
> Why do you think its present ? Can you justify your claim pls ?
>
> This is what I see...
>
> [stack at devstack-large-vm ~]$ [admin] nova -h| grep tenant
> [--os-tenant-name ]
> [--os-tenant-id ] [--os-auth-url ]
> flavor-access-add Add flavor access for the given tenant.
> Remove flavor access
> for the given tenant.
> floating-ip-create Allocate a floating IP for the current
> tenant.
> quota-defaults List the default quotas for a tenant.
> quota-delete Delete quota for a tenant/user so
> their quota will
> quota-show List the quotas for a tenant/user.
> quota-update Update the quotas for a
> tenant/user.
> secgroup-list List security groups for the current
> tenant.
> usage Show usage data for a single
> tenant.
> usage-list List usage data for all tenants.
> x509-create-cert Create x509 cert for a user in tenant.
> --os-tenant-name
> --os-tenant-id
>
> As you can see ^^ there is no --tenant available.
>
> On Fri, Jun 20, 2014 at 3:23 PM, Georgios Dimitrakakis wrote:
>
>> Indeed there is available and in principle it should work as an
>> admin...but it doesnt.
>>
>> Best,
>>
>> G.
>>
>> On Fri, 20 Jun 2014 12:30:31 +0300, Mārtiņš Jakubovičs wrote:
>>
>>> Look command as "nova help list", there is such option --tenant
>>> and I
>>> can confirm, it didnt work for me either.
>>>
>>> On 2014.06.20. 12:16, Deepak Shetty wrote:
>>>
>>>> I think --tenant is not a supported option for nova
>>>> I dont see it under nova -h
>>>>
>>>> What i see is this...
>>>> --os-tenant-name
>>>>
>>>> So maybe --tenant is just being ignored and hence the cmd
>>>> reduces to `nova
>>>> list` hence it shows only admin instance as u r logged in as
>>>> admin
>>>>
>>>> On Fri, Jun 13, 2014 at 6:40 PM, Georgios Dimitrakakis wrote:
>>>>
>>>>> I am in IceHouse and as an ADMIN I am trying to list the
>>>>> instances on a
>>>>> specific tenant.
>>>>>
>>>>> I have the following tenants:
>>>>>
>>>>> # keystone tenant-list
>>>>> +----------------------------------+---------+---------+
>>>>> | id | name
>>>>> | enabled |
>>>>> +----------------------------------+---------+---------+
>>>>> | 4746936e9e4b49e382ad41d0b98f3644 | admin | True |
>>>>> | 965bd35fbef24133951a6bee429cd5be | demo | True |
>>>>> | ad1473de92c1496fa4dea3fb93101b8b | service | True |
>>>>> +----------------------------------+---------+---------+
>>>>>
>>>>> Both the commands
>>>>>
>>>>> # nova list --tenant demo
>>>>> # nova list --tenant 965bd35fbef24133951a6bee429cd5be
>>>>>
>>>>> produce the wrong output since they list the instances for
>>>>> the admin
>>>>> tenant.
>>>>>
>>>>> Using
>>>>>
>>>>> # nova list --all-tenants
>>>>>
>>>>> shows everything but why the specific tenants cannot be
>>>>> shown?
>>>>>
>>>>> Does anyone else have seen this??
>>>>>
>>>>> Best,
>>>>>
>>>>> G.
>>>>> --
>>>>>
>>>>> _______________________________________________
>>>>> Mailing list:
>>>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/ [1]
>>>>> openstack
>>>>> Post to : openstack at lists.openstack.org [2]
>>>>> Unsubscribe :
>>>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/ [3]
>>>>> openstack
>>>>
>>>> _______________________________________________
>>>> Mailing list:
>>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>>>> [5]
>>>> Post to : openstack at lists.openstack.org [6]
>>>> Unsubscribe :
>>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>>>> [7]
>>>
>>> _______________________________________________
>>> Mailing list:
>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack [8]
>>> Post to : openstack at lists.openstack.org [9]
>>> Unsubscribe :
>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack [10]
>>
>> --
>>
>> _______________________________________________
>> Mailing list:
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack [11]
>> Post to : openstack at lists.openstack.org [12]
>> Unsubscribe :
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack [13]
>
>
>
> Links:
> ------
> [1] http://lists.openstack.org/cgi-bin/mailman/listinfo/
> [2] mailto:openstack at lists.openstack.org
> [3] http://lists.openstack.org/cgi-bin/mailman/listinfo/
> [4] mailto:giorgis at acmac.uoc.gr
> [5] http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> [6] mailto:openstack at lists.openstack.org
> [7] http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> [8] http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> [9] mailto:openstack at lists.openstack.org
> [10] http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> [11] http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> [12] mailto:openstack at lists.openstack.org
> [13] http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> [14] mailto:giorgis at acmac.uoc.gr
--
More information about the Openstack
mailing list