Ask Your Question
0

ERROR nova.compute.manager Instance failed network setup after 1 attempt(s)

asked 2016-12-06 22:57:18 -0500

AB239 gravatar image

I am using Newton release and getting this error while creating an instance. I have 2 compute, 1 controller, 1 block and 1 swift node in my setup.

Complete error trace looks like this

2016-12-07 10:23:40.468 2652 ERROR nova.compute.manager [req-ee43fc4c-2a59-43c8-a8ec-19571b9a3ee5 75d8b1daa51a46fb8ed5f9095409f9f6 6e665ce96bfa4907ac24b694b94711ab - - -] Instance failed network setup after 1 attempt(s)
2016-12-07 10:23:40.468 2652 ERROR nova.compute.manager Traceback (most recent call last):
2016-12-07 10:23:40.468 2652 ERROR nova.compute.manager   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1397, in _allocate_network_async
2016-12-07 10:23:40.468 2652 ERROR nova.compute.manager     bind_host_id=bind_host_id)
2016-12-07 10:23:40.468 2652 ERROR nova.compute.manager   File "/usr/lib/python2.7/dist-packages/nova/network/base_api.py", line 77, in wrapper
2016-12-07 10:23:40.468 2652 ERROR nova.compute.manager     res = f(self, context, *args, **kwargs)
2016-12-07 10:23:40.468 2652 ERROR nova.compute.manager   File "/usr/lib/python2.7/dist-packages/nova/network/api.py", line 265, in allocate_for_instance
2016-12-07 10:23:40.468 2652 ERROR nova.compute.manager     nw_info = self.network_rpcapi.allocate_for_instance(context, **args)
2016-12-07 10:23:40.468 2652 ERROR nova.compute.manager   File "/usr/lib/python2.7/dist-packages/nova/network/rpcapi.py", line 157, in allocate_for_instance
2016-12-07 10:23:40.468 2652 ERROR nova.compute.manager     macs=jsonutils.to_primitive(macs))
2016-12-07 10:23:40.468 2652 ERROR nova.compute.manager   File "/usr/lib/python2.7/dist-packages/oslo_messaging/rpc/client.py", line 169, in call
2016-12-07 10:23:40.468 2652 ERROR nova.compute.manager     retry=self.retry)
2016-12-07 10:23:40.468 2652 ERROR nova.compute.manager   File "/usr/lib/python2.7/dist-packages/oslo_messaging/transport.py", line 97, in _send
2016-12-07 10:23:40.468 2652 ERROR nova.compute.manager     timeout=timeout, retry=retry)
2016-12-07 10:23:40.468 2652 ERROR nova.compute.manager   File "/usr/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py", line 464, in send
2016-12-07 10:23:40.468 2652 ERROR nova.compute.manager     retry=retry)
2016-12-07 10:23:40.468 2652 ERROR nova.compute.manager   File "/usr/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py", line 453, in _send
2016-12-07 10:23:40.468 2652 ERROR nova.compute.manager     result = self._waiter.wait(msg_id, timeout)
2016-12-07 10:23:40.468 2652 ERROR nova.compute.manager   File "/usr/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py", line 336, in wait
2016-12-07 10:23:40.468 2652 ERROR nova.compute.manager     message = self.waiters.get(msg_id, timeout=timeout)
2016-12-07 10:23:40.468 2652 ERROR nova.compute.manager   File "/usr/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py", line 238, in get
2016-12-07 10:23:40.468 2652 ERROR nova.compute.manager     'to message ID %s' % msg_id)
2016-12-07 10:23:40.468 2652 ERROR nova.compute.manager MessagingTimeout: Timed out waiting for a reply to message ID 275aa999a89c4e80af2b86aaee23382d
2016-12-07 10:23:40.468 2652 ERROR nova.compute.manager 
2016-12-07 10:23:40.472 2652 ERROR nova.compute.manager [req-ee43fc4c-2a59-43c8-a8ec-19571b9a3ee5 75d8b1daa51a46fb8ed5f9095409f9f6 6e665ce96bfa4907ac24b694b94711ab - - -] [instance: ca768f76-a2a9-432d-bcb4-1da5d0de7353 ...
(more)
edit retag flag offensive close merge delete

Comments

Looks like your rabbitmq is down, or nova-compute cannot communicate with rabbitmq. Check the rabbitmq service is up and running, or try to restart it.

Bipin gravatar imageBipin ( 2016-12-07 06:26:04 -0500 )edit

Hi.. Rabbitmq is up and running as I am able to get all services as running in controller. I get this error when I try to launch an instance (both from Horizon and CLI). I also debugged at neutron level but everything to me looks fine. Have rechecked config files as well. Any other way to check?

AB239 gravatar imageAB239 ( 2016-12-07 07:29:11 -0500 )edit

have you debugged the nova boot ? also kindly give the output of telnet <controller-ip> <rabbitmqport> (from compute)

Bipin gravatar imageBipin ( 2016-12-07 23:27:15 -0500 )edit

root@compute1:/home/ubuntu# telnet controller 5672 Trying x.x.x.x.. Connected to controller. Escape character is '^]'.

Also I have debugged nova boot and no error appears while launching an instance.

AB239 gravatar imageAB239 ( 2016-12-07 23:48:28 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2016-12-08 00:31:03 -0500

AB239 gravatar image

updated 2017-03-28 07:15:35 -0500

Issue resolved. There was a misconfiguration on both compute. I missed these two (and I don't know how it got missed)

use_neutron = True

firewall_driver = nova.virt.firewall.NoopFirewallDriver

Both these params are responsible for network connection/config. Since they were missing, I was getting the mentioned error in subject of this question.

If someone faces this problem again in future, just get your configuration rechecked by someone else (as u tend to miss few blocks even after a recheck). Th

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: 2016-12-06 22:57:18 -0500

Seen: 2,907 times

Last updated: Mar 28 '17