Ask Your Question
0

Compute(nova) endpoint not listening

asked 2013-11-05 06:05:44 -0500

anonymous user

Anonymous

Hi Guys,

I am facing an issue in openstack installation. I was able to install Keystone and glance component succesfully. However with nova I am facing some issues. My operating enviornment is - RHEL 6.4 , I am installing all the components in one physical machine. This is for a dev enviornment.

I could see all the nova services were running but if I use nova image-list or nova list command I get back Connection refused error.

Output of nova-manage service list

    [root@oc23 ~]# nova-manage service list
    Binary                        Host                                          Zone             Status     State    Updated_At
    nova-cert              oc23.xxx.com                                internal         enabled    :-)      2013-11-05 11:36:01
    nova-consoleauth  oc23.xxx.com                                internal         enabled    :-)      2013-11-05 11:36:01
    nova-scheduler      oc23.xxx.com                                internal         enabled    :-)      2013-11-05 11:36:01
    nova-conductor       oc23.xxx.com                               internal         enabled    :-)       2013-11-05 11:36:00
    nova-network         oc23.xxx.com                                internal         enabled    :-)       2013-11-05 11:36:00
    nova-compute       oc23.xxx.com                                nova             enabled    :-)      2013-11-05 11:36:01

I have added an image and i could see that using `glance image-list` 

    [root@oc232 ~]# glance image-list
    +--------------------------------------+--------------+-------------+------------------+----------+--------+
    | ID                                   | Name         | Disk Format | Container Format | Size     | Status |
    +--------------------------------------+--------------+-------------+------------------+----------+--------+
    | 2f7985bf-731a-4128-a4de-5c487fa0661d | CirrOS 0.3.1 | qcow2       | bare             | 13147648 | active |
    +--------------------------------------+--------------+-------------+------------------+----------+--------+

Debug mode output for `nova image-list` 
[root@oc23 ~]# nova --debug image-list

REQ: curl -i http://127.0.0.1:35357/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": "admin"}}}'

