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.
 
_FillIPolicySpecs(default_ipolicy, ipolicy)
 
UpgradeIPolicy(ipolicy, default_ipolicy, isgroup)
 
UpgradeNetworks(config_data)
 
UpgradeCluster(config_data)
 
UpgradeGroups(config_data)
 
UpgradeInstances(config_data)
 
UpgradeRapiUsers()
 
UpgradeWatcher()
 
UpgradeFileStoragePaths(config_data)
 
UpgradeAll(config_data)
 
DowngradeIPolicy(ipolicy, owner)
 
DowngradeGroups(config_data)
 
DowngradeEnabledTemplates(cluster)
 
DowngradeCluster(config_data)
 
DowngradeDisk(disk)
 
DowngradeInstances(config_data)
 
DowngradeAll(config_data)
 
main()
Main program.
Variables [hide private]
  options = None
  args = None
  TARGET_MAJOR = 2
Target major version we will upgrade to
  TARGET_MINOR = 8
Target minor version we will upgrade to
  DOWNGRADE_MAJOR = 2
Target major version for downgrade
  DOWNGRADE_MINOR = 7
Target minor version for downgrade

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