[Openstack] Nova-compute doesn't start on reboot, only manually

Razique Mahroua razique.mahroua at gmail.com
Mon May 28 09:00:35 UTC 2012


Hi Stephen
looks like the amqp server doesn't start.
make sure it starts along with the nova-scheduler first.
Does both services start on boot ?

Razique
> Stephen Gran <mailto:stephen.gran at guardian.co.uk>
> 28 mai 2012 10:53
> Hi,
>
> On Mon, 2012-05-28 at 11:41 +0300, Alessandro Tagliapietra wrote:
>> Hello, i've installed openstack following the ubuntu 12.04 deploy guide, only problem is that nova-compute has to be started manually, by default it doesn't start on boot, this is the error log:
> ...
>> 2012-05-27 23:48:14 TRACE nova.rpc.common timeout: timed out
> ...
>> 2012-05-27 23:48:14 TRACE nova Timeout: Timeout while waiting on RPC response.
>> Then after system boot a start nova-compute make everything working.
>>
>> Any idea?
>
> Both of these are MQ timeouts.  You'll want to arrange for your MQ
> server to be running when nova starts up.  How you do that depends on
> your local architecture.
>
> Cheers,
> Alessandro Tagliapietra <mailto:tagliapietra.alessandro at gmail.com>
> 28 mai 2012 10:41
> Hello, i've installed openstack following the ubuntu 12.04 deploy 
> guide, only problem is that nova-compute has to be started manually, 
> by default it doesn't start on boot, this is the error log:
>
> 2012-05-27 23:47:14 INFO nova.rpc.common 
> [req-46624af9-9d2a-4901-b635-66f557d3b54c None None] Connected to AMQP 
> server on 10.8.0.1:5672
> 2012-05-27 23:48:14 ERROR nova.rpc.common 
> [req-46624af9-9d2a-4901-b635-66f557d3b54c None None] Timed out waiting 
> for RPC response: timed out
> 2012-05-27 23:48:14 TRACE nova.rpc.common Traceback (most recent call 
> last):
> 2012-05-27 23:48:14 TRACE nova.rpc.common File 
> "/usr/lib/python2.7/dist-packages/nova/rpc/impl_kombu.py", line 490, 
> in ensure
> 2012-05-27 23:48:14 TRACE nova.rpc.common return method(*args, **kwargs)
> 2012-05-27 23:48:14 TRACE nova.rpc.common File 
> "/usr/lib/python2.7/dist-packages/nova/rpc/impl_kombu.py", line 567, 
> in _consume
> 2012-05-27 23:48:14 TRACE nova.rpc.common return 
> self.connection.drain_events(timeout=timeout)
> 2012-05-27 23:48:14 TRACE nova.rpc.common File 
> "/usr/lib/python2.7/dist-packages/kombu/connection.py", line 175, in 
> drain_events
> 2012-05-27 23:48:14 TRACE nova.rpc.common return 
> self.transport.drain_events(self.connection, **kwargs)
> 2012-05-27 23:48:14 TRACE nova.rpc.common File 
> "/usr/lib/python2.7/dist-packages/kombu/transport/pyamqplib.py", line 
> 238, in drain_events
> 2012-05-27 23:48:14 TRACE nova.rpc.common return 
> connection.drain_events(**kwargs)
> 2012-05-27 23:48:14 TRACE nova.rpc.common File 
> "/usr/lib/python2.7/dist-packages/kombu/transport/pyamqplib.py", line 
> 57, in drain_events
> 2012-05-27 23:48:14 TRACE nova.rpc.common return 
> self.wait_multi(self.channels.values(), timeout=timeout)
> 2012-05-27 23:48:14 TRACE nova.rpc.common File 
> "/usr/lib/python2.7/dist-packages/kombu/transport/pyamqplib.py", line 
> 63, in wait_multi
> 2012-05-27 23:48:14 TRACE nova.rpc.common chanmap.keys(), 
> allowed_methods, timeout=timeout)
> 2012-05-27 23:48:14 TRACE nova.rpc.common File 
> "/usr/lib/python2.7/dist-packages/kombu/transport/pyamqplib.py", line 
> 120, in _wait_multiple
> 2012-05-27 23:48:14 TRACE nova.rpc.common channel, method_sig, args, 
> content = read_timeout(timeout)
> 2012-05-27 23:48:14 TRACE nova.rpc.common File 
> "/usr/lib/python2.7/dist-packages/kombu/transport/pyamqplib.py", line 
> 94, in read_timeout
> 2012-05-27 23:48:14 TRACE nova.rpc.common return 
> self.method_reader.read_method()
> 2012-05-27 23:48:14 TRACE nova.rpc.common File 
> "/usr/lib/python2.7/dist-packages/amqplib/client_0_8/method_framing.py", 
> line 221, in read_method
> 2012-05-27 23:48:14 TRACE nova.rpc.common raise m
> 2012-05-27 23:48:14 TRACE nova.rpc.common timeout: timed out
> 2012-05-27 23:48:14 TRACE nova.rpc.common
> 2012-05-27 23:48:14
> CRITICAL nova [-] Timeout while waiting on RPC response.
> 2012-05-27 23:48:14 TRACE nova Traceback (most recent call last):
> 2012-05-27 23:48:14 TRACE nova File "/usr/bin/nova-compute", line 49, 
> in <module>
> 2012-05-27 23:48:14 TRACE nova service.wait()
> 2012-05-27 23:48:14 TRACE nova File 
> "/usr/lib/python2.7/dist-packages/nova/service.py", line 413, in wait
> 2012-05-27 23:48:14 TRACE nova _launcher.wait()
> 2012-05-27 23:48:14 TRACE nova File 
> "/usr/lib/python2.7/dist-packages/nova/service.py", line 131, in wait
> 2012-05-27 23:48:14 TRACE nova service.wait()
> 2012-05-27 23:48:14 TRACE nova File 
> "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 166, 
> in wait
> 2012-05-27 23:48:14 TRACE nova return self._exit_event.wait()
> 2012-05-27 23:48:14 TRACE nova File 
> "/usr/lib/python2.7/dist-packages/eventlet/event.py", line 116, in wait
> 2012-05-27 23:48:14 TRACE nova return hubs.get_hub().switch()
> 2012-05-27 23:48:14 TRACE nova File 
> "/usr/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 177, in 
> switch
> 2012-05-27 23:48:14 TRACE nova return self.greenlet.switch()
> 2012-05-27 23:48:14 TRACE nova File 
> "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 192, 
> in main
> 2012-05-27 23:48:14 TRACE nova result = function(*args, **kwargs)
> 2012-05-27 23:48:14 TRACE nova File 
> "/usr/lib/python2.7/dist-packages/nova/service.py", line 101, in 
> run_server
> 2012-05-27 23:48:14 TRACE nova server.start()
> 2012-05-27 23:48:14 TRACE nova File 
> "/usr/lib/python2.7/dist-packages/nova/service.py", line 162, in start
> 2012-05-27 23:48:14 TRACE nova self.manager.init_host()
> 2012-05-27 23:48:14 TRACE nova File 
> "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 247, 
> in init_host
> 2012-05-27 23:48:14 TRACE nova self.reboot_instance(context, 
> instance['uuid'])
> 2012-05-27 23:48:14 TRACE nova File 
> "/usr/lib/python2.7/dist-packages/nova/exception.py", line 114, in wrapped
> 2012-05-27 23:48:14 TRACE nova return f(*args, **kw)
> 2012-05-27 23:48:14 TRACE nova File 
> "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 153, 
> in decorated_function
> 2012-05-27 23:48:14 TRACE nova function(self, context, instance_uuid, 
> *args, **kwargs)
> 2012-05-27 23:48:14 TRACE nova File 
> "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 177, 
> in decorated_function
> 2012-05-27 23:48:14 TRACE nova sys.exc_info())
> 2012-05-27 23:48:14 TRACE nova File 
> "/usr/lib/python2.7/contextlib.py", line 24, in __exit__
> 2012-05-27 23:48:14 TRACE nova self.gen.next()
> 2012-05-27 23:48:14 TRACE nova File 
> "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 171, 
> in decorated_function
> 2012-05-27 23:48:14 TRACE nova return function(self, context, 
> instance_uuid, *args, **kwargs)
> 2012-05-27 23:48:14 TRACE nova File 
> "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 896, 
> in reboot_instance
> 2012-05-27 23:48:14 TRACE nova network_info = 
> self._get_instance_nw_info(context, instance)
> 2012-05-27 23:48:14 TRACE nova File 
> "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 313, 
> in _get_instance_nw_info
> 2012-05-27 23:48:14 TRACE nova instance)
> 2012-05-27 23:48:14 TRACE nova File 
> "/usr/lib/python2.7/dist-packages/nova/network/api.py", line 219, in 
> get_instance_nw_info
> 2012-05-27 23:48:14 TRACE nova 'args': args})
> 2012-05-27 23:48:14 TRACE nova File 
> "/usr/lib/python2.7/dist-packages/nova/rpc/__init__.py", line 68, in call
> 2012-05-27 23:48:14 TRACE nova return _get_impl().call(context, topic, 
> msg, timeout)
> 2012-05-27 23:48:14 TRACE nova File 
> "/usr/lib/python2.7/dist-packages/nova/rpc/impl_kombu.py", line 674, 
> in call
> 2012-05-27 23:48:14 TRACE nova return rpc_amqp.call(context, topic, 
> msg, timeout, Connection.pool)
> 2012-05-27 23:48:14 TRACE nova File 
> "/usr/lib/python2.7/dist-packages/nova/rpc/amqp.py", line 338, in call
> 2012-05-27 23:48:14 TRACE nova rv = list(rv)
> 2012-05-27 23:48:14 TRACE nova File 
> "/usr/lib/python2.7/dist-packages/nova/rpc/amqp.py", line 299, in __iter__
> 2012-05-27 23:48:14 TRACE nova self._iterator.next()
> 2012-05-27 23:48:14 TRACE nova File 
> "/usr/lib/python2.7/dist-packages/nova/rpc/impl_kombu.py", line 572, 
> in iterconsume
> 2012-05-27 23:48:14 TRACE nova yield self.ensure(_error_callback, 
> _consume)
> 2012-05-27 23:48:14 TRACE nova File 
> "/usr/lib/python2.7/dist-packages/nova/rpc/impl_kombu.py", line 503, 
> in ensure
> 2012-05-27 23:48:14 TRACE nova error_callback(e)
> 2012-05-27 23:48:14 TRACE nova File 
> "/usr/lib/python2.7/dist-packages/nova/rpc/impl_kombu.py", line 553, 
> in _error_callback
> 2012-05-27 23:48:14 TRACE nova raise rpc_common.Timeout()
> 2012-05-27 23:48:14 TRACE nova Timeout: Timeout while waiting on RPC 
> response.
>
>
> Then after system boot a start nova-compute make everything working.
>
> Any idea?
>
> Best Regards
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to : openstack at lists.launchpad.net
> Unsubscribe : https://launchpad.net/~openstack
> More help : https://help.launchpad.net/ListHelp

-- 
Nuage & Co - Razique Mahroua
razique.mahroua at gmail.com



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20120528/351f8318/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: compose-unknown-contact.jpg
Type: image/jpeg
Size: 770 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20120528/351f8318/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: postbox-contact.jpg
Type: image/jpeg
Size: 1316 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20120528/351f8318/attachment-0001.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.jpg
Type: image/jpeg
Size: 10122 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20120528/351f8318/attachment-0002.jpg>


More information about the Openstack mailing list