Trees | Indices | Help |
|
---|
|
Converter tools between ovf and ganeti config file
|
|||
OVFReader Reader class for OVF files. |
|||
OVFWriter Writer class for OVF files. |
|||
Converter Converter class for OVF packages. |
|||
OVFImporter Converter from OVF to Ganeti config file. |
|||
ConfigParserWithDefaults This is just a wrapper on SafeConfigParser, that uses default values |
|||
OVFExporter Converter from Ganeti config file to OVF |
|
|||
|
|||
|
|||
|
|
|||
ParseError = None
|
|||
GANETI_SCHEMA = "http://ganeti"
|
|||
OVF_SCHEMA = "http://schemas.dmtf.org/ovf/envelope/1"
|
|||
RASD_SCHEMA = "http://schemas.dmtf.org/wbem/wscim/1/cim-schema
|
|||
VSSD_SCHEMA = "http://schemas.dmtf.org/wbem/wscim/1/cim-schema
|
|||
XML_SCHEMA = "http://www.w3.org/2001/XMLSchema-instance"
|
|||
OVA_EXT = ".ova"
|
|||
OVF_EXT = ".ovf"
|
|||
MF_EXT = ".mf"
|
|||
CERT_EXT = ".cert"
|
|||
COMPRESSION_EXT = ".gz"
|
|||
FILE_EXTENSIONS = [OVF_EXT, MF_EXT, CERT_EXT,]
|
|||
COMPRESSION_TYPE = "gzip"
|
|||
NO_COMPRESSION = [None, "identity"]
|
|||
COMPRESS = "compression"
|
|||
DECOMPRESS = "decompression"
|
|||
ALLOWED_ACTIONS = [COMPRESS, DECOMPRESS]
|
|||
VMDK = "vmdk"
|
|||
RAW = "raw"
|
|||
COW = "cow"
|
|||
ALLOWED_FORMATS = [RAW, COW, VMDK]
|
|||
RASD_TYPE = {"vcpus": "3", "memory": "4", "scsi-controller": "
|
|||
SCSI_SUBTYPE = "lsilogic"
|
|||
VS_TYPE = {"ganeti": "ganeti-ovf", "external": "vmx-04",}
|
|||
ALLOCATION_UNITS = {"b": ["bytes", "b"], "kb": ["kilobytes", "
|
|||
CONVERT_UNITS_TO_MB = {"b": lambda x: x/(1024* 1024), "kb": la
|
|||
NAME = "name"
|
|||
OS = "os"
|
|||
HYPERV = "hypervisor"
|
|||
VCPUS = "vcpus"
|
|||
MEMORY = "memory"
|
|||
AUTO_BALANCE = "auto_balance"
|
|||
DISK_TEMPLATE = "disk_template"
|
|||
TAGS = "tags"
|
|||
VERSION = "version"
|
|||
INSTANCE_ID = {"system": 0, "vcpus": 1, "memory": 2, "scsi": 3,}
|
|||
DISK_FORMAT = {RAW: "http://en.wikipedia.org/wiki/Byte", VMDK:
|
Imports: ConfigParser, errno, logging, os, re, shutil, tarfile, tempfile, xml, ET, constants, errors, utils, pathutils
|
Make sure that qemu-img is present before performing operations.
|
Create link with a given prefix and suffix. This is a wrapper over os.link. It tries to create a hard link for given file, but instead of rising error when file exists, the function changes the name a little bit.
|
|
RASD_SCHEMA
|
VSSD_SCHEMA
|
RASD_TYPE
|
ALLOCATION_UNITS
|
CONVERT_UNITS_TO_MB
|
DISK_FORMAT
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Dec 30 13:42:34 2015 | http://epydoc.sourceforge.net |