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. |
|
|
|
|
| _ConvertNicNameToUuid(iobj,
network2uuid) |
|
|
|
|
|
|
|
| _ConvertDiskAndCheckMissingSpindles(iobj,
instance) |
|
|
|
|
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) |
|
|
|
|
UpgradeTopLevelDisks(config_data)
Upgrades the disks as config top level citizens. |
|
|
|
|
|
|
|
| DowngradeNodeParams(config_object) |
|
|
|
|
DowngradeKvmHvParams(params)
Remove hypervisor parameters added in 2.12 |
|
|
|
|
DowngradeClusterHVParams(cluster)
Downgrade newly introduced HV parameters |
|
|
|
|
DowngradeInstanceHVParams(instance)
Downgrade newly introduced HV parameters |
|
|
|
|
| DowngradeCluster(config_data) |
|
|
|
|
| DowngradeGroups(config_data) |
|
|
|
|
| DowngradeNodes(config_data) |
|
|
|
|
| DowngradeInstances(config_data) |
|
|
|
|
DowngradeTopLevelDisks(config_data)
Downgrade the disks from config top level citizens. |
|
|
|
|
| DowngradeAll(config_data) |
|
|
|
|
|
|
|
|
|
|
|
|
|
| _Downgrade(config_major,
config_minor,
config_version,
config_data,
config_revision) |
|
|
|
|
|
|
|
|