Statistics
| Branch: | Tag: | Revision:

root / lib @ 3779121c

Name Size
  build
  client
  confd
  http
  hypervisor
  impexpd
  masterd
  rapi
  server
  tools
  utils
  watcher
__init__.py 820 Bytes
asyncnotifier.py 6 kB
backend.py 113.4 kB
bdev.py 87 kB
bootstrap.py 33.4 kB
cache.py 5.4 kB
cli.py 117.2 kB
cmdlib.py 539.3 kB
compat.py 3.9 kB
config.py 74.6 kB
constants.py 52.7 kB
daemon.py 26.7 kB
errors.py 10.6 kB
ht.py 9.9 kB
jqueue.py 72.8 kB
jstore.py 5.6 kB
locking.py 55.7 kB
luxi.py 16 kB
mcpu.py 23.2 kB
netutils.py 18.3 kB
objects.py 57.4 kB
objectutils.py 2.5 kB
opcodes.py 59.9 kB
ovf.py 65.5 kB
pathutils.py 4.8 kB
qlang.py 9.8 kB
query.py 72.1 kB
rpc.py 24.4 kB
rpc_defs.py 22.4 kB
runtime.py 6.3 kB
serializer.py 4 kB
ssconf.py 15.7 kB
ssh.py 9.1 kB
storage.py 13.2 kB
uidpool.py 11.8 kB
vcluster.py 7.2 kB
workerpool.py 14.3 kB

Latest revisions

# Date Author Comment
3779121c 09/28/2012 06:11 pm René Nussbaumer

Pylint cleanup

The previous commits introduced some pylint errors.

Signed-off-by: René Nussbaumer <>
Reviewed-by: Iustin Pop <>

b0a8e8c2 09/28/2012 04:05 pm René Nussbaumer

Modify batch-create to use MultiAlloc

This is the CLI part of the OpInstanceMultiAlloc change. There is some
room for improvement especially with user handling, but it works for now
and the code got simplified significantly.

QA tests still needs to be written....

68b2e985 09/28/2012 04:05 pm René Nussbaumer

Make validation error message more useful

Signed-off-by: René Nussbaumer <>
Reviewed-by: Iustin Pop <>

9bc5ac44 09/28/2012 04:05 pm René Nussbaumer

Provide a custom Validate for OpInstanceMultiAlloc

This is needed, as we're not strictly separating validation from
populating the defaults. We do this all in one function. If we now
receive a non complete OpInstanceCreate opcode in instances, we would
run into AttributeErrors on those....

2958c56e 09/28/2012 03:16 pm Michael Hanselmann

ganeti-cleaner: Separate queue cleaning code

This code does not need to run as root, therefore it's better to split
it out. It is now run with the same permissions as the master daemon.

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Iustin Pop <>

052783ff 09/28/2012 03:14 pm Michael Hanselmann

Stop hardcoding root user

Some parts of the code still use a hardcoded user name: root. This patch
replaces all with a constant specified at build time. The end goal is to
make it possible to run a Ganeti cluster without any special privileges
(of course this will prevent some functionality from working)....

6a5e841d 09/27/2012 07:10 pm Michael Hanselmann

ensure-dirs: Don't hardcode ssconf file group

Otherwise chown(2) will fail when noded doesn't run as root.

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Iustin Pop <>

cf8adf26 09/27/2012 06:36 pm Bernardo Dal Seno

Fix missing locks in InstanceRecreateDisks

In case of in-place recreate-disks operation, all node locks were released
before starting the actual execution.

Signed-off-by: Bernardo Dal Seno <>
Reviewed-by: Michael Hanselmann <>

ec944cc0 09/27/2012 06:36 pm Bernardo Dal Seno

InstanceRecreateDisks: new assertion for node locks

Make sure that all the nodes where a disk operation is peformed are locked.

Signed-off-by: Bernardo Dal Seno <>
Reviewed-by: Michael Hanselmann <>

39b8cd94 09/27/2012 05:46 pm Michael Hanselmann

ensure-dirs: Don't convert list to tuple

Tuples are data structures, not containers.

Signed-off-by: Michael Hanselmann <>
Reviewed-by: René Nussbaumer <>

View revisions

Also available in: Atom