Ask Your Question

Nova list shows no output

asked 2016-03-14 06:09:44 -0500

oOHenry gravatar image


when i run nova list it only shows:

| ID | Name | Status | Task State | Power State | Networks |

in horizon i get all informations about instances.

nova list --debug:

root@openstack-controller ~# source                                                                                                         
root@openstack-controller ~# nova list --debug     
DEBUG (session:198) REQ: curl -g -i -X GET http://controller:35357/v3 -H "Accept: application/json" -H "User-Agent:     python-keystoneclient"
INFO (connectionpool:205) Starting new HTTP connection (1): controller
DEBUG (connectionpool:385) "GET /v3 HTTP/1.1" 200 250
DEBUG (session:215) RESP: [200] Content-Length: 250 Vary: X-Auth-Token Keep-Alive: timeout=5, max=100         Server: Apache/2.4.7 (Ubuntu) Connection: Keep-Alive Date: Mon, 14 Mar 2016 11:00:23 GMT x-openstack-request-id:     req-bf6a05f7-4470-411f-9149-1fa7895de2ed Content-Type: application/json X-Distribution: Ubuntu 
RESP BODY: {"version": {"status": "stable", "updated": "2015-03-30T00:00:00Z", "media-types": [{"base":     "application/json", "type": "application/vnd.openstack.identity-v3+json"}], "id": "v3.4", "links": [{"href":     "http://controller:35357/v3/", "rel": "self"}]}}

DEBUG (base:188) Making authentication request to http://controller:35357/v3/auth/tokens
DEBUG (connectionpool:385) "POST /v3/auth/tokens HTTP/1.1" 201 4092
DEBUG (session:198) REQ: curl -g -i -X GET http://controller:8774/v2/ -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}1b45526a6b5459b07fe7e95acb1cf1aff622a96c"
INFO (connectionpool:205) Starting new HTTP connection (1): controller
DEBUG (connectionpool:385) "GET /v2/ HTTP/1.1" 200 375
DEBUG (session:215) RESP: [200] Date: Mon, 14 Mar 2016 11:00:23 GMT Connection: keep-alive Content-Type: application/json Content-Length: 375 X-Compute-Request-Id: req-bb2513bd-7473-450e-9704-2f6406ec1ff0 
RESP BODY: {"version": {"status": "SUPPORTED", "updated": "2011-01-21T11:33:21Z", "links": [{"href": "http://controller:8774/v2/", "rel": "self"}, {"href": "", "type": "text/html", "rel": "describedby"}], "min_version": "", "version": "", "media-types": [{"base": "application/json", "type":   "application/vnd.openstack.compute+json;version=2"}], "id": "v2.0"}}

I use Liberty at Ubuntu 14.04

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2016-03-14 10:37:47 -0500

mpetason gravatar image

Try nova list --all-tenants to see VMs that exist outside of the Admin tenant.

edit flag offensive delete link more


Thank you :)

oOHenry gravatar imageoOHenry ( 2016-03-14 10:55:03 -0500 )edit

You are welcome. It's not always intuitive. From the admin tenant you can --all-tenants to see all of them. If you need to work in the scope of a tenant you should add your user as an admin on them and then you can source an openrc within the tenant scope. Not all services have --all-tenants.

mpetason gravatar imagempetason ( 2016-03-15 10:29:30 -0500 )edit

Do you know how i get the instance networks with the python api client?

oOHenry gravatar imageoOHenry ( 2016-03-16 09:18:52 -0500 )edit

Neutron client will let you operate with the networking. Otherwise you can get more info on an instance with nova show [instance-uuid]

mpetason gravatar imagempetason ( 2016-03-16 09:39:45 -0500 )edit

i need from all instances the ip address and instance name. But I need the infos in Python. With nova.servers.list() I get only the name of instances.

oOHenry gravatar imageoOHenry ( 2016-03-16 10:08:26 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2016-03-14 06:09:44 -0500

Seen: 613 times

Last updated: Mar 14 '16