OpenStack Compute (Nova)

couldn't start nova-compute service.

Asked by Seonghoon Moon on 2012-07-13

Hi, all

There's a problem to start nova-compute service. The following error is appearing on /var/log/nova/nova-compute.log

2012-07-13 21:01:03,806 DEBUG nova [-] compute_manager : nova.compute.manager.ComputeManager from (pid=1616) wait /usr/lib/python2.7/dist-packages/nova/service.py:355
2012-07-13 21:01:03,806 DEBUG nova [-] network_topic : network from (pid=1616) wait /usr/lib/python2.7/dist-packages/nova/service.py:355
2012-07-13 21:01:03,806 AUDIT nova [-] Starting compute node (version 2011.3-nova-milestone-tarball:tarmac-20110922115702-k9nkvxqzhj130av2)
2012-07-13 21:01:03,806 DEBUG nova.virt.libvirt_conn [-] Connecting to libvirt: qemu:///system from (pid=1616) _get_connection /usr/lib/python2.7/dist-packages/nova/virt/libvirt/connection.py:257
2012-07-13 21:01:03,914 DEBUG nova.utils [-] backend <module 'nova.db.sqlalchemy.api' from '/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.pyc'> from (pid=1616) __get_backend /usr/lib/python2.7/dist-packages/nova/utils.py:450
2012-07-13 21:01:03,916 INFO nova.db.sqlalchemy [-] Using mysql/eventlet db_pool.
2012-07-13 21:01:08,530 INFO nova.virt.libvirt_conn [-] Compute_service record updated for CCLab14
2012-07-13 21:01:08,750 INFO nova.rpc [-] Connected to AMQP server on 10.0.0.11:5672
2012-07-13 21:01:08,751 DEBUG nova [-] Creating Consumer connection for Service compute from (pid=1616) start /usr/lib/python2.7/dist-packages/nova/service.py:153
2012-07-13 21:02:08,775 INFO nova.compute.manager [-] Updating host status

nova-manage service list is appearing as follows:
nova-scheduler CCLab11 nova enabled :-) 2012-07-13 12:40:43
nova-compute CCLab12 nova enabled :-) 2012-07-13 12:40:40
nova-compute CCLab13 nova enabled :-) 2012-07-13 12:40:39
nova-compute CCLab11 nova enabled :-) 2012-07-13 12:40:41
nova-network CCLab11 nova enabled :-) 2012-07-13 12:40:43
nova-compute CCLab14 nova enabled XXX 2012-07-13 12:03:20
nova-compute CCLab15 nova enabled XXX 2012-07-13 12:05:08
nova-compute CCLab16 nova enabled XXX 2012-07-13 06:52:38

There are no other errors in nova-network nova-scheduler or nova-compute logs in 11~13, however there are errors in 14~16 nova-compute, even though they have same nova.conf.

My nova.conf file is as follows:

root@nova:~# /etc/nova/nova.conf
--rabbit_host=10.0.0.11
--sql_connection=mysql://nova:zjavbxj@10.0.0.11/nova
#### nova-api ####
--auth_driver=nova.auth.dbdriver.DbDriver
--cc_host=10.0.0.11
--ec2_url=http://10.0.0.11:8773/service/Cloud
--s3_host=10.0.0.11
--s3_dmz=10.0.0.11
--use_deprecated_auth
#### nova-network ####
--network_manager=nova.network.manager.VlanManager
--public_interface=eth0
--vlan_interface=eth1
--network_host=10.0.0.11
--routing_source_ip=10.0.0.11
--fixed_range=10.0.0.0/8
--network_size=1024
--dhcpbridge_flagfile=/etc/nova/nova.conf
--dhcpbridge=/usr/bin/nova-dhcpbridge
--force_dhcp_release=true
--fixed_ip_disassociate_timeout=30
#### nova-compute ####
--libvirt_type=kvm
--libvirt_use_virtio_for_bridges=true
--start_guest_on_host_boot=true
--resume_guests_state_on_host_boot=true
#### nova-volume ####
--iscsi_ip_prefix=10.0.0.11
--num_targets=100
#### glance ####
--image_service=nova.image.glance.GlanceImageService
--glance_api_server=10.0.0.11:9292
#### Misc ####
--logdir=/var/log/nova
--state_path=/var/lib/nova
--lock_path=/var/lock/nova

Please let me know if there is any mistake in the configuration file.

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Solved by:
Seonghoon Moon
Solved:
2012-07-27
Last query:
2012-07-27
Last reply:
2012-07-13

This question was reopened

Yaguang Tang (heut2008) said : #1

the log does not show any errors. check all you node have configed ntp sync .

Seonghoon Moon (moonsh1028) said : #2

Thanks Yaguang Tang, that solved my question.

Seonghoon Moon (moonsh1028) said : #3

thank you for your advice Yaguang. And then I set ntp server up all of nodes same as guide, however it's still not fixed.
Could you let me know, how can I check ntp sync & configure ntp sync?

Seonghoon Moon (moonsh1028) said : #4

FYI. here is what I get from the logs

~$ sudo tail /var/log/nova/nova-compute.log
(nova): TRACE: File "/usr/lib/python2.7/dist-packages/nova/service.py", line 78, in run_server
(nova): TRACE: server.wait()
(nova): TRACE: File "/usr/lib/python2.7/dist-packages/nova/service.py", line 245, in wait
(nova): TRACE: x.wait()
(nova): TRACE: File "/usr/lib/python2.7/dist-packages/nova/utils.py", line 514, in wait
(nova): TRACE: return self.done.wait()
(nova): TRACE: File "/usr/lib/python2.7/dist-packages/eventlet/event.py", line 114, in wait
(nova): TRACE: self._waiters.add(current)
(nova): TRACE: KeyboardInterrupt
(nova): TRACE:

Seonghoon Moon (moonsh1028) said : #5

It's solved.