Statistics
| Branch: | Tag: | Revision:

root / lib @ e0bb431e

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.3 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 77.6 kB
workerpool.py 8.9 kB

Latest revisions

# Date Author Comment
e0bb431e 02/22/2010 02:30 pm Michael Hanselmann

Fix lint error in StartDaemon and rename child function

This patch fixes the following pylint error:
W0212:257:StartDaemon: Access to a protected member _exit of a client
class

Additionally, it renames the _RunCmdDaemonChild function to
_StartDaemonChild. _RunCmdDaemonChild was a leftover from a previous...

c1dd99d4 02/22/2010 01:46 pm Michael Hanselmann

Add utility function to start daemon

The currently available functions in this direction (utils.RunCmd and
utils.Daemonize) both can not be used to start an external daemon
process. This function takes many steps to ensure the daemon is started
properly and does careful error checking. Unittests are included....

bdd5e420 02/19/2010 04:54 pm Michael Hanselmann

Use OpenSSL module instead of binary to generate certs

This saves us one dependency and saves us from complicated handling of
external files if we need key and certificate separated from each other.

At the same time, the number of bits used for RSA keys is increased from...

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

View revisions

Also available in: Atom