Script cluster_merge
[hide private]
[frames] | no frames]

Script cluster_merge

Tool to merge two or more clusters together.

The clusters have to run the same version of Ganeti!

Classes [hide private]
  MergerData
Container class to hold data used for merger.
  Merger
Handling the merge.
Functions [hide private]
 
Flatten(unflatten_list)
Flattens a list.
 
SetupLogging(options)
Setting up logging infrastructure.
 
main()
Main routine.
Variables [hide private]
  PAUSE_PERIOD_OPT = cli.cli_option("-p", "--watcher-pause-perio...

Imports: logging, os, optparse, shutil, sys, tempfile, cli, config, constants, errors, ssh, utils


Function Details [hide private]

Flatten(unflatten_list)

 

Flattens a list.

Parameters:
  • unflatten_list - A list of unflatten list objects.
Returns:
A flatten list

SetupLogging(options)

 

Setting up logging infrastructure.

Parameters:
  • options - Parsed command line options

Variables Details [hide private]

PAUSE_PERIOD_OPT

Value:
cli.cli_option("-p", "--watcher-pause-period", default= 1800, action= \
"store", type= "int", dest= "pause_period", help= ("Amount of time in \
seconds watcher" " should be suspended from running"))