INFO (connectionpool:203) Starting new HTTP connection (1): 127.0.0.1
DEBUG (connectionpool:295) "POST /v2.0/tokens HTTP/1.1" 200 3801
RESP: [200] {'date': 'Tue, 05 Nov 2013 11:37:46 GMT', 'content-type': 'application/json', 'content-length': '3801', 'vary': 'X-Auth-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QEwBwYFKw4DAhowDQYJKoZIhvcNAQEBBQAEggEACiYyFSUNXYtex3lrn0UMR+Gk9PqBQODwB96ixqaa2Q+8tGGa3iSGJ-A8WGW1+XHBqvIxs51tN4yuV4YlWfaF2A1ONWSG-3MPdNmClL4Hwz6stkMgE4i1Fs5A7b04eMwJilpnRdxmlaPAy+H+Xyyue+BpEfVQR+cY8pYzUtJNL0jK12UOtBE0FSmwN4cubzSui9u4JhP3ENfLIcR3-reHytWs1qJ8mv1+PvPnU-LHxCQ+vuj90ct-CwU35FBjO8ym3doDEDLFvhGuwR1o4MxbOLD8DdS6jjYNZkyUMnQzTZ+en40qP-73El738afYgZ6IPJQ-l+EpLVpzmA7Mup5wqw==", "tenant": {"description": "Admin Tenant", "enabled": true, "id": "961dc53018d24846948e4ac9f16f4e50", "name": "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://127.0.0.1:9292", "region": "regionOne", "internalURL": "http://127.0.0.1:9292", "id": "67126a80aa564bc4bf89a6a7fa77e8b5", "publicURL": "http://127.0.0.1:9292"}], "endpoints_links": [], "type": "image", "name": "glance"}, {"endpoints": [{"adminURL": "http://127.0.0.1:8774/v2/961dc53018d24846948e4ac9f16f4e50", "region": "regionOne", "internalURL": "http://127.0.0.1:8774/v2/961dc53018d24846948e4ac9f16f4e50", "id": "1fc9af3878cc4cec8a498b884ba79c49", "publicURL": "http://127.0.0.1:8774/v2/961dc53018d24846948e4ac9f16f4e50"}], "endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL": "http://127.0.0.1:35357/v2.0", "region": "regionOne", "internalURL": "http://127.0.0.1:5000/v2.0", "id": "45f57b86936d49f8b547727c85c473f7", "publicURL": "http://127.0.0.1:5000/v2.0"}], "endpoints_links": [], "type": "identity", "name": "keystone"}], "user": {"username": "admin", "roles_links": [], "id": "ad82b9a9e4194291a9681ddfa4c13215", "roles": [{"name": "admin"}], "name": "admin"}, "metadata": {"is_admin": 0, "roles": ["dfc6c8ec3df6417181d476f54eab2a31"]}}}


REQ: curl -i http://127.0.0.1:8774/v2/961dc53018d24846948e4ac9f16f4e50/images/detail -X GET -H "X-Auth-Project-Id: admin" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: MIIHHQYJKoZIhvcNAQcCoIIHDjCCBwoCAQExCTAHBgUrDgMCGjCCBXMGCSqGSIb3DQEHAaCCBWQEggVgeyJhY2Nlc3MiOiB7InRva2VuIjogeyJpc3N1ZWRfYXQiOiAiMjAxMy0xMS0wNVQxMTozNzo0Ni4yNjgxODAiLCAiZXhwaXJlcyI6ICIyMDEzLTExLTA2VDExOjM3OjQ2WiIsICJpZCI6ICJwbGFjZWhvbGRlciIsICJ0ZW5hbnQiOiB7ImRlc2NyaXB0aW9uIjogIkFkbWluIFRlbmFudCIsICJlbmFibGVkIjogdHJ1ZSwgImlkIjogIjk2MWRjNTMwMThkMjQ4NDY5NDhlNGFjOWYxNmY0ZTUwIiwgIm5hbWUiOiAiYWRtaW4ifX0sICJzZXJ2aWNlQ2F0YWxvZyI6IFt7ImVuZHBvaW50cyI6IFt7ImFkbWluVVJMIjogImh0dHA6Ly8xMjcuMC4wLjE6OTI5MiIsICJyZWdpb24iOiAicmVnaW9uT25lIiwgImludGVybmFsVVJMIjogImh0dHA6Ly8xMjcuMC4wLjE6OTI5MiIsICJpZCI6ICI2NzEyNmE4MGFhNTY0YmM0YmY4OWE2YTdmYTc3ZThiNSIsICJwdWJsaWNVUkwiOiAiaHR0cDovLzEyNy4wLjAuMTo5MjkyIn1dLCAiZW5kcG9pbnRzX2xpbmtzIjogW10sICJ0eXBlIjogImltYWdlIiwgIm5hbWUiOiAiZ2xhbmNlIn0sIHsiZW5kcG9pbnRzIjogW3siYWRtaW5VUkwiOiAiaHR0cDovLzEyNy4wLjAuMTo4Nzc0L3YyLzk2MWRjNTMwMThkMjQ4NDY5NDhlNGFjOWYxNmY0ZTUwIiwgInJlZ2lvbiI6ICJyZWdpb25PbmUiLCAiaW50ZXJu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ZXQxDjAMBgNVBAoMBVVuc2V0MRgwFgYDVQQDDA93d3cuZXhhbXBsZS5jb20CAQEwBwYFKw4DAhowDQYJKoZIhvcNAQEBBQAEggEACiYyFSUNXYtex3lrn0UMR+Gk9PqBQODwB96ixqaa2Q+8tGGa3iSGJ-A8WGW1+XHBqvIxs51tN4yuV4YlWfaF2A1ONWSG-3MPdNmClL4Hwz6stkMgE4i1Fs5A7b04eMwJilpnRdxmlaPAy+H+Xyyue+BpEfVQR+cY8pYzUtJNL0jK12UOtBE0FSmwN4cubzSui9u4JhP3ENfLIcR3-reHytWs1qJ8mv1+PvPnU-LHxCQ+vuj90ct-CwU35FBjO8ym3doDEDLFvhGuwR1o4MxbOLD8DdS6jjYNZkyUMnQzTZ+en40qP-73El738afYgZ6IPJQ-l+EpLVpzmA7Mup5wqw=="

INFO (connectionpool:203) Starting new HTTP connection (1): 127.0.0.1
DEBUG (shell:740) [Errno 111] Connection refused
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages ...
(more)
edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
1

answered 2013-11-05 07:43:29 -0500

dheeru gravatar image
  1. Did you start all the services ? http://docs.openstack.org/havana/install-guide/install/apt/content/nova-controller.html
  2. Can you run the netstat -an | grep 8774 to verify the port number.
  3. Ensure that rabbitmq is running.
edit flag offensive delete link more

Comments

Guess "nova-manage service list" o/p is shown above.

Subramanian K gravatar imageSubramanian K ( 2013-11-05 08:40:24 -0500 )edit

i can't see the comment

levitoh gravatar imagelevitoh ( 2014-01-21 10:20:21 -0500 )edit
0

answered 2013-11-22 22:11:43 -0500

I get the same problem... i

edit flag offensive delete link more

Comments

Can you check all your nova* services are running ? Please restart all your service on controller and compute host. Try doing telnet to localhost on that port 8774 which you tried some time back. I'm sure this will solve your problem.

dheeru gravatar imagedheeru ( 2013-11-22 22:19:27 -0500 )edit

why can't i see all the comment? is only this Can you check all your nova* services are running ? Please restart all your service on controller and compute host. Try ... wtf

levitoh gravatar imagelevitoh ( 2014-01-21 10:19:30 -0500 )edit
0

answered 2014-05-12 00:35:03 -0500

davecorning gravatar image

updated 2014-05-12 00:41:01 -0500

I also had this very same problem, with a setup that is almost identical to the original poster. In my case, I have a CentOS 6.5 physical host with all the openstack components installed on this same machine.

I found the answer in a different http://ask.openstack.org thread: https://ask.openstack.org/en/question/2953/how-to-solve-errno-111-when-trying-nova-list-command/ (https://ask.openstack.org/en/question...)

In short, edit /etc/nova/nova.conf and uncomment the following entry and remove the 'metadata' line at the end.

From:

# A list of APIs to enable by default (list value)
#enabled_apis=ec2,osapi_compute,metadata

To:

enabled_apis=ec2,osapi_compute

and then restart the openstack-nova-api service.

# service openstack-nova-api restart
Stopping openstack-nova-api:                               [  OK  ]
Starting openstack-nova-api:                               [  OK  ]
# nova image-list
+--------------------------------------+---------------------+--------+--------+
| ID                                   | Name                | Status | Server |
+--------------------------------------+---------------------+--------+--------+
| 3593acee-bf4f-4c54-a588-f9d069c4f7f7 | cirros-0.3.2-x86_64 | ACTIVE |        |
+--------------------------------------+---------------------+--------+--------+

Hope this helps!

edit flag offensive delete link more

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

2 followers

Stats

Asked: 2013-11-05 06:05:44 -0500

Seen: 3,294 times

Last updated: May 12 '14