Statistics
| Branch: | Tag: | Revision:

root / lib @ 200e38ac

Name Size
  build
  confd
  http
  hypervisor
  rapi
__init__.py 820 Bytes
asyncnotifier.py 1.9 kB
backend.py 87 kB
bdev.py 61.5 kB
bootstrap.py 20.6 kB
cli.py 57.9 kB
cmdlib.py 309.7 kB
config.py 46.5 kB
constants.py 20.8 kB
daemon.py 10.8 kB
errors.py 8.8 kB
jqueue.py 41.5 kB
jstore.py 3.8 kB
locking.py 39.5 kB
luxi.py 12 kB
mcpu.py 20.1 kB
objects.py 29.6 kB
opcodes.py 19.4 kB
rpc.py 35.1 kB
serializer.py 3.7 kB
ssconf.py 13.5 kB
ssh.py 7.4 kB
storage.py 12.5 kB
utils.py 64.6 kB
workerpool.py 9.1 kB

Latest revisions

# Date Author Comment
200e38ac 01/22/2010 04:17 pm Michael Hanselmann

http.server: Refuse HTTP/1.1 request without Host header

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

c10e2751 01/22/2010 04:17 pm Michael Hanselmann

ganeti-rapi: Remove serial number/ETag code

It was never used as intended.

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

580558a3 01/22/2010 04:17 pm Michael Hanselmann

http: Add two new exceptions, one constant

These will be useful in the future in case we don't enfore JSON encoding
anymore in the http.server module. The HTTP 1.1 RFC recommends error 415
(Unsupported Media Type) to be returned in case the client requests an...

231db3a5 01/22/2010 04:17 pm Michael Hanselmann

Factorize LUXI parsing and handling code

Also fix a typo in http/__init__.py and add unittests
for the LUXI parsing and formatting functions.

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

797506fc 01/22/2010 04:16 pm Michael Hanselmann

Simplify LUXI exceptions

Having only one exception hierarchy makes catching them simpler. Before
ProtocolError would derive directly from Exception, but with this patch
it'll also be in the hierarchy defined by the ganeti.errors module.
Separating encoding and decoding errors is not necessary at this point...

24cd3744 01/04/2010 12:55 pm Iustin Pop

Merge remote branch 'devel-2.1'

  • devel-2.1: (40 commits)
    Fix unused imports or add silences where needed
    bdev: Add a TODO and a pylint silence
    confd: add a TODO and a pylint disable
    pylint: Temporarily disable W0201
    Disable R0922 in pylint
    Further pylint disables, mostly for Unused args...
30e4e741 01/04/2010 11:20 am Iustin Pop

Fix unused imports or add silences where needed

In some cases pylint doesn't parse the import correctly, so we add
silences; but there are also many cases of unused imports, which we
simply remove.

Signed-off-by: Iustin Pop <>
Reviewed-by: Olivier Tharan <>

527a15ac 01/04/2010 11:17 am Iustin Pop

bdev: Add a TODO and a pylint silence

A piece of old code in bdev.py uses a for loop over a single variable
because we can 'break' out of the loop or exit on the 'else' path. This
is not a nice usage of the for loop, it should be converted to a
standard if...elif...else structure....

2d54e29c 01/04/2010 11:17 am Iustin Pop

Further pylint disables, mostly for Unused args

Many of our functions have to follow a given API, and thus we have to
keep a given signature, but pylint doesn't understand this. Therefore,
we silence this warning.

The patch does a few other cleanups.

Signed-off-by: Iustin Pop <>...

857121ad 01/04/2010 11:16 am Iustin Pop

LUDiagnoseOS._DiagnoseByOS: remove unused arg

The node_list argument to _DiagnoseByOS is not used, and is obsoleted by
the fact that the rlist argument already has the valid nodes as keys
(assuming RPC behaviour didn't change). Thus, we remove it and silence...

View revisions

Also available in: Atom