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) |
|
|
|
|
|
|
|
ChangeDiskDevType(disk,
dev_type_map)
Replaces disk's dev_type attributes according to the given map. |
|
|
|
UpgradeDiskDevType(disk)
Upgrades the disks' device type. |
|
|
|
UpgradeInstances(config_data)
Upgrades the instances' configuration. |
|
|
|
|
|
|
|
UpgradeFileStoragePaths(config_data) |
|
|
|
GetNewNodeIndex(nodes_by_old_key,
old_key,
new_key_field) |
|
|
|
ChangeNodeIndices(config_data,
old_key_field,
new_key_field) |
|
|
|
ChangeInstanceIndices(config_data,
old_key_field,
new_key_field) |
|
|
|
UpgradeNodeIndices(config_data) |
|
|
|
UpgradeInstanceIndices(config_data) |
|
|
|
|
|
DowngradeNDParams(ndparams) |
|
|
|
DowngradeNicParams(nicparams) |
|
|
|
DowngradeHVParams(hvparams) |
|
|
|
DowngradeCluster(config_data) |
|
|
|
DowngradeNodeGroups(config_data) |
|
|
|
DowngradeNodes(config_data) |
|
|
|
DowngradeInstances(config_data) |
|
|
|
DowngradeAll(config_data) |
|
|
|
|