Public bug reported: root@terra:~# lsb_release -rd Description: Ubuntu precise (development branch) Release: 12.04
root@terra:~# apt-cache policy ganeti2 kvm qemu-kvm ganeti2: Installed: 2.4.5-1 Candidate: 2.4.5-1 Version table: *** 2.4.5-1 0 500 http://se.archive.ubuntu.com/ubuntu/ precise/universe amd64 Packages 100 /var/lib/dpkg/status kvm: Installed: 1:84+dfsg-0ubuntu16+1.0+noroms+0ubuntu4 Candidate: 1:84+dfsg-0ubuntu16+1.0+noroms+0ubuntu4 Version table: *** 1:84+dfsg-0ubuntu16+1.0+noroms+0ubuntu4 0 500 http://se.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages 100 /var/lib/dpkg/status qemu-kvm: Installed: 1.0+noroms-0ubuntu4 Candidate: 1.0+noroms-0ubuntu4 Version table: *** 1.0+noroms-0ubuntu4 0 500 http://se.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages 100 /var/lib/dpkg/status == What I did == Installed ganeti2 (and thereby kvm). configured stuff (I don't think that's important), ran the following: root@terra:~# gnt-instance add -n terra.example.com -o debootstrap+default -t plain --disk 0:size=30g -B memory=512 --net 0:bridge=srv-br0 machine.example.com Tue Feb 14 16:24:33 2012 * disk 0, vg terra_data, name e62f5874-4465-49b6-9090-367d53f3ec4a.disk0 Tue Feb 14 16:24:33 2012 * creating instance disks... Tue Feb 14 16:24:34 2012 adding instance machine.example.com to cluster config Tue Feb 14 16:24:36 2012 - INFO: Waiting for instance machine.example.com to sync disks. Tue Feb 14 16:24:36 2012 - INFO: Instance machine.example.com's disks are in sync. Tue Feb 14 16:24:37 2012 * running the instance OS create scripts... Tue Feb 14 16:31:24 2012 * starting instance... Failure: command execution error: Could not start instance: Hypervisor error: Unable to get KVM version == Investigating == root@terra:/tmp# apt-get source ganeti2 Reading package lists... Done Building dependency tree Reading state information... Done Picking 'ganeti' as source package instead of 'ganeti2' NOTICE: 'ganeti' packaging is maintained in the 'Git' version control system at: git://git.debian.org/pkg-ganeti/ganeti.git Need to get 1,839 kB of source archives. Get:1 http://se.archive.ubuntu.com/ubuntu/ precise/universe ganeti 2.4.5-1 (dsc) [2,062 B] Get:2 http://se.archive.ubuntu.com/ubuntu/ precise/universe ganeti 2.4.5-1 (tar) [1,828 kB] Get:3 http://se.archive.ubuntu.com/ubuntu/ precise/universe ganeti 2.4.5-1 (diff) [8,738 B] Fetched 1,839 kB in 0s (6,103 kB/s) sh: 1: dpkg-source: not found Unpack command 'dpkg-source -x ganeti_2.4.5-1.dsc' failed. Check if the 'dpkg-dev' package is installed. E: Child process failed root@terra:/tmp# tar xf ganeti_2.4.5.orig.tar.gz root@terra:/tmp# tar xf ganeti_2.4.5-1.debian.tar.gz root@terra:/tmp# grep 'Unable to get KVM version' -rn . ./ganeti-2.4.5/lib/hypervisor/hv_kvm.py:513: raise errors.HypervisorError("Unable to get KVM version") ./ganeti-2.4.5/lib/hypervisor/hv_kvm.py:789: raise errors.HypervisorError("Unable to get KVM version") Both lines lead to: 927 def _GetKVMVersion(cls): which has: 933 result = utils.RunCmd([constants.KVM_PATH, "--help"]) 934 if result.failed: 935 return None 936 match = cls._VERSION_RE.search(result.output.splitlines()[0]) _VERSION_RE is defined as: root@terra:/tmp# grep _VERSION_RE\ = * -rn | grep kvm ganeti-2.4.5/lib/hypervisor/hv_kvm.py:202: _VERSION_RE = re.compile(r"\b(\d+)\.(\d+)\.(\d+)\b") Testing: root@terra:/tmp# kvm --help | head -n1 QEMU emulator version 1.0 (qemu-kvm-1.0), Copyright (c) 2003-2008 Fabrice Bellard There you go. Ganeti expects three fields, kvm in Ubuntu only has two. ** Affects: ganeti (Ubuntu) Importance: Undecided Status: New ** Tags: ganeti ganeti2 kvm version -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/932166 Title: ganeti2 can not determine kvm version To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ganeti/+bug/932166/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs