Statistics
| Branch: | Tag: | Revision:

root / lib @ 83f54caa

Name Size
  build
  client
  cmdlib
  confd
  http
  hypervisor
  impexpd
  masterd
  rapi
  rpc
  server
  storage
  tools
  utils
  watcher
__init__.py 1.2 kB
_constants.py.in 285 Bytes
asyncnotifier.py 6.1 kB
backend.py 148.8 kB
bootstrap.py 42.6 kB
cli.py 142.6 kB
compat.py 4.3 kB
config.py 96.8 kB
constants.py 2.9 kB
daemon.py 28.1 kB
errors.py 10.9 kB
hooksmaster.py 10 kB
ht.py 17.5 kB
jqueue.py 76 kB
jstore.py 6.1 kB
locking.py 60.9 kB
luxi.py 8.1 kB
mcpu.py 18.3 kB
netutils.py 19.7 kB
network.py 7.7 kB
objects.py 71.9 kB
opcodes.py.in_after 391 Bytes
opcodes.py.in_before 7.2 kB
opcodes_base.py 7.8 kB
outils.py 4.5 kB
ovf.py 66 kB
pathutils.py 6.3 kB
qlang.py 9.5 kB
query.py 86.3 kB
rpc_defs.py 27 kB
runtime.py 8 kB
serializer.py 10.7 kB
ssconf.py 13.5 kB
ssh.py 10.7 kB
uidpool.py 11.7 kB
vcluster.py 7.7 kB
wconfd.py 1.4 kB
workerpool.py 18.3 kB

Latest revisions

# Date Author Comment
83f54caa 03/11/2014 05:09 pm Jose A. Lopes

Instance reinstall with OS images

This patch allows instances to be reinstalled using OS images:
  • extract OS scripts installation to a separate method
  • add a new method to handle OS image installation
  • refactor 'LUInstanceReinstall.Exec'

Signed-off-by: Jose A. Lopes <>...

1c4910f7 03/11/2014 05:09 pm Jose A. Lopes

OS images in 'LUInstanceCreate' and OS scripts optional

  • Use the empty string in 'ganeti.objects.Instance.os' to signify that
    the instance does not use OS scripts.
  • Make several calls related to OS scripts first test whether OS
    scripts are being used....
2329ffdd 03/11/2014 05:09 pm Jose A. Lopes

Instance create with OS image

Extend 'LUInstanceCreate' to image the instance's first disk if an OS
image is specified via the OS params. If the OS image is a file, it
will be copied to the node via SSH. If ths OS image is a URL, it will
be passed directly to the node, which will then download the file....

7bc4d6ac 03/11/2014 05:09 pm Jose A. Lopes

Function to check if the OS image parameter is valid

Add helper function to check if the OS image parameter contained in
the OS parameters of an opcode is valid.

Signed-off-by: Jose A. Lopes <>
Reviewed-by: Hrvoje Ribicic <>

0247d20f 03/11/2014 05:09 pm Jose A. Lopes

Function to image disks while ensuring that disks are paused

  • Add 'ImageDisks' that actually calls the 'blockdev_image' RPC in a
    context where disk sync is paused.
  • Add 'ImageOrCleanupDisks' which is just a wrapper around the
    previous function that cleans up if an exception occurs....
987ec378 03/11/2014 05:09 pm Jose A. Lopes

Function to remove instance if disks are degraded

  • Extract code, into '_RemoveDegradedDisks', that checks if the disks
    of an instance are degraded and, if so, remove the instance.
  • Add a nice comment

Signed-off-by: Jose A. Lopes <>...

a303027b 03/11/2014 05:09 pm Jose A. Lopes

RPC 'blockdev_image' to image devices

Add RPC 'blockdev_image' that uses 'ganeti.backend.BlockdevImage' to
dump an image to an instance's disk device, optionally downloading
that image.

Signed-off-by: Jose A. Lopes <>
Reviewed-by: Hrvoje Ribicic <>

2b8322f7 03/11/2014 05:09 pm Jose A. Lopes

Helper function to image a device by downloading or dumping

Add 'BlockdevImage' which downloads a file and dumps it to an
instance's disk if the path is a URL, otherwise it dumps the file
directly to the instance's disk.

Signed-off-by: Jose A. Lopes <>...

c89622cd 03/11/2014 05:09 pm Jose A. Lopes

Helper function that downloads an image and dumps it to disk

  • Add constant that holds the curl binary.
  • Add '_DownloadAndDumpDevice' which downloads a file (e.g., OS image)
    through curl and dumps it to a disk device (e.g., an instance disk).

Signed-off-by: Jose A. Lopes <>...

229fb4ea 03/11/2014 05:09 pm Jose A. Lopes

Generalize 'WipeDevice' to 'DumpDevice'

  • Fix order of imports
  • Generalize 'WipeDevice' to 'DumpDevice' which takes an additional
    argument which is the data source. This will allow this function to
    be reused for both wiping and imaging disks in a future patch....

View revisions

Also available in: Atom