Statistics
| Branch: | Tag: | Revision:

root / lib @ 92b61ec7

Name Size
  build
  confd
  http
  hypervisor
  rapi
__init__.py 820 Bytes
asyncnotifier.py 1.9 kB
backend.py 87.1 kB
bdev.py 62.2 kB
bootstrap.py 19.5 kB
cli.py 59.7 kB
cmdlib.py 311.7 kB
config.py 46.5 kB
constants.py 21 kB
daemon.py 11.3 kB
errors.py 8.8 kB
jqueue.py 41.7 kB
jstore.py 3.8 kB
locking.py 40.3 kB
luxi.py 12.1 kB
mcpu.py 20.1 kB
objects.py 29.7 kB
opcodes.py 18.7 kB
rpc.py 35.2 kB
serializer.py 3.7 kB
ssconf.py 13.5 kB
ssh.py 7.6 kB
storage.py 12.5 kB
utils.py 71.4 kB
workerpool.py 8.9 kB

Latest revisions

# Date Author Comment
92b61ec7 02/19/2010 04:53 pm Michael Hanselmann

utils.SignalHandler: Add support for handler function

This is useful if something else needs to be notified on signal arrival.

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

287a1740 02/19/2010 04:53 pm Michael Hanselmann

utils: Add function to set O_NONBLOCK on file descriptor

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

73027ed2 02/19/2010 04:53 pm Michael Hanselmann

utils: Add function to set FD_CLOEXEC on file descriptor

This will be used by another patch adding a utility function to start a daemon.

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

edcb5d9e 02/19/2010 04:53 pm Michael Hanselmann

utils: Add function to retry call on EINTR

There are quite a few places where we have to (or should) retry function calls
on EINTR. This utility function simplifies it.

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

69ca2f0b 02/18/2010 02:40 pm Michael Hanselmann

Merge branch 'devel-2.1'

  • devel-2.1:
    Reset tempfile module after fork where useful
    Move RunInSeparateProcess to ganeti.utils
    Add function to reset tempfile module after fork
    Fix ssh host key checking with no-key-check
    Simplify a bit _GetWantedNodes...
288d9e01 02/18/2010 02:22 pm Michael Hanselmann

Merge branch 'stable-2.1' into devel-2.1

  • stable-2.1:
    Fix ssh host key checking with no-key-check
82869978 02/18/2010 02:21 pm Michael Hanselmann

Reset tempfile module after fork where useful

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

eb58f7bd 02/18/2010 02:21 pm Michael Hanselmann

Move RunInSeparateProcess to ganeti.utils

This function could be useful in other places and this
way we can easily unittest it.

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

055f822b 02/18/2010 02:21 pm Michael Hanselmann

Add function to reset tempfile module after fork

On fork, the tempfile module's pseudo random generator is
not reset. If several processes (e.g. two children or parent
and child) try to create a temporary file, they'll conflict.
This function can be used to reset the name generator which...

e66d9f1a 02/18/2010 12:27 pm Iustin Pop

Fix ssh host key checking with no-key-check

In case we add a node with “--no-ssh-key-check”, this should override
any default yes/ask values in the system-wide (or user) ssh key check.

Currently this only works in batch mode, whereas in non-batch we only...

View revisions

Also available in: Atom