Statistics
| Branch: | Tag: | Revision:

root / lib / hypervisor @ 2e6f0cdf

Name Size
__init__.py 2 kB
hv_base.py 18.6 kB
hv_chroot.py 10.3 kB
hv_fake.py 10.3 kB
hv_kvm.py 93.9 kB
hv_lxc.py 15.3 kB
hv_xen.py 35.9 kB

Latest revisions

# Date Author Comment
2e6f0cdf 11/22/2013 12:51 pm Dimitris Aragiorgis

Make NIC setup more flexible in case of Xen

For every NIC write down a file that contains NIC's
info (MAC, mode, link, network details), that can
be sourced by any vif script. The file location is:
/var/run/ganeti/xen-hypervisor/nic/<domname>/<nicidx>.
...

26ce25ef 11/22/2013 11:57 am Dimitris Aragiorgis

Export nic name and uuid in configuration scripts

Signed-off-by: Dimitris Aragiorgis <>

7cfe1eb6 11/21/2013 04:34 pm Dimitris Aragiorgis

Introduce --hotplug-if-possible option

This will be useful for an external entity using RAPI that
wants to modify devices of instances.

The common use case for that is:
"I want to add a NIC/disk to an instance. If it is running
then try to hotplug the device. If not, then just add it to config."...

36a13a53 11/19/2013 03:22 pm Dimitris Aragiorgis

Do not abort if hotplug is not supported

This will be useful for an external entity using RAPI that
wants to do device modifications to instances.

The common use case for that is:
"I want to add a nic/disk to an instance. If it is running
then hotplug the device. If not, then just add it to config."...

ad00ee21 11/13/2013 01:24 am Dimitris Aragiorgis

Check if hotplug is supported in CheckPrereq

Introduce new RPC hotplug_supported that invokes the corresponding
hypervisor's method which checks if hotplug is generally
supported. Call this RPC early in CheckPrereq() and abort if
hotplug is not supported. Currently only KVM hypervisor with...

6b614440 11/13/2013 01:24 am Dimitris Aragiorgis

drive_del after device_del in disk hot-remove

This is needed so that qemu process really releases the
corresponding file descriptor and thus we can dmsetup/lvremove
the device without errors.

Signed-off-by: Dimitris Aragiorgis <>

55061f27 11/13/2013 01:24 am Dimitris Aragiorgis

Some fixes in _GenerateKVMBlockDevicesOptions()

  • Add docstring.
  • fix missed usecase of boot_disk=False if kernel_path is given.
  • Use devlist arg in GenerateKVMBlockDeviceOptions()
    This is previously calculated in _ExecuteKVMRuntime()
    so there is no need to rerun the same command....
139c240c 11/08/2013 10:12 am Dimitris Aragiorgis

Add finally: mosock.close() in _PassFds

Signed-off-by: Dimitris Aragiorgis <>

8eebdaa7 11/08/2013 10:11 am Dimitris Aragiorgis

Hotplug: rpc support

Introduce new RPC that eventually invoke hypervisor specific
hotplug functions. In order to be generic it has the following
arguments: device type, action, device, extra info, seq.
Device type can be NIC or DISK, action can be ADD, REMOVE,...

6283c5e3 11/08/2013 10:11 am Dimitris Aragiorgis

Introduce hotplug methods (hypervisor inteface)

4 new methods: HotAddDevice, HotDelDevice, HotModDevice, HotplugSupported
All these are the hypervisor interface with the backend.
In general they read current runtime info, do the actual hotplug
and update the runtime file....

View revisions

Also available in: Atom