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) |
|
|
|
UpgradeFilters(config_data) |
|
|
|
UpgradeTopLevelDisks(config_data)
Upgrades the disks as config top level citizens. |
|
|
|
|
|
DowngradeExtAccess(config_data) |
|
|
|
DowngradeDataCollectors(config_data) |
|
|
|
DowngradeFilters(config_data) |
|
|
|
DowngradeLxcParams(hvparams) |
|
|
|
DowngradeAllLxcParams(config_data) |
|
|
|
DowngradeAll(config_data) |
|
|
|
|
|
|
|
|
|
_Downgrade(config_major,
config_minor,
config_version,
config_data,
config_revision) |
|
|
|
|
|
|