← Back to team overview

openstack team mailing list archive

Re: nova list not working

 

Thanks for the Clarification!


On Dec 12, 2012, at 2:59 AM, ZhiQiang Fan wrote:

> what Andy said is right, you can not list another tenant's instance
> but you can use "nova list --all_tenants" to list all instances in all tenants if you are administrator
> use "nova help list" to get more help
> 
> 
> On Tue, Dec 11, 2012 at 11:36 PM, Andy McCrae <Andrew.McCrae@xxxxxxxxxxxxxxx> wrote:
> It looks like its because your OS_TENANT_NAME is set to admin in order to
> use the "hypervisor-servers" option, but the instances are under another
> Tenant, e.g.:
> 
> root@testServer:~# nova hypervisor-servers testServer
> +--------------------------------------+-------------------+---------------
> +---------------------+
> | ID                                   | Name              | Hypervisor ID
> | Hypervisor Hostname |
> +--------------------------------------+-------------------+---------------
> +---------------------+
> | 300a12fb-264b-4d5a-9f43-6cf50ecfc639 | instance-00000001 | 1
> | testServer |
> | 4416fdda-d77b-41a6-a0cf-9f6a6c0c3b83 | instance-00000002 | 1
> | testServer |
> | 5cfc5265-3d36-4b39-9ac4-44ec06b76921 | instance-00000005 | 1
> | testServer |
> +--------------------------------------+-------------------+---------------
> +---------------------+
> root@testServer:~# nova list
> 
> root@testServer:~# export OS_TENANT_NAME=demo
> root@testServer:~# nova list
> +--------------------------------------+-------------+--------+------------
> ------+
> | ID                                   | Name        | Status | Networks
>       |
> +--------------------------------------+-------------+--------+------------
> ------+
> | 300a12fb-264b-4d5a-9f43-6cf50ecfc639 | serverOne   | ACTIVE |
> private=10.0.0.2 |
> | 5cfc5265-3d36-4b39-9ac4-44ec06b76921 | serverThree | ACTIVE |
> private=10.0.0.4 |
> | 4416fdda-d77b-41a6-a0cf-9f6a6c0c3b83 | serverTwo   | ACTIVE |
> private=10.0.0.3 |
> +--------------------------------------+-------------+--------+------------
> ------+
> 
> Hope that helps!
> Andy
> 
> 
> 
> 
> On 12/11/12 3:29 PM, "Andrew Holway" <a.holway@xxxxxxxxxxxx> wrote:
> 
> >Hi,
> >
> >Does anyone have an idea why nova list isnt working?
> >
> >[root@blade02 08-openstack-compute]# nova hypervisor-servers blade04
> >+--------------------------------------+-------------------+--------------
> >-+---------------------+
> >| ID                                   | Name              | Hypervisor
> >ID | Hypervisor Hostname |
> >+--------------------------------------+-------------------+--------------
> >-+---------------------+
> >| 1081d0d2-4dff-4d83-8ed6-422c8ef3df97 | instance-0000003e | 2
> > | blade04.cm.cluster  |
> >| 2019d7dd-4b91-472b-9969-b651b74ffc8d | instance-0000003a | 2
> > | blade04.cm.cluster  |
> >| 94b8c171-1902-4a69-b50e-2067cd8baabb | instance-0000003c | 2
> > | blade04.cm.cluster  |
> >| a43c5de6-7221-4ae0-8400-9b316ae64200 | instance-00000038 | 2
> > | blade04.cm.cluster  |
> >| dcc7b747-2391-42ef-96db-6da814f1db79 | instance-00000040 | 2
> > | blade04.cm.cluster  |
> >+--------------------------------------+-------------------+--------------
> >-+---------------------+
> >[root@blade02 08-openstack-compute]# nova hypervisor-servers blade03
> >+--------------------------------------+-------------------+--------------
> >-+---------------------+
> >| ID                                   | Name              | Hypervisor
> >ID | Hypervisor Hostname |
> >+--------------------------------------+-------------------+--------------
> >-+---------------------+
> >| 280c2fbd-eac6-41a7-9e4a-672dfe601436 | instance-00000039 | 3
> > | blade03.cm.cluster  |
> >| 2cf6c1c7-7562-4366-b627-b825529f3856 | instance-0000003d | 3
> > | blade03.cm.cluster  |
> >| 6376e9d5-d69a-4edf-a0e8-073515528d26 | instance-0000003b | 3
> > | blade03.cm.cluster  |
> >| bce24c6f-46e1-4076-8118-0b26c28dd8bc | instance-0000003f | 3
> > | blade03.cm.cluster  |
> >| cfdd827b-9551-4977-9b4c-a8d0cab3c82e | instance-00000037 | 3
> > | blade03.cm.cluster  |
> >+--------------------------------------+-------------------+--------------
> >-+---------------------+
> >[root@blade02 08-openstack-compute]# nova list
> >
> >[root@blade02 08-openstack-compute]#
> >
> >Thanks,
> >
> >Andrew
> >
> >
> 
> Andy McCrae
> OpenStack Engineer II - UK
> 
> Tel: +442087344108
> Mob:
> Fax: +44 20 8606 6111
> Web: www.rackspace.co.uk
> 
> _______________________________________________
> >Mailing list: https://launchpad.net/~openstack
> >Post to     : openstack@xxxxxxxxxxxxxxxxxxx
> >Unsubscribe : https://launchpad.net/~openstack
> >More help   : https://help.launchpad.net/ListHelp
> 
> Rackspace International GmbH a company registered in the Canton of Zurich, Switzerland (company identification number CH-020.4.047.077-1) whose registered office is at Balz-Zimmerman Strauss 7, 8302 Kloten, Switzerland. Rackspace International GmbH privacy policy can be viewed at www.rackspace.co.uk/legal/swiss-privacy-policy
> -
> Rackspace Hosting Australia PTY LTD a company registered in the state of Victoria, Australia (company registered number ACN 153 275 524) whose registered office is at Suite 3, Level 7, 210 George Street, Sydney, NSW 2000, Australia. Rackspace Hosting Australia PTY LTD privacy policy can be viewed at www.rackspace.com.au/company/legal-privacy-statement.php
> -
> Rackspace US, Inc, 5000 Walzem Road, San Antonio, Texas 78218, United States of America
> Rackspace US, Inc privacy policy can be viewed at www.rackspace.com/information/legal/privacystatement
> -
> Rackspace Limited is a company registered in England & Wales (company registered number 03897010) whose registered office is at 5 Millington Road, Hyde Park Hayes, Middlesex UB3 4AZ.
> Rackspace Limited privacy policy can be viewed at www.rackspace.co.uk/legal/privacy-policy
> -
> Rackspace Benelux B.V. is a company registered in the Netherlands (company KvK nummer 34276327) whose registered office is at Teleportboulevard 110, 1043 EJ Amsterdam.
> Rackspace Benelux B.V privacy policy can be viewed at www.rackspace.nl/juridisch/privacy-policy
> -
> Rackspace Asia Limited is a company registered in Hong Kong (Company no: 1211294) whose registered office is at 9/F, Cambridge House, Taikoo Place, 979 King's Road, Quarry Bay, Hong Kong.
> Rackspace Asia Limited privacy policy can be viewed at www.rackspace.com.hk/company/legal-privacy-statement.php
> -
> This e-mail message (including any attachments or embedded documents) is intended for the exclusive and confidential use of the individual or entity to which this message is addressed, and unless otherwise expressly indicated, is confidential and privileged information of Rackspace. Any dissemination, distribution or copying of the enclosed material is prohibited. If you receive this transmission in error, please notify us immediately by e-mail at abuse@xxxxxxxxxxxxx and delete the original message. Your cooperation is appreciated.
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp
> 




References