libvirt lts upgrade misses librbd dependency

Bug #1389614 reported by Phil Weir
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
libvirt (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Following the automated upgrade path from Precise to Trusty, libvirtd failed to load libvirt_driver_storage.so (and consequently libvirt_driver_qemu.so). In our case, this was fixed by installing librbd-dev (presumably due to librbd1 dependency).

Running "/etc/init.d/libvirt-bin restart" produced the following in libvirtd.log

LIBVIRTD.LOG
2014-11-05 09:47:29.359+0000: 5755: info : libvirt version: 1.2.2
2014-11-05 09:47:29.359+0000: 5755: error : virDriverLoadModule:79 : failed to load module /usr/lib/libvirt/connection-driver/libvirt_driver_storage.so /usr/lib/libvirt/connection-driver/libvirt_driver_storage.so: undefined symbol: rbd_create3
2014-11-05 09:47:29.365+0000: 5755: error : virDriverLoadModule:79 : failed to load module /usr/lib/libvirt/connection-driver/libvirt_driver_qemu.so /usr/lib/libvirt/connection-driver/libvirt_driver_qemu.so: undefined symbol: virStorageFileStat

The original version was the server install of Ubuntu 12.04. It has Zentyal installed, which manages most of the server features. The current version as given by lsb_release -rd:

OS VERSION:
Description: Ubuntu 14.04.1 LTS
Release: 14.04

LIBVIRT VERSION:
libvirt0 : 1.2.2-0ubuntu13.1.6

WHAT YOU EXPECTED TO HAPPEN:
a) Running "virsh list" would show active VMs
b) libvirt would load QEMU driver on start-up

WHAT HAPPENED INSTEAD:
a) Received error> error: no connection driver available for qemu:///system
b) libvirt loaded without QEMU driver - error only visible in /var/log/libvirtd/libvirtd.log (shown above)

Revision history for this message
Serge Hallyn (serge-hallyn) wrote : Re: [Bug 1389614] [NEW] libvirt lts upgrade misses librbd dependency

Thanks for reporting this bug.

libvirt-bin does in fact depend on librbd1. Can you reproduce this error
by doing 'sudo apt-get purge librbd-dev' ? I'm wondering whether the
original libvirt install may have gone wrong, so that librbd1 was not
installed.

 status: incomplete

Changed in libvirt (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for libvirt (Ubuntu) because there has been no activity for 60 days.]

Changed in libvirt (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Pierre Padrixe (stannie) (pierre-padrixe) wrote :

I have the same behavior, I had to install librbd-dev manually.

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Thanks for the information. To be clear, if you now 'sudo apt-get purge librbd-dev', does it then fail again?

The librbd-dev package should only contain files needed for building against librbd, not files needed for using librbd1. So if the answer to the above question is yes then we should mark this bug as affecting librbd

Changed in libvirt (Ubuntu):
status: Expired → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for libvirt (Ubuntu) because there has been no activity for 60 days.]

Changed in libvirt (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.