Package ganeti :: Package tools :: Module cfgupgrade
[hide private]
[frames] | no frames]

Module cfgupgrade

source code

Library of the tools/cfgupgrade utility.

This code handles only the types supported by simplejson. As an example, 'set' is a 'list'.

Classes [hide private]
  Error
Generic exception
  CfgUpgrade
Functions [hide private]
 
ParseOptions(args=None) source code
 
OrFail(description=None)
Make failure non-fatal and improve reporting.
source code
Variables [hide private]
  TARGET_MAJOR = 2
Target major version we will upgrade to
  TARGET_MINOR = 16
Target minor version we will upgrade to
  DOWNGRADE_MAJOR = 2
Target major version for downgrade
  DOWNGRADE_MINOR = 15
Target minor version for downgrade
  DEV_TYPE_OLD_NEW = {"lvm": constants.DT_PLAIN, "drbd8": consta...
  DEV_TYPE_NEW_OLD = dict((v, k) for k, v in DEV_TYPE_OLD_NEW.it...

Imports: copy, os, sys, logging, optparse, time, functools, StringIO, cli, constants, serializer, utils, bootstrap, config, pathutils, netutils, version


Variables Details [hide private]

DEV_TYPE_OLD_NEW

Value:
{"lvm": constants.DT_PLAIN, "drbd8": constants.DT_DRBD8}

DEV_TYPE_NEW_OLD

Value:
dict((v, k) for k, v in DEV_TYPE_OLD_NEW.items())