nova-compute does not start at boot due to unsatisfied libvirt-bin dependency
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nova (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Description:
-- nova-compute service fails to start automatically at boot due to race condition and as a result unsatisfied service dependency libvirt-bin service.
-- Nova-compute log files shows that no libvirt socket was available at start time:
tail -n 3 /var/log/
2012-08-30 14:23:24 TRACE nova if ret is None:raise libvirtError(
2012-08-30 14:23:24 TRACE nova libvirtError: Failed to connect socket to '/var/run/
2012-08-30 14:23:24 TRACE nova
-- However libvirt is stated at the boot:
service libvirt-bin status
libvirt-bin start/running, process 2971
-- nova compute ca be succesfully started manually
service nova-compute start
nova-compute start/running, process 3714
service nova-compute status
nova-compute start/running, process 3714
tail -n 3 /var/log/
2012-08-30 15:09:27 INFO nova.virt.
2012-08-30 15:09:27 INFO nova.rpc.common [-] Connected to AMQP server on REGION-
2012-08-30 15:09:27 DEBUG nova.service [-] Creating Consumer connection for Service compute from (pid=3715) start /usr/lib/
-- version
dpkg -l | grep nova-compute
ii nova-compute 2012.1+
lsb_release -rd
Description: Ubuntu 12.04.1 LTS
Release: 12.04
How reproducible: Always. Restart compute node and check nova-compute service.
Suggested fix: Add libvirt-bin service dependency to nova-compute service in /etc/init/
Replace this:
----------------
start on (filesystem and net-device-up IFACE!=lo)
stop on runlevel [016]
------------------
with this:
------------------
start on (filesystem and net-device-up IFACE!=lo)
start on started libvirt-bin
stop on runlevel [016]
------------------
Package name corrected.