Statistics
| Branch: | Tag: | Revision:

root / lib / hypervisor @ 258de3fe

Name Size
__init__.py 2 kB
hv_base.py 18.5 kB
hv_chroot.py 10.7 kB
hv_fake.py 10.7 kB
hv_kvm.py 81.9 kB
hv_lxc.py 15.6 kB
hv_xen.py 41.3 kB

Latest revisions

# Date Author Comment
3fe7d670 10/17/2013 04:06 pm Hrvoje Ribicic

Fix 'times' return type in the fake hypervisor

This patch changes the type of the times value returned by the fake
hypervisor from string to int. The values are used during two RPC
calls, namely InstanceInfo and AllInstancesInfo, and caused errors
when the more strict Haskell query code attempted to parse the...

697e573c 10/16/2013 08:56 pm Hrvoje Ribicic

Fix the "times" field type for KVM hypervisor

The KVM hypervisor Python class returned a "0" value for the times
field, which gets serialized as a string. As Haskell is more picky
about types, this caused the entire response to be declared as invalid
and broke status reporting. Fixed by changing the value to a proper...

fa8206c1 10/07/2013 12:36 pm Raffa Santi

Hardcode default access mode to kernelspace

Hardcode constants.KERNELSPACE as the default access method for
KVM disk templates, rather than allowing a change to the RBD default
access mode to affect all disk templates for KVM.

At some point in the future it might make more sense to have this...

c914b39f 10/04/2013 05:45 pm Santi Raffa

Handle scenarios where access is not set

It should not be possible to reach _GenerateKVMRuntime without having
the access method set, but if it does happen this commit makes sure
the default value is used anyway.

Signed-off-by: Raffa Santi <>...

117a85a0 10/02/2013 05:55 pm Raffa Santi

Add Userspace RBD support in KVM

  • Add device class object in block_device tuple
  • Update hv_xen.py for new block_devices format
  • Fix tests broken by the change

Signed-off-by: Santi Raffa <>
Reviewed-by: Thomas Thrainer <>

b5cad580 10/02/2013 03:22 pm Raffa Santi

Add soundhw support to XEN hypervisors

This allows XEN hypervisors to enable sound support, if the host
machines has required support. This has been tested only up to the
point of making sure the xen config file has the required
configuration values as per:...

295ed29b 10/02/2013 03:22 pm Santi Raffa

Add cpuid support to XEN hypervisors

Ease instance migration between heterogeneous nodes by letting system
administrators hide CPU capabilities as needed.

Signed-off-by: Santi Raffa <>
Reviewed-by: Thomas Thrainer <>

42e85303 09/25/2013 04:49 pm Klaus Aehlig

Merge branch 'stable-2.9' into master

  • stable-2.9
    Including missing RST files in packaging
    Update supported lint tools version numbers
    Fix some wrong indentations in the code
    Disable parenthesis indentation check
    Fix an improperly escaped string...
5e34123e 09/25/2013 10:51 am Michele Tartara

Make QmpMessage a proper container

Newer pylint versions complain that QmpMessage is not a proper container because
it does not implement the len() and delitem() methods. This commit
implements them.

Also, tests are added.

Signed-off-by: Michele Tartara <>...

a57e502a 09/24/2013 09:17 am Thomas Thrainer

Remove physical_id field from disk object

The 'physical_id' field of disk objects is no longer used, so remove it.
Also, all references are removed together with the code which made sure
that the physical_id is up to date when transmitted over RPC.

Signed-off-by: Thomas Thrainer <>...

View revisions

Also available in: Atom