Statistics
| Branch: | Tag: | Revision:

root / lib @ fcbf3d43

Name Size
  build
  client
  cmdlib
  confd
  http
  hypervisor
  impexpd
  masterd
  rapi
  server
  storage
  tools
  utils
  watcher
__init__.py 1.7 kB
_constants.py.in 285 Bytes
asyncnotifier.py 6.7 kB
backend.py 142.6 kB
bootstrap.py 43 kB
cli.py 139 kB
compat.py 4.9 kB
config.py 96.3 kB
constants.py 3.4 kB
daemon.py 29 kB
errors.py 11.5 kB
hooksmaster.py 10.5 kB
ht.py 17.5 kB
jqueue.py 81.1 kB
jstore.py 6.7 kB
locking.py 61.5 kB
luxi.py 17.8 kB
mcpu.py 18.9 kB
netutils.py 19.7 kB
network.py 8.3 kB
objects.py 67.1 kB
opcodes.py.in_after 391 Bytes
opcodes.py.in_before 7.5 kB
opcodes_base.py 8.1 kB
outils.py 4.9 kB
ovf.py 66.6 kB
pathutils.py 6.7 kB
qlang.py 10 kB
query.py 86.5 kB
rpc.py 31.9 kB
rpc_defs.py 26.3 kB
runtime.py 7.4 kB
serializer.py 5.1 kB
ssconf.py 13.3 kB
ssh.py 10.9 kB
uidpool.py 12.2 kB
vcluster.py 7.9 kB
workerpool.py 18.8 kB

Latest revisions

# Date Author Comment
fcbf3d43 12/11/2014 01:07 pm Dimitris Aragiorgis

ifdown: Introduce helper methods

Until now Ganeti upon TAP creation, a NIC file was created
under $RUNDIR/kvm-hypervisor/nic/<instance_name>/<nic_index>

Since NICs have obtained a UUID, we are going to create another
file named after its UUID. This will be needed during ifdown...

e3e51401 12/11/2014 01:07 pm Dimitris Aragiorgis

ifdown: Change kvm-if* scripts

  • Rename kvm-vif-bridge to kvm-ifup-custom
  • Search if /etc/ganeti/kvm-if*-custom is available
    and execute it instead
  • Pass positional argument to custom script

Signed-off-by: Dimitris Aragiorgis <>

9e0ced60 12/11/2014 01:07 pm Dimitris Aragiorgis

ifdown: Add example kvm-ifdown script

This script currently does nothing more that calling user the
user provided one if it exists.

User provided script should be placed under /etc/ganeti/
and named `ganeti-kvm-ifdown`.

Signed-off-by: Dimitris Aragiorgis <>

5fcaa75b 12/11/2014 01:06 pm Dimitris Aragiorgis

(2.13) Fix Xen's NIC file

Xen exports all environment variables to a file so that an
external script (see vif_script hvparam) can source it.
In case of multiple values per variable (e.g. TAGS), we
should use XXX="a b c" instead of XXX=a b c. Fix this.

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

d9982f38 12/11/2014 12:54 pm Dimitris Aragiorgis

(2.13) kvm: Delegate socket handling to monitor module

Introduce @_ensure_connection decorator that properly handles
the socket connection (i.e. connect, close) and propagates
any exceptions raised in the decorated method.

In general @_ensure_connection wraps external methods....

6155a05d 12/11/2014 12:54 pm Dimitris Aragiorgis

(2.13) kvm: Use vhostfds obtained by OpenTap

During instance startup, if vhost_net is True, OpenTap() opens
/dev/vhost-net device to obtain some fds. These fds were never
used. This patch adds the vhostsfd option to the --netdev option.

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

e3028ca0 12/11/2014 12:54 pm Dimitris Aragiorgis

(2.13) hotplug: Retry VerifyHotplugCommand up to 5 times

It seems that QMP upon device_del returns without QEMU having
completely removed the device from the PCI bus. This probably has to
do PCI bus hotplug handlers (DeviceState->BusState->hotplug_handler)....

e31571c1 12/11/2014 12:54 pm Dimitris Aragiorgis

(2.13) qmp: Log qmp commands and responses

Add debug logging for all qmp commands and responses, except for
query-commands, and qmp_capabilities, that are executed upon
initialization of QmpConnection (and their output is not really
useful).

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

f1306ed7 12/11/2014 12:54 pm Dimitris Aragiorgis

(2.13) hotplug: Is not supported for QEMU < 1.7

Change the bulk check of whether hotplug is supported or not.
Only versions >= 1.7 support the required qmp commands.

Signed-off-by: Dimitris Aragiorgis <>
Reviewed-by: Hrvoje Ribicic <>

196f7c06 12/11/2014 12:54 pm Dimitris Aragiorgis

(2.13) hotplug: Remove unused code after refacoring

All HMP related code gets removed since everything is done via QMP.

Signed-off-by: Dimitris Aragiorgis <>
Reviewed-by: Hrvoje Ribicic <>

View revisions

Also available in: Atom