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(unflattened_list)
Flattens a list.
 
SetupLogging(options)
Setting up logging infrastructure.
 
main()
Main routine.
Variables [hide private]
  _GROUPS_MERGE = "merge"
  _GROUPS_RENAME = "rename"
  _CLUSTERMERGE_ECID = "clustermerge-ecid"
  PAUSE_PERIOD_OPT = cli.cli_option("-p", "--watcher-pause-perio...
  GROUPS_OPT = cli.cli_option("--groups", default= None, metavar...

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


Function Details [hide private]

Flatten(unflattened_list)

 

Flattens a list.

Parameters:
  • unflattened_list - A list of unflattened list objects.
Returns:
A flattened 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"))

GROUPS_OPT

Value:
cli.cli_option("--groups", default= None, metavar= "STRATEGY", choices\
= (_GROUPS_MERGE, _GROUPS_RENAME), dest= "groups", help= ("How to hand\
le groups that have the" " same name (One of: %s/%s)" %(_GROUPS_MERGE,\
 _GROUPS_RENAME)))