Module image
[hide private]
[frames] | no frames]

Module image

source code

Functions [hide private]
 
_download_file(target_filename, server_url, proxy_settings)
Download file from a URL to given filename using given proxy settings.
source code
 
_connect_to_hypervisor()
Connect to the hypervisor.
source code
 
_file_exists(name) source code
 
_domain_exists(dom, connection) source code
 
_generate_xml(params)
Populate the variables in the XML template file.
source code
 
deploy(params, extra_params="", cache_only=None)
Download and start a new image.
source code
Variables [hide private]
  log = up2dateLog.initLog()
  config = ConfigParser.ConfigParser({"IMAGE_BASE_PATH": "/var/l...
  IMAGE_BASE_PATH = config.get("global", "IMAGE_BASE_PATH")
  IMAGE_CFG_TEMPLATE = config.get("global", "IMAGE_CFG_TEMPLATE")
  PRE_SCRIPT = config.get("global", "PRE_SCRIPT")
  __rhnexport__ = ['deploy']
Variables Details [hide private]

config

Value:
ConfigParser.ConfigParser({"IMAGE_BASE_PATH": "/var/lib/libvirt/images\
/", "IMAGE_CFG_TEMPLATE": "/etc/sysconfig/rhn/kvm-template.xml", "PRE_\
SCRIPT": "",})