Statistics
| Branch: | Tag: | Revision:

root / lib / hypervisor @ 1902c213

Name Size
__init__.py 2 kB
hv_base.py 18.8 kB
hv_chroot.py 10.3 kB
hv_fake.py 10.3 kB
hv_kvm.py 96.8 kB
hv_lxc.py 15.3 kB
hv_xen.py 37.1 kB

Latest revisions

# Date Author Comment
1902c213 01/14/2014 02:43 pm Dimitris Aragiorgis

(kvm) Remove sleep from HotModDevice

We sleep 2 secs after each hotplug command so the sleep
inside HotModDevice(), that was waiting for the qemu to
actual remove the device before re-adding it can
be removed.

Signed-off-by: Dimitris Aragiorgis <>

7db0ca2a 01/14/2014 02:43 pm Dimitris Aragiorgis

(kvm) Hotplug a device found only in config.data

A device can be added only in config.data by omitting `--hotplug`
option. With this patch we allow this device to be hot-plugged
in the future by issuing `gnt-instance modify --net <index>: --hotplug`
command. HotModDevice() will search the runtime entry of the device...

5fbb57ab 01/14/2014 02:43 pm Dimitris Aragiorgis

(kvm) Each hotplug qemu commmand with a separate socat

Previously we issued one socat command with two "\n" separated
actions (e.g. netdev_add ...\ndevice_add...) This bumps into
a QEMU race where the first one succeeds but the second (which
has reference to the first) does not! Thus we change...

691d8725 01/14/2014 02:43 pm Dimitris Aragiorgis

(2.9) Remove deprecated _ERROR_DATA_KEY in QMP

Commit de253f14 of QEMU repo "BREAKS QMP's compatibility for
the error response" as it removes "data" key from qmp error
response messages. To this end we only log "class" and "desc"
values of the message.
...

dbbf9700 01/14/2014 02:43 pm Dimitris Aragiorgis

(kvm) Workaround for QMP misbahavior

After observing TypeErrors during parsing QMP response messages in
GetInstanceInfo(), it seems that something happens with the response
of `qmp_capabilities` command (which is {"return": {}} and stays in
the buffer and the following commands produce a TypeError because we...

f14863bc 12/17/2013 12:46 pm Dimitris Aragiorgis

(kvm) Add migration capabilities if supported

This just adds two monitor commands before migration
in order to optimize performance. If the migrate_set_capability
command is not supported nothing bad happens.

TODO: parse monitor output or introduce a method to find...

9209d947 12/17/2013 12:46 pm Dimitris Aragiorgis

(ext) Pass disk geometry in kvm command

Currently we allow this feature only for ext templates that
allow arbitrary params per disk. If both 'heads' and 'secs'
params are given then 'cyls' is calculated from the disk size.

TODO: export these params in IDISK_PARAMS since the can be...

566853c4 12/17/2013 12:46 pm Dimitris Aragiorgis

(ext) Override disk_cache hvp with disk param in ext

This is a hack that brings disk_cache hypervisor param
at disk level. This is supported only for disks of ext
template that allow arbitrary params. The corresponding
param that should be used is 'cache'....

f44c88c7 12/17/2013 12:46 pm Dimitris Aragiorgis

(grnet) Enable -device option for old disks upon migration

Change _GenerateDeviceKVMId() to take device index as an
extra argument. In case device has uuid and pci info
we return proper device id. In case idx is given we return
a dummy id (e.g. hotdisk-0). Otherwise we raise an Exception....

150e31ec 12/17/2013 12:46 pm Dimitris Aragiorgis

(grnet) Move disk options before nic ones in kvm command

Older versions of Ganeti did ensure that during startup
disk devices will be inserted before nic devices in PCI
configuration space. KVM inserts devices to PCI slots
depending on the order of command line options....

View revisions

Also available in: Atom