Script cfgupgrade
Tool to upgrade the configuration file.
This code handles only the types supported by simplejson. As an
example, 'set' is a 'list'.
|
|
SetupLogging()
Configures the logging module. |
|
|
|
|
|
|
|
| _FillIPolicySpecs(default_ipolicy,
ipolicy) |
|
|
|
|
| UpgradeIPolicy(ipolicy,
default_ipolicy,
isgroup) |
|
|
|
|
| UpgradeNetworks(config_data) |
|
|
|
|
| UpgradeCluster(config_data) |
|
|
|
|
| UpgradeGroups(config_data) |
|
|
|
|
| UpgradeInstances(config_data) |
|
|
|
|
|
|
|
|
|
|
| UpgradeFileStoragePaths(config_data) |
|
|
|
|
|
|
|
| DowngradeIPolicy(ipolicy,
owner) |
|
|
|
|
| DowngradeGroups(config_data) |
|
|
|
|
| DowngradeEnabledTemplates(cluster) |
|
|
|
|
| DowngradeCluster(config_data) |
|
|
|
|
|
|
|
| DowngradeInstances(config_data) |
|
|
|
|
| DowngradeAll(config_data) |
|
|
|
|
|
|
|
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
|
Ensures hostname matches ssconf value.
- Parameters:
path - Path to ssconf file
|