libvirt with lxc and 3.0 kernel fails

Bug #802977 reported by Scott Moser
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libvirt (Ubuntu)
Fix Released
High
Unassigned

Bug Description

using libvirt with lxc does not work if kernel is '3.0' (without micro revision).

Below is a trace, but really, libvirt just expects that there is major.minor.micro:

2011-06-28 11:32:56,635 AUDIT nova [-] Starting compute node (version 2011.3-workspace:tarmac-20110617171714-1jxaxapu89jtiyo3)
2011-06-28 11:32:56,856 DEBUG nova.utils [-] backend <module 'nova.db.sqlalchemy.api' from '/usr/lib/pymodules/python2.7/nova/db/sqlalchemy/api.pyc'> from (pid=14869) __get_backend /usr/lib/pymodules/python2.7/nova/utils.py:405
2011-06-28 11:32:57,011 DEBUG nova.virt.libvirt_conn [-] Connecting to libvirt: lxc:/// from (pid=14869) _get_connection /usr/lib/pymodules/python2.7/nova/virt/libvirt/connection.py:189
2011-06-28 11:32:57,017 ERROR nova.exception [-] Uncaught exception
(nova.exception): TRACE: Traceback (most recent call last):
(nova.exception): TRACE: File "/usr/lib/pymodules/python2.7/nova/exception.py", line 87, in _wrap
(nova.exception): TRACE: return f(*args, **kw)
(nova.exception): TRACE: File "/usr/lib/pymodules/python2.7/nova/compute/manager.py", line 922, in update_available_resource
(nova.exception): TRACE: return self.driver.update_available_resource(context, self.host)
(nova.exception): TRACE: File "/usr/lib/pymodules/python2.7/nova/virt/libvirt/connection.py", line 1370, in update_available_resource
(nova.exception): TRACE: 'hypervisor_version': self.get_hypervisor_version(),
(nova.exception): TRACE: File "/usr/lib/pymodules/python2.7/nova/virt/libvirt/connection.py", line 1257, in get_hypervisor_version
(nova.exception): TRACE: return method()
(nova.exception): TRACE: File "/usr/lib/python2.7/dist-packages/libvirt.py", line 2271, in getVersion
(nova.exception): TRACE: if ret == -1: raise libvirtError ('virConnectGetVersion() failed', conn=self)
(nova.exception): TRACE: libvirtError: internal error Unknown release: 3.0-1-virtual
(nova.exception): TRACE:

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: libvirt-bin 0.9.2-4ubuntu1
ProcVersionSignature: User Name 3.0-1.2-virtual 3.0.0-rc3
Uname: Linux 3.0-1-virtual x86_64
Architecture: amd64
Date: Tue Jun 28 12:57:34 2011
Ec2AMI: ami-daa75cb3
Ec2AMIManifest: (unknown)
Ec2AvailabilityZone: us-east-1c
Ec2InstanceType: m1.large
Ec2Kernel: aki-825ea7eb
Ec2Ramdisk: unavailable
ProcEnviron:
 LANG=en_US.UTF-8
 LC_MESSAGES=en_US.utf8
 SHELL=/bin/bash
SourcePackage: libvirt
UpgradeStatus: No upgrade log present (probably fresh install)

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

(jdstrand has a patch)

Changed in libvirt (Ubuntu):
status: New → Confirmed
importance: Undecided → High
tags: added: patch
Revision history for this message
Scott Moser (smoser) wrote :
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Thanks, Scott, the patch looks clean to me. My oneiric images are reporting 3.0.2 right now, do you have a particular AMI on which I can test this?

Changed in libvirt (Ubuntu):
status: Confirmed → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package libvirt - 0.9.2-4ubuntu2

---------------
libvirt (0.9.2-4ubuntu2) oneiric; urgency=low

  [ Scott Moser ]
  * 9028-linux-3-0-no-micro.patch: support running libvirt with lxc on linux
    3.0 (LP: #802977)

  [ Jamie Strandboge ]
  * debian/apparmor/usr.sbin.libvirtd: allow ipc_lock
 -- Scott Moser <email address hidden> Tue, 28 Jun 2011 10:00:54 -0400

Changed in libvirt (Ubuntu):
status: In Progress → Fix Released
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.