Ask Your Question
0

Unable to start openstack-nova-compute.service

asked 2014-12-28 11:06:23 -0500

Rajan433 gravatar image

updated 2014-12-28 12:37:16 -0500

rahulrajvn gravatar image

I am following OpenStack installation juno user guide for CentOS 7 to set up openstack environment and not able to start onpestack-nova-compute service. It fails as below:

[root@compute1 ~]# systemctl start openstack-nova-compute.service Job for openstack-nova-compute.service failed. See 'systemctl status openstack-nova-compute.service' and 'journalctl -xn' for details.

Message from journalctl

Dec 28 11:34:25 compute1 systemd[1]: Unit openstack-nova-compute.service entered failed state.
Dec 28 11:34:25 compute1 systemd[1]: openstack-nova-compute.service holdoff time over, scheduling restart.
Dec 28 11:34:25 compute1 systemd[1]: Stopping OpenStack Nova Compute Server...
-- Subject: Unit openstack-nova-compute.service has begun shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit openstack-nova-compute.service has begun shutting down.
Dec 28 11:34:25 compute1 systemd[1]: Starting OpenStack Nova Compute Server...
-- Subject: Unit openstack-nova-compute.service has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit openstack-nova-compute.service has begun starting up.
Dec 28 11:35:55 compute1 systemd[1]: openstack-nova-compute.service operation timed out. Terminating.
Dec 28 11:35:55 compute1 systemd[1]: Failed to start OpenStack Nova Compute Server.
-- Subject: Unit openstack-nova-compute.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit openstack-nova-compute.service has failed.
--
-- The result is failed.
Dec 28 11:35:55 compute1 systemd[1]: Unit openstack-nova-compute.service entered failed state.
Dec 28 11:35:56 compute1 systemd[1]: openstack-nova-compute.service holdoff time over, scheduling restart.
Dec 28 11:35:56 compute1 systemd[1]: Stopping OpenStack Nova Compute Server...
-- Subject: Unit openstack-nova-compute.service has begun shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit openstack-nova-compute.service has begun shutting down.
Dec 28 11:35:56 compute1 systemd[1]: Starting OpenStack Nova Compute Server...
-- Subject: Unit openstack-nova-compute.service has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit openstack-nova-compute.service has begun starting up.

Messages from log

2014-12-28 11:34:27.030 21344 INFO nova.virt.driver [-] Loading compute driver 'libvirt.LibvirtDriver'
2014-12-28 11:34:27.040 21344 INFO nova.openstack.common.periodic_task [-] Skipping periodic task _periodic_update_dns because its interval is negative
2014-12-28 11:34:27.113 21344 INFO oslo.messaging._drivers.impl_rabbit [req-cde9c3c9-0c73-461e-9701-e22dedbc40cf ] Connecting to AMQP server on controller:5672
2014-12-28 11:34:30.144 21344 ERROR oslo.messaging._drivers.impl_rabbit [req-cde9c3c9-0c73-461e-9701-e22dedbc40cf ] AMQP server controller:5672 closed the connection. Check login credentials: Socket closed
2014-12-28 11:34:31.148 21344 INFO oslo.messaging._drivers.impl_rabbit [req-cde9c3c9-0c73-461e-9701-e22dedbc40cf ] Delaying reconnect for 1.0 seconds...
2014-12-28 11:34:32.149 21344 INFO oslo.messaging._drivers.impl_rabbit [req-cde9c3c9-0c73-461e-9701-e22dedbc40cf ] Connecting to AMQP server on controller:5672
2014-12-28 11:34:35.168 21344 ERROR oslo.messaging._drivers.impl_rabbit [req-cde9c3c9-0c73-461e-9701-e22dedbc40cf ] AMQP server controller:5672 closed the connection. Check login credentials: Socket closed
2014-12-28 11:34:38.170 21344 INFO oslo.messaging._drivers.impl_rabbit [req-cde9c3c9-0c73-461e-9701-e22dedbc40cf ] Delaying reconnect for 1.0 seconds...
2014-12-28 11:34:39.172 21344 INFO oslo.messaging._drivers.impl_rabbit [req-cde9c3c9-0c73-461e-9701-e22dedbc40cf ] Connecting to AMQP server on controller:5672
2014-12-28 11:34:42.190 21344 ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2014-12-28 12:26:05 -0500

rahulrajvn gravatar image

updated 2014-12-28 12:41:07 -0500

Seems your rabbitmq server is not configured properly. Your Nova Server is not able to connect to rabbitmq-server.

Try resetting the password of rabbitmq service and change it in the nova configuration files also. Make sure your nova configuration has proper entries of rabbitmq such as host and password.

Check if firewall is blocking rabbitmq-server.

edit flag offensive delete link more

Comments

Thank you for the reply. You are probably right, I reinstalled controller node and re-deployed from scratch and now I can start the nova service and image successfully!!

Rajan433 gravatar imageRajan433 ( 2014-12-29 09:04:28 -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

Stats

Asked: 2014-12-28 11:06:23 -0500

Seen: 7,605 times

Last updated: Dec 28 '14