Ask Your Question
0

nova list don't work [closed]

asked 2014-01-07 02:58:32 -0500

zgordan.vv gravatar image

updated 2014-01-07 03:23:59 -0500

Anand TS gravatar image

Hello, I have an issue with nova-api. When I type nova list, it returns me an error 111 (connection refused). I've checked nova services for running and all seems to be OK except nova-api. When I type something like "cd /etc/init.d; for i in ls nova*; do service $i status; done", it seems that all is ok:

nova-api is running.

nova-cert is running.

nova-conductor is running.

nova-consoleauth is running.

nova-scheduler is running.

nova-spicehtml5proxy is running.

But when I try "nova-manage service list" I get this:

Binary           Host                                 Zone             Status     State Updated_At

nova-cert        OS                                   internal         enabled    :-)   2014-01-07 08:28:25

nova-conductor   OS                                   internal         enabled    :-)   2014-01-07 08:28:25

nova-consoleauth OS                                   internal         enabled    :-)   2014-01-07 08:28:25

nova-scheduler   OS                                   internal         enabled    :-)   2014-01-07 08:28:34

There isn't nova-api among them. So, any of nova *-list returns the same error (111). Also, I can't use dashboard because of the same error [Errno 111] Connection refused after logging in. The files /var/log/nova/nova-api.log and /var/log/nova/nova-manage.log are empty. All other services are working (glance, cinder, keystone, quantum). My OS is Debian Wheezy, kernel 3.2.0-4-486.

Here are logs of nova --debug list:

REQ: curl -i http://192.168.0.46:5000/v2.0/tokens -X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-novaclient" -d '{"auth": {"tenantName": "admin", "passwordCredentials": {"username": "admin", "password": "pwd14689"}}}'

INFO (connectionpool:191) Starting new HTTP connection (1): 192.168.0.46
DEBUG (connectionpool:283) "POST /v2.0/tokens HTTP/1.1" 200 5859
RESP: [200] {'date': 'Tue, 07 Jan 2014 08:51:57 GMT', 'content-type': 'application/json', 'content-length': '5859', 'vary': 'X-Auth-Token'}
RESP BODY: {"access": {"token": {"issued_at": "2014-01-07T08:51:57.218441", "expires": "2014-01-08T08:51:57Z", "id": "MIIKWAYJKoZIhvcNAQcCoIIKSTCCCkUCAQExCTAHBgUrDgMCGjCCCTEGCSqGSIb3DQEHAaCCCSIEggkeeyJhY2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A1UEChMFVW5zZXQxGDAWBgNVBAMTD3d3dy5leGFtcGxlLmNvbQIBATAHBgUrDgMCGjANBgkqhkiG9w0BAQEFAASBgDQMcfJ96NoMepO+1ibmeYbfsOfoiWsH+kwWc+-2lVWmgvPaffR8EKN007L2nrSfmqOyi+lkcWVhC8KpXQo0PG8y5OHRe-NGR4SqMBLtAG-SQC6lCEyVMdhwP5p4J3gD2VnMv7qV2j7icoAhnbDoLIM+rRG2eb1-xkdfIfar+Dhn", "tenant": {"description": null, "enabled": true, "id": "20209bab452f4883820d05290d20e43b", "name": "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://10.10.10.10:8774/v2/20209bab452f4883820d05290d20e43b", "region": "RegionOne", "internalURL": "http://10.10.10.10:8774/v2/20209bab452f4883820d05290d20e43b", "id": "2c742a3ecea547e59356ed43d78f8cc3", "publicURL": "http://192.168.0.46:8774/v2/20209bab452f4883820d05290d20e43b"}], "endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL": "http://10.10.10.10:9696/", "region": "RegionOne", "internalURL": "http://10.10.10.10:9696/", "id": "102b613d8e684b37a49221412a324e33", "publicURL": "http://192.168.0.46:9696/"}], "endpoints_links": [], "type": "network", "name": "quantum"}, {"endpoints": [{"adminURL": "http://10.10.10.10:9292", "region": "RegionOne", "internalURL": "http://10.10.10.10:9292", "id": "1f25459602bb4441b9c65bf0191d83b0", "publicURL": "http://192.168.0.46:9292"}], "endpoints_links": [], "type": "image", "name": "glance"}, {"endpoints": [{"adminURL": "http://10.10.10.10:8776/v1/20209bab452f4883820d05290d20e43b", "region": "RegionOne", "internalURL": "http://10.10.10.10:8776/v1/20209bab452f4883820d05290d20e43b", "id": "15ddfbac3a5448c5a0a3e40f0e35018b", "publicURL": "http://192.168.0.46:8776/v1/20209bab452f4883820d05290d20e43b"}], "endpoints_links": [], "type": "volume", "name": "cinder"}, {"endpoints": [{"adminURL": "http://10.10.10.10:8773/services/Admin", "region": "RegionOne", "internalURL": "http://10.10.10.10:8773/services/Cloud", "id": "26748926f0c247119fcadc081c7e399e", "publicURL": "http://192.168.0.46:8773/services/Cloud"}], "endpoints_links": [], "type": "ec2", "name": "ec2"}, {"endpoints": [{"adminURL": "http://10.10.10.10:35357/v2.0", "region": "RegionOne", "internalURL": "http://10.10.10.10:5000/v2 ...
(more)
edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by dheeru
close date 2014-01-08 03:59:19.861209

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-01-07 03:45:52 -0500

dheeru gravatar image

updated 2014-01-24 11:37:06 -0500

smaffulli gravatar image
    adminURL": "http://10.10.10.10:35357/v2.0",
    internalURL": "http://10.10.10.10:5000/v2.0", 
    publicURL": "http://192.168.0.46:5000/v2.0"

You are using the Service Endpoint as http://192.168.0.46:35357/v2.0. However I don't see this is defined. Can you change this to http://10.10.10.10:35357/v2.0 and try ?

Please look at your endpoint url definition for all service. Some are defined with 10.10. & some are with 192. Potentially you could mis-configure.

Summary :

  • keystone configuration was not done in nova.conf
  • Compute is not installed.
  • nova-api is not started properly

Since there were multiple issues, I suggested to use the havana with fresh installation and follow the instruction as given in the docs.openstack.org.

edit flag offensive delete link more

Comments

Thank you, I changed it, but the result is the same.

zgordan.vv gravatar imagezgordan.vv ( 2014-01-07 05:55:29 -0500 )edit

can you share your nova.conf, keystone.conf and glance.conf ?

dheeru gravatar imagedheeru ( 2014-01-07 06:08:25 -0500 )edit

sure, you can see them in the next answer (there is no glance.conf there, but I have posted all of glance*.conf to be sure)

zgordan.vv gravatar imagezgordan.vv ( 2014-01-07 20:23:47 -0500 )edit

You have not configured keystone_authtoken for nova.conf. Can you configure the same ? It is better to put the big configuration files in pastebin. It should be following way [keystone_authtoken] auth_host = 192.168.0.46 auth_port = 35357 auth_protocol = http admin_tenant_name = service admin_user = nova admin_password = mypassword You can configure like this. If you are not able to do this, then let us have chat session. I can help you in realtime to fix your issue.

dheeru gravatar imagedheeru ( 2014-01-07 23:50:29 -0500 )edit

I have changed it, then have restarted all services, even dropped/created and synced all sql databases, but no result. I will be thankful if you help me, my Skype is zgordan.vv

zgordan.vv gravatar imagezgordan.vv ( 2014-01-08 01:03:44 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-01-07 02:58:32 -0500

Seen: 263 times

Last updated: Jan 24 '14