Error: unable to connect to '/var/run/libvirt/libvirt-sock', libvirtd may need to be started: No such file or directory
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Cloud Archive |
Fix Released
|
Undecided
|
Unassigned | ||
nova (Ubuntu) |
Fix Released
|
Medium
|
James Page | ||
Raring |
Won't Fix
|
Medium
|
Chris J Arges | ||
Saucy |
Fix Released
|
Medium
|
Chris J Arges | ||
Trusty |
Fix Released
|
Medium
|
James Page |
Bug Description
SRU Justification:
[Impact]
* If nova-compute tries to start before libvirt-bin is up it will fail. And result in the above error.
[Test Case]
* Execute the following commands:
sudo apt-get install -y python-
sudo add-apt-repository cloud-archive:
sudo apt-get update
sudo apt-get install -y nova-compute
sudo stop nova-compute
sudo stop libvirt-bin
# simulate that libvirt-bin starts after nova-compute is running
sudo start nova-compute
sleep 5
sudo status nova-compute
# expected result:
# start/running
# actual result:
# stop/waiting
[Regression Potential]
* This is a modification to the upstart script, and is currently commited in icehouse.
--
It looks like there is a race condition between nova-compute-kvm and libvirt. We should move the init script into nova-compute-kvm and add a dependency on libvirt. I'll see about updating the package to handle this
---
2011-12-20 21:56:47,255 CRITICAL nova [-] unable to connect to '/var/run/
(nova): TRACE: Traceback (most recent call last):
(nova): TRACE: File "/usr/bin/
(nova): TRACE: service.wait()
(nova): TRACE: File "/usr/lib/
(nova): TRACE: _launcher.wait()
(nova): TRACE: File "/usr/lib/
(nova): TRACE: service.wait()
(nova): TRACE: File "/usr/lib/
(nova): TRACE: return self._exit_
(nova): TRACE: File "/usr/lib/
(nova): TRACE: return hubs.get_
(nova): TRACE: File "/usr/lib/
(nova): TRACE: return self.greenlet.
(nova): TRACE: File "/usr/lib/
(nova): TRACE: result = function(*args, **kwargs)
(nova): TRACE: File "/usr/lib/
(nova): TRACE: server.start()
(nova): TRACE: File "/usr/lib/
(nova): TRACE: self.manager.
(nova): TRACE: File "/usr/lib/
(nova): TRACE: raise Error(str(e))
(nova): TRACE: Error: unable to connect to '/var/run/
(nova): TRACE:
Related branches
- Ubuntu Server Developers: Pending requested
-
Diff: 631 lines (+170/-117)11 files modifieddebian/changelog (+17/-2)
debian/control (+126/-91)
debian/nova-baremetal.install (+1/-1)
debian/nova-compute-uml.conf (+0/-4)
debian/nova-compute-uml.postinst (+0/-8)
debian/nova-compute-vmware.conf (+2/-0)
debian/nova-compute-vmware.postinst (+8/-0)
debian/nova-compute.upstart (+13/-8)
debian/nova-scheduler.install (+1/-1)
debian/nova-spiceproxy.logrotate (+1/-1)
debian/rules (+1/-1)
- James Page: Pending requested
-
Diff: 37 lines (+15/-0)2 files modifieddebian/changelog (+9/-0)
debian/nova-compute.upstart (+6/-0)
- James Page: Pending requested
-
Diff: 37 lines (+15/-0)2 files modifieddebian/changelog (+9/-0)
debian/nova-compute.upstart (+6/-0)
Changed in nova (Ubuntu): | |
assignee: | nobody → devendra (devedevendra) |
assignee: | devendra (devedevendra) → nobody |
tags: | added: canonistack |
Changed in nova (Ubuntu Trusty): | |
status: | In Progress → Fix Committed |
Changed in nova (Ubuntu Raring): | |
status: | Confirmed → In Progress |
importance: | Undecided → Medium |
Changed in nova (Ubuntu Saucy): | |
importance: | Undecided → Medium |
Changed in nova (Ubuntu Raring): | |
assignee: | nobody → Chris J Arges (arges) |
Changed in nova (Ubuntu Saucy): | |
status: | Confirmed → In Progress |
assignee: | nobody → Chris J Arges (arges) |
description: | updated |
Changed in nova (Ubuntu Raring): | |
status: | In Progress → Won't Fix |
Changed in cloud-archive: | |
status: | New → In Progress |
Changed in cloud-archive: | |
status: | In Progress → Fix Released |
I was mistaken about breaking out upstart into other packages, both use libvirt-bin. See attached patch.