ganeti2 can not determine kvm version
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ganeti (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
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://
100 /var/lib/
kvm:
Installed: 1:84+dfsg-
Candidate: 1:84+dfsg-
Version table:
*** 1:84+dfsg-
500 http://
100 /var/lib/
qemu-kvm:
Installed: 1.0+noroms-0ubuntu4
Candidate: 1.0+noroms-0ubuntu4
Version table:
*** 1.0+noroms-0ubuntu4 0
500 http://
100 /var/lib/
== 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-
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.
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.
Need to get 1,839 kB of source archives.
Get:1 http://
Get:2 http://
Get:3 http://
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_
root@terra:/tmp# tar xf ganeti_
root@terra:/tmp# grep 'Unable to get KVM version' -rn .
./ganeti-
./ganeti-
Both lines lead to:
927 def _GetKVMVersion(
which has:
933 result = utils.RunCmd(
934 if result.failed:
935 return None
936 match = cls._VERSION_
_VERSION_RE is defined as:
root@terra:/tmp# grep _VERSION_RE\ = * -rn | grep kvm
ganeti-
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.
Hi,
This was fixed in newer version (2.5), which should be released soon. Not sure right now if backporting it is easy and can be integrated; see http:// git.ganeti. org/?p= ganeti. git;a=commit; h=585c8187c08a3 1e40a741c6fddad b6a6191e5c99