Statistics
| Branch: | Tag: | Revision:

root / lib @ ff5def9b

Name Size
  build
  client
  cmdlib
  confd
  http
  hypervisor
  impexpd
  masterd
  rapi
  server
  storage
  tools
  utils
  watcher
__init__.py 1.2 kB
_constants.py.in 285 Bytes
asyncnotifier.py 6.1 kB
backend.py 140.3 kB
bootstrap.py 41.1 kB
cli.py 136.6 kB
compat.py 4.3 kB
config.py 94.9 kB
constants.py 55.8 kB
daemon.py 27.6 kB
errors.py 11.4 kB
hooksmaster.py 9.6 kB
ht.py 16.9 kB
jqueue.py 80.1 kB
jstore.py 6 kB
locking.py 61.1 kB
luxi.py 16.7 kB
mcpu.py 18.1 kB
netutils.py 19.1 kB
network.py 7.3 kB
objects.py 65.3 kB
opcodes.py.in_after 391 Bytes
opcodes.py.in_before 6.9 kB
opcodes_base.py 7.5 kB
outils.py 4.3 kB
ovf.py 66 kB
pathutils.py 5.9 kB
qlang.py 9.6 kB
query.py 84.6 kB
rpc.py 31.2 kB
rpc_defs.py 25.5 kB
runtime.py 6.8 kB
serializer.py 4.5 kB
ssconf.py 12.8 kB
ssh.py 10.3 kB
uidpool.py 11.7 kB
vcluster.py 7.4 kB
workerpool.py 18.3 kB

Latest revisions

# Date Author Comment
ff5def9b 10/24/2013 12:27 pm Dimitris Aragiorgis

Return link_name in blockdev_assemble rpc

Until now this RPC returned only dev_path. Since we use it in
hotplug we have to know the simlink of the device so that we
pass it to the corresponding hypervisor command and include it
in block_devices entry in runtime files....

c5708931 10/24/2013 12:27 pm 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,...

4b82125b 10/24/2013 12:27 pm 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....

cad837b9 10/24/2013 12:27 pm Dimitris Aragiorgis

Extract socket related code from QmpMonitor class

Separate unix socket related code from QmpMonitor class and
make the latter extend the newly introduced one: MonitorSocket

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

97cd9092 10/24/2013 12:27 pm Dimitris Aragiorgis

Helper methods that check for hotplug support

Hotplug is currently not supported for:

- KVM < 1.0
- existing devices in the cluster
- python-fdsend module is not installed (NIC hotplug)
- chroot (Disk hotplug)
- security mode other than None (Disk hotplug)...
a7ccf635 10/24/2013 12:27 pm Dimitris Aragiorgis

Use -device with pci info if possible

Extend kvm_cmd with -device option for the case of paravirual
Disks and NICs.

Signed-off-by: Dimitris Aragiorgis <>
Signed-off-by: Thomas Thrainer <>
Reviewed-by: Thomas Thrainer <>

2615646c 10/24/2013 12:27 pm Dimitris Aragiorgis

Helper methods for PCI slots and device ids

Device naming:
QEMU monitor expects devices to be uniquely named. Device ids derive
from the following function:
kvm_devid = <device_type>-<part of uuid>-pci-<pci_slot>
Device ids must be reproduce-able when we want to remove them....

0fe22ad2 10/24/2013 12:27 pm Dimitris Aragiorgis

Prepare block_devices runtime entry

With this patch we add another entry in runtime files along with
kvm_cmd, kvm_nics, and hvparams. block_devices that used to be
encapsulated inside kvm_cmd, live now separately just like nics do
but in tupples of (L{objects.Disk}, dev_path)....

a16f0d77 10/24/2013 12:27 pm Dimitris Aragiorgis

Prepare kvm options to support -device for disks

Newer kvm version support -device driver,... option where available
drivers can be found by running kvm -device ? command. Currently
ganeti uses `if` property of driver to define the disk type to use
which is also passed as hvparam. This patch prepares the use of...

66d3d195 10/24/2013 12:27 pm Dimitris Aragiorgis

block_devices = (disk, link, uri)

Do not pass BlockDev instance to hypervisor. Instead calculate the
drive_uri (if any) in backend level and pass only the string to
hypervisor.

Hypervisor should not be aware of the entire block device but only
the final path it can be reached....

View revisions

Also available in: Atom