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.
 
main()
Main program.
Variables [hide private]
  options = None
  args = None
  INST_HV_CHG = {'hvm_pae': constants.HV_PAE, 'vnc_bind_address'...
  INST_BE_CHG = {'vcpus': constants.BE_VCPUS, 'memory': constant...
  F_SERIAL = 'serial_no'

Imports: os, sys, optparse, logging, constants, serializer, utils, cli, bootstrap, config


Variables Details [hide private]

INST_HV_CHG

Value:
{'hvm_pae': constants.HV_PAE, 'vnc_bind_address': constants.HV_VNC_BIN\
D_ADDRESS, 'initrd_path': constants.HV_INITRD_PATH, 'hvm_nic_type': co\
nstants.HV_NIC_TYPE, 'kernel_path': constants.HV_KERNEL_PATH, 'hvm_acp\
i': constants.HV_ACPI, 'hvm_cdrom_image_path': constants.HV_CDROM_IMAG\
E_PATH, 'hvm_boot_order': constants.HV_BOOT_ORDER, 'hvm_disk_type': co\
nstants.HV_DISK_TYPE,}

INST_BE_CHG

Value:
{'vcpus': constants.BE_VCPUS, 'memory': constants.BE_MEMORY, 'auto_bal\
ance': constants.BE_AUTO_BALANCE,}