Ask Your Question
0

ERROR (ConnectionError): HTTPConnectionPool(host='openstack', port=8774): Max retries exceeded with url: /v2/4ca42a660b0c4ff48db51d3187215dd4/images/detail (Caused by <class 'socket.error'>: [Errno 111] Connection ra

asked 2014-10-16 05:39:02 -0500

mehdi gravatar image

updated 2014-10-16 11:58:01 -0500

Hi !! I have a problem with "nova image-list" it still shows me this error message.

ERROR (ConnectionError): HTTPConnectionPool(host='openstack', port=8774): Max retries exceeded with url: /v2/4ca42a660b0c4ff48db51d3187215dd4/images/detail (Caused by <class 'socket.error'>: [Errno 111] Connection ra

is that I noticed was the "nova-api" service is always on stop state. Just as I type "nova-api start service", there is still one state "stop / waiting" I need help please.

edit retag flag offensive close merge delete

4 answers

Sort by ยป oldest newest most voted
2

answered 2014-10-16 12:04:08 -0500

updated 2014-10-23 05:17:34 -0500

Hi Mehdi,

Check your logs and put the suspected sections on your post to aim others help you find your solution. Nova-api was stopped due to a reason that is not mentioned on your post. Check the following logs:

/var/log/nova/nova-api.log
/var/log/nova/compute.log
/var/log/glance/glance.log

Also run the following command and paste the output on your post:

nova-manage service list

According to your log(nova-compute.log), the problem is related to rabbitmq server. At first check wether rabbitmq is up or down:

rabbitmqctl status

If the service was at runing state, and the output be something like here, go to the next step. If not, try to start this service.

After you sure that the rabbitmq server is start, you should test the rabbitmq authentication. So, to make sure about authentication mechanism, change the RabbitMQ guest password:

sudo rabbitmqctl change_password guest password

Restart RabbitMQ service:

sudo service rabbitmq restart

If the problem won't fixed, then execute:

sudo rabbitmqctl change-password guest guest

Restart it again:

sudo service rabbitmq restart

If again the problem wont fixed by the above steps, check your firewall rules:

iptables-save | grep 5672

Make sure that the port is open by your firewall.

edit flag offensive delete link more

Comments

At first, put all of your outputs in this question, and continue your discussion here(Your previous same question was removed by the site administrator).

Mzoorikh gravatar imageMzoorikh ( 2014-10-17 15:50:38 -0500 )edit

Also your image was not uploaded to the site. I can't see anything. Please check your logs and look for Error messages.

Mzoorikh gravatar imageMzoorikh ( 2014-10-17 15:54:45 -0500 )edit

http://paste.openstack.org/show/122227/ [nova-compute.log] http://paste.openstack.org/show/122228/ [nova-api.log]

mehdi gravatar imagemehdi ( 2014-10-20 09:53:11 -0500 )edit

As your nova-compute.log output shows, your nova-compute machine can not connect to message queue server(AMPQ server). To fix this issue go to the /etc/nova/nova.conf file, and check the # RABBITMQ section. Nova-compute could not connect to rabbitmq server due to your misconfiguration.

Mzoorikh gravatar imageMzoorikh ( 2014-10-22 05:45:54 -0500 )edit

I configured as following :

http://pastebin.com/ZrkVQR29 (nova.conf)

mehdi gravatar imagemehdi ( 2014-10-22 10:10:19 -0500 )edit
0

answered 2014-10-28 08:58:44 -0500

mehdi gravatar image

Hi I fixed the "nova image-list" error with reconfigure the "rabbitmq" server. And now it run perfectly :) thank you very much Ms. @Mzoorikh for your greatly help.

edit flag offensive delete link more
0

answered 2014-12-12 07:20:04 -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

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

Stats

Asked: 2014-10-16 05:39:02 -0500

Seen: 13,820 times

Last updated: Dec 12 '14