Ask Your Question
1

nova list ERROR: HTTPConnectionPool(host='controller', port=8774): Max retries exceeded with url: /v2/c677d3d3c35644579fa8da9b4342e19d/servers/detail (Caused by <class 'socket.error'>: [Errno 111] Connection refused)

asked 2014-10-09 01:30:59 -0500

joehoyuan gravatar image

updated 2014-10-13 05:24:34 -0500

smaffulli gravatar image

What's wrong?I think nova 8774 port didn't open.Because I writting "service nova-api start ; nova list",and then it works.

netstat -nlp | grep 8774

has nothing.

    root@ubuntu:~# nova image-list
ERROR: HTTPConnectionPool(host='controller', port=8774): Max retries exceeded with url: /v2/c677d3d3c35644579fa8da9b4342e19d/images/detail (Caused by <class 'socket.error'>: [Errno 111] Connection refused)

    root@ubuntu:~# keystone endpoint-list
+----------------------------------+-----------+-----------------------------------------+-----------------------------------------+-----------------------------------------+----------------------------------+
|                id                |   region  |                publicurl                |               internalurl               |                 adminurl                |            service_id            |
+----------------------------------+-----------+-----------------------------------------+-----------------------------------------+-----------------------------------------+----------------------------------+
| 1e803f55a9a74a8fae0cbe401429d2b4 | regionOne | http://controller:8774/v2/%(tenant_id)s | http://controller:8774/v2/%(tenant_id)s | http://controller:8774/v2/%(tenant_id)s | bb5e9d0cacc14822ac7794c9e5119006 |
| 987c7e6e65994ae39b6d60ae9550d0d7 | regionOne |          http://controller:9292         |          http://controller:9292         |          http://controller:9292         | 89827670e374415ea166b0aba3184460 |
| e24925baaa324688ac14df3fbe91d7be | regionOne |       http://controller:5000/v2.0       |       http://controller:5000/v2.0       |       http://controller:35357/v2.0      | 597620e190404c01800255dc0ff8a3b4 |
+----------------------------------+-----------+-----------------------------------------+-----------------------------------------+-----------------------------------------+----------------------------------+

    root@ubuntu:~# keystone service-list 
+----------------------------------+----------+----------+-------------------------+
|                id                |   name   |   type   |       description       |
+----------------------------------+----------+----------+-------------------------+
| 89827670e374415ea166b0aba3184460 |  glance  |  i
mage   | Openstack Image Service |
| 597620e190404c01800255dc0ff8a3b4 | keystone | identity |    Openstack Identity   |
| bb5e9d0cacc14822ac7794c9e5119006 |   nova   | compute  |    OpenStack Compute    |
+----------------------------------+----------+----------+-------------------------+

    root@ubuntu:~# cat /etc/nova/nova.conf 
[DEFAULT]
dhcpbridge_flagfile=/etc/nova/nova.conf
dhcpbridge=/usr/bin/nova-dhcpbridge
logdir=/var/log/nova
state_path=/var/lib/nova
lock_path=/var/lock/nova
force_dhcp_release=True
iscsi_helper=tgtadm
libvirt_use_virtio_for_bridges=True
connection_type=libvirt
root_helper=sudo nova-rootwrap /etc/nova/rootwrap.conf
verbose=True
ec2_private_dns_show_ip=True
api_paste_config=/etc/nova/api-paste.ini
volumes_path=/var/lib/nova/volumes
enabled_apis=ec2,osapi_compute,metadata
rpc_backend = rabbit
rabbit_host=controller
rabbit_password=zh7758520.
my_ip=10.0.0.10
vncserver_listen=10.0.0.10
vncserver_proxyclient_address=10.0.0.10
auth_strategy=keystone
[database]
connection=mysql://nova:zh7758520.@controller/nova
[keystone_authtoken]
auth_url=http://controller:5000
auth_host=controller
auth_port=35357
auth_protocol=http
admin_tenant_name=service
admin_user=nova
admin_password=zh7758520.

/var/log/nova/nova-api.log

2014-10-09 15:52:18.378 4145 INFO keystoneclient.middleware.auth_token [-] Starting keystone auth_token middleware
2014-10-09 15:52:18.379 4145 WARNING keystoneclient.middleware.auth_token [-] This middleware module is deprecated as of v0.10.0 in favor of keystonemiddleware.auth_token - please update your WSGI pipeline to reference the new middleware package.
2014-10-09 15:52:18.381 4145 WARNING keystoneclient.middleware.auth_token [-] Configuring admin URI using auth fragments. This is deprecated, use 'identity_uri' instead.
2014-10-09 15:52:18.382 4145 WARNING keystoneclient.middleware.auth_token [-] Configuring auth_uri to point to the public identity endpoint is required; clients may not be able to authenticate against an admin endpoint
2014-10-09 15:52:18.389 4145 INFO keystoneclient.middleware.auth_token [-] Using /var/lib/nova/keystone-signing as cache directory for signing certificate
2014-10-09 15:52:18.393 4145 WARNING keystoneclient.middleware.auth_token [-] signing_dir is not owned by 0
2014-10-09 15:52:18.433 4145 INFO nova.wsgi [-] osapi_compute listening on 0.0.0.0:8774
2014-10-09 15:52:18.437 4145 INFO nova.openstack.common.service [-] Starting 1 workers
2014-10-09 15:52:18.449 4145 INFO nova.openstack.common.service [-] Started child 4151
2014-10-09 15:52:18.461 4151 INFO nova.osapi_compute.wsgi.server [-] (4151) wsgi starting up on http://0.0.0.0:8774/
2014-10-09 15:52:18.464 4145 INFO nova.network.driver [-] Loading network driver 'nova.network.linux_net'
2014-10-09 15:52:18.622 4145 INFO nova.wsgi [-] metadata listening on 0.0.0.0:8775
2014-10-09 15 ...
(more)
edit retag flag offensive close merge delete

