Ask Your Question
0

Can't create instances, Status got "error" ECONNREFUSED

asked 2014-11-28 05:07:45 -0500

Udaya Sri gravatar image

updated 2014-12-31 14:19:02 -0500

smaffulli gravatar image

image description

nova-compute.log

2014-12-01 10:09:43.833 46811 TRACE nova.compute.manager [instance: 965f2a87-7334-4092-be94-4494b14ded31]     raise exceptions.ConnectionFailed(reason=e)
2014-12-01 10:09:43.833 46811 TRACE nova.compute.manager [instance: 965f2a87-7334-4092-be94-4494b14ded31] ConnectionFailed: Connection to neutron failed: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /v2.0/tokens (Caused by <class 'socket.error'>: [Errno 111] ECONNREFUSED)
2014-12-01 10:09:43.833 46811 TRACE nova.compute.manager [instance: 965f2a87-7334-4092-be94-4494b14ded31] 
2014-12-01 10:10:01.791 46811 AUDIT nova.compute.resource_tracker [-] Auditing locally available compute resources
2014-12-01 10:10:02.714 46811 AUDIT nova.compute.resource_tracker [-] Total physical ram (MB): 40199, total allocated virtual ram (MB): 11264
2014-12-01 10:10:02.714 46811 AUDIT nova.compute.resource_tracker [-] Free disk (GB): -63
2014-12-01 10:10:02.715 46811 AUDIT nova.compute.resource_tracker [-] Total usable vcpus: 40, total allocated vcpus: 0
2014-12-01 10:10:02.715 46811 AUDIT nova.compute.resource_tracker [-] PCI stats: []
2014-12-01 10:10:02.716 46811 INFO nova.compute.resource_tracker [-] Compute_service record updated for compute1:compute1.XXX.com
edit retag flag offensive close merge delete

8 answers

Sort by ยป oldest newest most voted
1

answered 2014-12-02 01:20:43 -0500

hello,

do refer the following link it may help you

http://virtual2privatecloud.com/troub...

edit flag offensive delete link more
1

answered 2014-11-30 22:46:32 -0500

pawankkamboj gravatar image

2014-12-01 10:09:43.833 46811 TRACE nova.compute.manager [instance: 965f2a87-7334-4092-be94-4494b14ded31] ConnectionFailed: Connection to neutron failed: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /v2.0/tokens (Caused by <class 'socket.error'="">: [Errno 111] ECONNREFUSED)

Logs indicating there is issue with neutron or nova unable to communicate with neutron, Check you neutron service and see it is running also verify dhcp agent service!

edit flag offensive delete link more

Comments

1

dhcp agent is running

So what are the other issues may be caused to occur this

Udaya Sri gravatar imageUdaya Sri ( 2014-12-01 00:00:02 -0500 )edit
1

answered 2014-12-01 22:53:16 -0500

sputnik13 gravatar image

ECONNREFUSED means the connection attempt failed.

First, are you running your nova and neutron services on the same box (single controller)? If so, then use of "localhost" as the neutron endpoint makes sense, but that leads in to possibility #2

Second, is the neutron API running on "localhost"? "localhost" is usually 127.0.0.1 but it's sometimes not. Depending on what IP your API(s) are listening on, trying to hit "localhost" may be a problem. See where neutron API is listening (if at all) by running the following command on your controller (assuming you have a single controller):

sudo netstat -tlpn | grep 5000

If you get nothing from this command then there is nothing listening on port 5000.

If you do get something from this command, take note of what address the service is bound to, and check /etc/hosts to see what "localhost" points to. If the service is listening on 0.0.0.0 or on whatever IP "localhost" points to, then everything should be working and you need to start exploring deeper.

edit flag offensive delete link more

Comments

Sorted out the connectivity problem was at neutron

Udaya Sri gravatar imageUdaya Sri ( 2014-12-03 02:43:35 -0500 )edit
1

answered 2014-12-01 03:53:16 -0500

updated 2014-12-01 03:54:09 -0500

This can be because of : 1. Neutron server which is on Controller not accessible or running. There are possiblities of Neutron service is not getting authenticated. 2. Neutron Network Node is not accessible 3. All the interfaces on Neutron node are not up specially associated with br-ex is created. 4. Check Logs of neutron/server.log 5. On controller node: check if all the agents are running or not using "neutron agent-list"

Regards Neelesh

edit flag offensive delete link more

Comments

1

"neutron agent-list" this command is not getting an output, So how to solve it

Udaya Sri gravatar imageUdaya Sri ( 2014-12-01 04:41:46 -0500 )edit
1

Are you running this command on Controller node ? 1. Please check your all neutron services running on Controller? 2. There can be issue in connection between Messaging Server and Neutron Server. Please check the neutron server logs for any AMPQ connection errors.

NeeleshG gravatar imageNeeleshG ( 2014-12-01 05:25:53 -0500 )edit
1

neutron agent-list now list down the list. But I cant be able to delete the error state got instances by nova delete <server name or ID> out put : Request to delete server <server name="" or="" id=""> has been accepted.


but instances are still exist

Udaya Sri gravatar imageUdaya Sri ( 2014-12-01 05:33:08 -0500 )edit
1

Still the firstly occurred error state is existed.

Udaya Sri gravatar imageUdaya Sri ( 2014-12-01 05:36:21 -0500 )edit
1

Restart Nova-compute service and check. Check the compute, api logs immidiately after deleting instance .

NeeleshG gravatar imageNeeleshG ( 2014-12-01 05:52:56 -0500 )edit
1

answered 2014-11-29 01:11:56 -0500

yatin gravatar image

Hello,

There can be many reasons for an instance to get into ERROR state. May be nova-compute is not found or you are lacking of resources.. as you have selected m1.large flavour, etc. You need to provide additional information to know the root cause of the issue. Please share nova-compute log. If nothing is found there then share nova-scheduler log.

You can also try below option to debug the issue. Add debug=true in nova.conf and restart nova services.

edit flag offensive delete link more

Comments

1

I have added nova-compute.log in my question

Udaya Sri gravatar imageUdaya Sri ( 2014-11-30 22:44:58 -0500 )edit
1

answered 2014-11-28 05:30:19 -0500

Please check your log files(e.g. /var/log/nova), and put the suspected sections on your post to aim others find your exact solution.

edit flag offensive delete link more
0

answered 2014-12-02 07:10:25 -0500

gaud gravatar image

is your neutron endpoint ok ?

edit flag offensive delete link more
0

answered 2014-11-30 23:18:07 -0500

Looks like Neutron is unable to authenticate with keystone. Please check info neutron.conf file and verify keystone_auth_ section contains correct hostname/password. Than restart neutron-server service.

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-11-28 05:07:45 -0500

Seen: 2,092 times

Last updated: Dec 31 '14