Statistics
| Branch: | Tag: | Revision:

root / lib @ 218e4c34

Name Size
  build
  client
  cmdlib
  confd
  http
  hypervisor
  impexpd
  masterd
  rapi
  server
  tools
  utils
  watcher
__init__.py 1.2 kB
asyncnotifier.py 6.1 kB
backend.py 128.4 kB
bdev.py 110 kB
bootstrap.py 36.6 kB
cli.py 136.6 kB
compat.py 4.3 kB
config.py 88.5 kB
constants.py 64.4 kB
daemon.py 26.7 kB
errors.py 11.4 kB
hooksmaster.py 9.2 kB
ht.py 10.7 kB
jqueue.py 79.7 kB
jstore.py 6 kB
locking.py 61.1 kB
luxi.py 16.4 kB
mcpu.py 17.9 kB
netutils.py 19.1 kB
network.py 7.9 kB
objects.py 63.5 kB
opcodes.py 68.2 kB
outils.py 4.3 kB
ovf.py 66 kB
pathutils.py 5.8 kB
qlang.py 9.6 kB
query.py 82.8 kB
rpc.py 26.3 kB
rpc_defs.py 24.8 kB
runtime.py 6.8 kB
serializer.py 4.5 kB
ssconf.py 11.5 kB
ssh.py 10.3 kB
storage.py 13.2 kB
uidpool.py 11.7 kB
vcluster.py 7.4 kB
workerpool.py 18.3 kB

Latest revisions

# Date Author Comment
218e4c34 11/28/2013 09:04 am Dimitris Aragiorgis

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....

cbb42ac7 11/28/2013 08:25 am Dimitris Aragiorgis

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....

83e6917d 11/26/2013 04:52 pm Dimitris Aragiorgis

Fix a bug in InstanceSetParams concerning names

In case no name is passed in disk modifications we should
keep the old one. If name=none then set disk name to None.

Signed-off-by: Dimitris Aragiorgis <>

77ed6182 11/25/2013 06:39 pm Dimitris Aragiorgis

Workaround for Issue 621

Upon LUNetworkDisconnect() and LUNetworkConnect() try to acquire
all cluster's instances.

By that _LS_ACQUIRE_ALL acquire mode is set and not
_LS_ACQUIRE_EXACT and thus the deleted lock does cause any problem.

TODO: find a less greedy way to fix that....

f71dde78 11/25/2013 05:57 pm Dimitris Aragiorgis

Fix NODE/NODE_RES locking in LUInstanceCreate

Both NODE and NODE_RES locks were acquired opportunistically if so
requested by the user. LUInstanceCreate requires, however, that the
actually locked elements on NODE and NODE_RES level are the same.

This patch changes the locking of NODE_RES such that those locks are...

38f561d8 11/22/2013 04:19 pm Dimitris Aragiorgis

Do not pass None values in network scripts

RunCmd does not allow env dict to have non string values.
NIC's IP and name can be None, thus export them only if not.

Signed-off-by: Dimitris Aragiorgis <>

7ce96e25 11/22/2013 03:02 pm Dimitris Aragiorgis

Add missing opcode parameter

Upon porting the patch from stable-2.10 where opcodes are
auto generated we forgot to add hotplug_if_possible param
to OpInstanceSetParams.

Signed-off-by: Dimitris Aragiorgis <>

2088b563 11/22/2013 01:04 pm Dimitris Aragiorgis

Some minor fixes related to network scripts

Export NIC's name and uuid in configuration scripts, use HooksDict()
in Xen hypervisor to export network related vars, use GetTags()
instance method instead of directly accessing tags slot, and fix a
bug in net-common script for the routed mode....

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 <>

View revisions

Also available in: Atom