Statistics
| Branch: | Tag: | Revision:

root / lib @ 8c5acc2e

Name Size
  build
  client
  confd
  http
  hypervisor
  impexpd
  masterd
  rapi
  server
  utils
  watcher
__init__.py 820 Bytes
asyncnotifier.py 6 kB
backend.py 105.3 kB
bdev.py 70.5 kB
bootstrap.py 28.7 kB
cli.py 98 kB
cmdlib.py 433.3 kB
compat.py 3.7 kB
config.py 72.9 kB
constants.py 35 kB
daemon.py 23.5 kB
errors.py 9.6 kB
ht.py 4 kB
ippool.py 5.1 kB
jqueue.py 58.5 kB
jstore.py 3.7 kB
locking.py 48.8 kB
luxi.py 15.9 kB
mcpu.py 16.3 kB
netutils.py 13.6 kB
network.py 5.5 kB
objects.py 44 kB
opcodes.py 37.6 kB
qlang.py 2.6 kB
query.py 38.7 kB
rpc.py 46.7 kB
runtime.py 3.3 kB
serializer.py 4.5 kB
ssconf.py 15.4 kB
ssh.py 8.6 kB
storage.py 12.7 kB
uidpool.py 11.8 kB
workerpool.py 13.3 kB

Latest revisions

# Date Author Comment
8c5acc2e 07/18/2011 04:31 pm Apollon Oikonomopoulos

rlib2: handle wait_for_sync in instance creation

Until now, wait_for_sync was harcoded to True when creating instances via RAPI.
We allow settings wait_for_sync via RAPI and have rlib2 honour this decision.

Note: this is not needed in the upcoming 2.5, as Opcode parameters are not...

1f8194b3 07/12/2011 01:50 pm Apollon Oikonomopoulos

KVM: strip boot=on from IDE CDROM drivers

boot=on forces KVM to use an extboot ROM which has shown poor behaviour with
booting from CD images. IDE CDROM emulation (which is forced by default when
booting from CD) does not need boot=on, so we simply omit it....

7056a05b 07/01/2011 02:47 pm Apollon Oikonomopoulos

RAPI: handle tags during instance creation

Add tag handling to _ParseInstanceCreateRequestVersion1.

Signed-off-by: Apollon Oikonomopoulos <>

c33472b5 06/22/2011 02:17 pm Michael Hanselmann

Fix issue with tags on instance creation

Commit 720f56c85a added the ability to specify tags when creating an
instance. The “tags” attribute of an instance object needs to be a set,
but the patch's code saved it as a list, causing breakage in other parts...

cd0e63d6 06/22/2011 02:12 pm Apollon Oikonomopoulos

Network query: handle default NIC link value

When asked to return statistics about a network usage by instances, we didn't
properly handle the link=None case. This patch fixes the behaviour by fallink
back to the cluster default link.

Signed-off-by: Apollon Oikonomopoulos <>

aca8d56e 06/22/2011 02:12 pm Apollon Oikonomopoulos

Export instance tags to instance hooks

Instance hooks now get an INSTANCE_TAGS environment variable, which contains a
space-delimited list of the affected instance's tags.

Also update the documentation to reflect the change.

Signed-off-by: Apollon Oikonomopoulos <>

dd7ea762 06/22/2011 02:12 pm Apollon Oikonomopoulos

TemporaryReservationManager: decrement retry counter

The retry counter used in TemporaryReservationManager.Generate() was not
decremented for each failed retry, as presumably intended. This patch
decrements the retry counter after each failed attempt.

Signed-off-by: Apollon Oikonomopoulos <>

2cb80e1d 06/22/2011 02:12 pm Apollon Oikonomopoulos

Handle StopIteration in free IP generation

Catch the StopIteration exception and return None to the temporary_ips
reservation manager, so that it fails at the 64-attempt boundary.

Signed-off-by: Apollon Oikonomopoulos <>

e8f80e7d 06/22/2011 02:12 pm Apollon Oikonomopoulos

Handle address pool exhaustion properly in cmdlib

We catch the ConfigurationError raised by ConfigWriter.GenerateIp() in
LUInstanceCreate and LUInstanceSetParams, so that we can raise an OpPrereq
exception and better inform the user about the error.

Signed-off-by: Apollon Oikonomopoulos <>

246f300d 06/22/2011 02:12 pm Apollon Oikonomopoulos

gnt-network info: include external reservations

Also include the list of externally reserved IP addresses in an address pool in
the output of gnt-network info <network_name>.

Signed-off-by: Apollon Oikonomopoulos <>

View revisions

Also available in: Atom