[Bug 932166] Re: ganeti2 can not determine kvm version

2013-02-23 Thread Jimmy Angelakos
Patch is a Confirmed fix on 12.04. Many thanks

-- 
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


[Bug 932166] Re: ganeti2 can not determine kvm version

2012-06-05 Thread Devin Vance
I also can confirm that after applying this patch, and restarting ganeti
I am able to startup instances again.

-- 
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


[Bug 932166] Re: ganeti2 can not determine kvm version

2012-06-01 Thread andrew bezella
i can confirm that the patch allows an instance to start.

-- 
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


[Bug 932166] Re: ganeti2 can not determine kvm version

2012-03-26 Thread Ubuntu Foundation's Bug Bot
The attachment "fix-qemu-1.0-compat.patch" of this bug report has been
identified as being a patch.  The ubuntu-reviewers team has been
subscribed to the bug report so that they can review the patch.  In the
event that this is in fact not a patch you can resolve this situation by
removing the tag 'patch' from the bug report and editing the attachment
so that it is not flagged as a patch.  Additionally, if you are member
of the ubuntu-reviewers team please also unsubscribe the team from this
bug report.

[This is an automated message performed by a Launchpad user owned by
Brian Murray.  Please contact him regarding any issues with the action
taken in this bug report.]

** Tags added: patch

-- 
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


[Bug 932166] Re: ganeti2 can not determine kvm version

2012-03-26 Thread Ralf Spenneberg
This patch  fixes it:
http://groups.google.com/group/ganeti/attach/95e8de340d1b4b70/fix-qemu-1.0-compat.patch?part=2

--- a/lib/hypervisor/hv_kvm.py  2012-02-01 13:14:28.556767386 +
+++ b/lib/hypervisor/hv_kvm.py  2012-02-01 13:17:02.431087060 +
@@ -199,7 +199,7 @@
   _MIGRATION_INFO_MAX_BAD_ANSWERS = 5
   _MIGRATION_INFO_RETRY_DELAY = 2

-  _VERSION_RE = re.compile(r"\b(\d+)\.(\d+)\.(\d+)\b")
+  _VERSION_RE = re.compile(r"\b(\d+)\.(\d+)(\.(\d+))?\b")

   ANCILLARY_FILES = [
 _KVM_NETWORK_SCRIPT,
@@ -924,21 +924,40 @@
 return result

   @classmethod
+  def _ParseKVMVersion(cls, text):
+"""Parse the KVM version from the --help output.
+
+@type text: string
+@param text: output of kvm --help
+@return: (version, v_maj, v_min, v_rev)
+@raise L{errors.HypervisorError}: when the KVM version cannot be retrieved
+
+"""
+match = cls._VERSION_RE.search(text.splitlines()[0])
+if not match:
+  raise errors.HypervisorError("Unable to get KVM version")
+
+v_all = match.group(0)
+v_maj = int(match.group(1))
+v_min = int(match.group(2))
+if match.group(4):
+  v_rev = int(match.group(4))
+else:
+  v_rev = 0
+return (v_all, v_maj, v_min, v_rev)
+
+  @classmethod
   def _GetKVMVersion(cls):
 """Return the installed KVM version

 @return: (version, v_maj, v_min, v_rev), or None
+@raise L{errors.HypervisorError}: when the KVM version cannot be retrieved

 """
 result = utils.RunCmd([constants.KVM_PATH, "--help"])
 if result.failed:
-  return None
-match = cls._VERSION_RE.search(result.output.splitlines()[0])
-if not match:
-  return None
-
-return (match.group(0), int(match.group(1)), int(match.group(2)),
-int(match.group(3)))
+  raise errors.HypervisorError("Unable to get KVM version")
+return cls._ParseKVMVersion(result.output)

   def StopInstance(self, instance, force=False, retry=False, name=None):
 """Stop an instance.


** Patch added: "fix-qemu-1.0-compat.patch"
   
https://bugs.launchpad.net/ubuntu/+source/ganeti/+bug/932166/+attachment/2939877/+files/fix-qemu-1.0-compat.patch

-- 
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


[Bug 932166] Re: ganeti2 can not determine kvm version

2012-03-26 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: ganeti (Ubuntu)
   Status: New => Confirmed

-- 
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


[Bug 932166] Re: ganeti2 can not determine kvm version

2012-02-15 Thread Dennis Olsson
Thanks. Hand patching for now.

-- 
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


[Bug 932166] Re: ganeti2 can not determine kvm version

2012-02-14 Thread Iustin Pop
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=585c8187c08a31e40a741c6fddadb6a6191e5c99

-- 
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