7 answers

Sort by ยป oldest newest most voted
3

answered 2014-10-13 00:48:05 -0500

D20K gravatar image

pip install olso.rootwrap --ugrade

service nova-api restart

it will be work

edit flag offensive delete link more
2

answered 2014-10-09 13:34:51 -0500

marlonss gravatar image

Had the same problem, found that in /var/log/nova/nova-api.log the error message:

Stderr: 'Traceback (most recent call last):\n File "/usr/bin/nova-rootwrap", line 6, in <module>\n from oslo.rootwrap.cmd import main\nImportError: No module named rootwrap.cmd\n'

Solution: Reinstalled oslo with the command: pip install --upgrade oslo.rootwrap

edit flag offensive delete link more

Comments

didn't work

joehoyuan gravatar imagejoehoyuan ( 2014-10-10 01:44:45 -0500 )edit

Reinstalled oslo with the command: pip install --upgrade oslo.rootwrap This worked for me

ramprasvm gravatar imageramprasvm ( 2014-11-19 02:26:27 -0500 )edit
1

answered 2014-10-09 03:56:18 -0500

updated 2014-10-13 05:25:44 -0500

smaffulli gravatar image

Check your nova log files: /var/log/nova/nova-api.log .../nova-compute.log .../nova-conductor.log and other log files. Paste your suspected part of logs somewhere accessible to us.

Check your AMPQ(RabbitMQ) service on your controller node. It is out of reach from your compute nodes. Maybe due to network connectivity or misconfiguration.

edit flag offensive delete link more

Comments

I think nova-api proble.I run "nova-api",and write "nova list" in another Terminal can run.No exceptions

joehoyuan gravatar imagejoehoyuan ( 2014-10-09 04:32:19 -0500 )edit

didn't work!

joehoyuan gravatar imagejoehoyuan ( 2014-10-10 01:13:13 -0500 )edit

I found no Error on your nova-api log. All were warning. Check other logs to find Errors. Where/When the above error was shown? After login or after doing some specific operation on hoizon(e.g. creating instance)?

Mzoorikh gravatar imageMzoorikh ( 2014-10-10 01:27:57 -0500 )edit

Check whether all services are in active state or not:

nova-manage service list
Mzoorikh gravatar imageMzoorikh ( 2014-10-10 01:36:54 -0500 )edit

There is not nova-api

joehoyuan gravatar imagejoehoyuan ( 2014-10-10 02:28:15 -0500 )edit
0

answered 2015-01-21 22:57:01 -0500

Aswin Mohanan gravatar image

please try

apt-get install nova-api

edit flag offensive delete link more
0

answered 2014-10-09 13:07:13 -0500

yatin gravatar image

verify your /etc/hosts file for host addresses that it has correct mapping of ip address and hostname

Also your nova.conf file does not contains mapping of glance_host = controller (as glance host is in controller node) (may be its not required)

edit flag offensive delete link more

Comments

didn't work!

joehoyuan gravatar imagejoehoyuan ( 2014-10-10 01:44:12 -0500 )edit
0

answered 2016-05-10 23:29:07 -0500

Opensam gravatar image

Add the following line in the file : /etc/nova/api-paste.ini

#

EC2

#

NOTE: this is now deprecated in favor of https://github.com/stackforge/ec2-api

[composite:ec2] use = egg:Paste#urlmap /: ec2cloud

[composite:ec2cloud] use = call:nova.api.auth:pipeline_factory noauth2 = ec2faultwrap logrequest ec2noauth cloudrequest validator ec2executor keystone = ec2faultwrap logrequest ec2keystoneauth cloudrequest validator ec2executor

[filter:ec2faultwrap] paste.filter_factory = nova.api.ec2:FaultWrapper.factory

[filter:logrequest] paste.filter_factory = nova.api.ec2:RequestLogging.factory

[filter:ec2lockout] paste.filter_factory = nova.api.ec2:Lockout.factory

[filter:ec2keystoneauth]
paste.filter_factory = nova.api.ec2:EC2KeystoneAuth.factory

[filter:ec2noauth] paste.filter_factory = nova.api.ec2:NoAuth.factory

[filter:cloudrequest] controller = nova.api.ec2.cloud.CloudController paste.filter_factory = nova.api.ec2:Requestify.factory

[filter:authorizer] paste.filter_factory = nova.api.ec2:Authorizer.factory

[filter:validator] paste.filter_factory = nova.api.ec2:Validator.factory

[app:ec2executor] paste.app_factory = nova.api.ec2:Executor.factory

edit flag offensive delete link more
0

answered 2014-12-12 07:20:43 -0500

Venu Murthy gravatar image

Ok, in my case, while I am trying this on Ubuntu 14.04 and Juno on the below command I would get the status as below and the logs were frozen.

service nova-api start

nova-api stop/waiting

For some strange reason nova-api had gone missing, reinstalling it fixed the problem.

edit flag offensive delete link more

Comments

This worked for me...thanx a lot

agm123 gravatar imageagm123 ( 2014-12-15 23:50:16 -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

3 followers

Stats

Asked: 2014-10-09 01:30:59 -0500

Seen: 16,346 times

Last updated: Dec 12 '14