Statistics
| Branch: | Tag: | Revision:

root / lib @ 80b207df

Name Size
  build
  client
  confd
  http
  hypervisor
  impexpd
  masterd
  rapi
  server
  tools
  utils
  watcher
__init__.py 820 Bytes
asyncnotifier.py 6 kB
backend.py 112.8 kB
bdev.py 86.6 kB
bootstrap.py 33.2 kB
cache.py 5.4 kB
cli.py 115.5 kB
cmdlib.py 545.7 kB
compat.py 3.9 kB
config.py 74.6 kB
constants.py 55.5 kB
daemon.py 26.7 kB
errors.py 10.6 kB
ht.py 9.7 kB
jqueue.py 74.8 kB
jstore.py 4.6 kB
locking.py 55.6 kB
luxi.py 16 kB
mcpu.py 23.5 kB
netutils.py 18.2 kB
objects.py 57.9 kB
opcodes.py 58.6 kB
ovf.py 63 kB
qlang.py 9.3 kB
query.py 71.8 kB
rpc.py 24.2 kB
rpc_defs.py 21.2 kB
runtime.py 6.3 kB
serializer.py 4 kB
ssconf.py 15.6 kB
ssh.py 8.6 kB
storage.py 13.2 kB
uidpool.py 11.8 kB
workerpool.py 14.3 kB

Latest revisions

# Date Author Comment
80b207df 12/13/2012 05:36 pm Iustin Pop

Stop verifying opcode results in dry_run mode

Commit 1ce03fb1 (“Add ht-based result checks to opcodes”) introduced
infrastructure for checking opcode results, and subsequent commits
improved the list of opcodes which do declare a result, however this
was not tested for dry-run mode operation....

8e8092cc 12/12/2012 03:21 pm Michael Hanselmann

Fix TypeError when unsetting OS parameters

When all OS parameters should be unset (“gnt-os modify -H -xen-pvm
foo”), a TypeError was raised. This fixes issue 311.

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

12f647fb 11/22/2012 03:13 pm Guido Trotter

cmdlib.py: don't use GetHypervisor

In cmdlib we must only use the hypervisor class, and never instantiate
it. As such we have to call GetHypervisorClass instead, to avoid
getting an instance of it.

This fixes Issue 316, because init is not called from masterd...

70296981 11/19/2012 03:17 pm Iustin Pop

Fix opcode validation for OpOobCommand.command

The 'command' attribute of the OpOobCommand command is defined with a
default value of None, but its validation requires a member of
constants.OOB_COMMANDS, which doesn't accept None. This result in the
following error when submitting an opcode without the command:...

4041a4e3 11/12/2012 03:14 pm Iustin Pop

Improve error message when migration status fail

Commit 6a1434d7 (“Make migration RPC non-blocking”) changed the API
for reporting migration status, but has a small cosmetic bug: if the
migration status if failure, but the RPC itself to get the status
didn't fail, it shows the following error message:...

62457f51 11/12/2012 03:13 pm Iustin Pop

Fix type error in kvm/GetMigrationStatus

Commit 6a1434d7 (“Make migration RPC non-blocking”) changed from
raising HypervisorErrors to returning MigrationStatus
objects. However, these objects don't have an "info" attribute, so
they can't pass a reason back (which is in itself a bug); but the KVM...

e080072c 11/08/2012 03:53 pm Michael Hanselmann

http/__init__.py: Remove extraneous argument

pylint complained, I fixed it, and unfortunately pushed too early.

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

1b8e72f3 11/08/2012 03:20 pm Michael Hanselmann

rapi.testutils: Add utility to format HTTP headers

Once again this will be used by forthcoming RAPI test.

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

0351944b 11/08/2012 03:20 pm Michael Hanselmann

rapi.testutils: Return headers from mock utility

A newly added test for RAPI will also verify the returned headers. A
test in ganeti.rapi.client_unittest.py is split into smaller stand-alone
tests.

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

0e632cbd 11/08/2012 03:19 pm Michael Hanselmann

http: Add wrapper for mimetools.Message

A newly added piece of code will also have to parse headers, so having
this wrapper saves us from copying this part of code.

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

View revisions

Also available in: Atom