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

Script cfgupgrade

Tool to upgrade the configuration file.

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

Classes [hide private]
  Error
Generic exception
Functions [hide private]
 
SetupLogging()
Configures the logging module.
 
CheckHostname(path)
Ensures hostname matches ssconf value.
 
UpgradeNetworks(config_data)
 
UpgradeGroups(config_data)
 
UpgradeInstances(config_data)
 
main()
Main program.
Variables [hide private]
  options = None
  args = None
  TARGET_MAJOR = 2
Target major version we will upgrade to
  TARGET_MINOR = 7
Target minor version we will upgrade to

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


Function Details [hide private]

CheckHostname(path)

 

Ensures hostname matches ssconf value.

Parameters:
  • path - Path to ssconf file