Trees | Indices | Help |
|
---|
|
Xen hypervisors
|
|||
_InstanceCrashed Instance has reached a violent ending. |
|||
XenHypervisor Xen generic hypervisor interface |
|||
XenPvmHypervisor Xen PVM hypervisor interface |
|||
XenHvmHypervisor Xen HVM hypervisor interface |
|
|||
|
|||
list |
|
||
|
|||
|
|||
bool |
|
||
|
|||
|
|||
|
|||
hv_base.HvInstanceState |
|
||
|
|||
|
|||
|
|||
dict |
|
||
|
|||
|
|||
|
|||
|
|||
|
|
|||
XEND_CONFIG_FILE = utils.PathJoin(pathutils.XEN_CONFIG_DIR, "x
|
|||
XL_CONFIG_FILE = utils.PathJoin(pathutils.XEN_CONFIG_DIR, "xen
|
|||
VIF_BRIDGE_SCRIPT = utils.PathJoin(pathutils.XEN_CONFIG_DIR, "
|
|||
_DOM0_NAME = "Domain-0"
|
|||
_DISK_LETTERS = string.ascii_lowercase
|
|||
_FILE_DRIVER_MAP = {constants.FD_LOOP: "file", constants.FD_BL
|
Imports: logging, errno, string, shutil, time, StringIO, constants, errors, utils, hv_base, netutils, objects, pathutils
|
Helper function for _GetAllInstanceList to retrieve the list of instances from xen.
|
Parses the output of listing instances by xen.
|
Return the list of instances including running and shutdown. See _RunInstanceList and _ParseInstanceList for parameter details. |
Determine whether an instance is running. An instance is running if it is in the following Xen states: running, blocked, paused, or dying (about to be destroyed / shutdown). For some strange reason, Xen once printed 'rb----' which does not make any sense because an instance cannot be both running and blocked. Fortunately, for Ganeti 'running' or 'blocked' is the same as 'running'. A state of nothing '------' means that the domain is runnable but it is not currently running. That means it is in the queue behind other domains waiting to be scheduled to run. http://old-list-archives.xenproject.org/xen-users/2007-06/msg00849.html A dying instance is about to be removed, but it is still consuming resources, and counts as running.
|
Determine whether the instance is shutdown. An instance is shutdown when a user shuts it down from within, and we do not remove domains to be able to detect that. The dying state has been added as a precaution, as Xen's status reporting is weird. |
Removes information about whether a Xen state is paused from the state. As it turns out, an instance can be reported as paused in almost any condition. Paused instances can be paused, running instances can be paused for scheduling, and any other condition can appear to be paused as a result of races or improbable conditions in Xen's status reporting. As we do not use Xen's pause commands in any way at the time, we can simply ignore the paused field and save ourselves a lot of trouble. Should we ever use the pause commands, several samples would be needed before we could confirm the domain as paused. |
Returns whether an instance is in the crashed Xen state. When a horrible misconfiguration happens to a Xen domain, it can crash, meaning that it encounters a violent ending. While this state usually flashes only temporarily before the domain is restarted, being able to check for it allows Ganeti not to act confused and do something about it. |
Maps Xen states to hypervisor states.
|
Return the list of running instances. See _GetAllInstanceList for parameter details. |
Return the list of shutdown instances. See _GetAllInstanceList for parameter details. |
Return information about the node.
|
Updates node information from _ParseNodeInfo with instance info.
|
Combines _MergeInstanceInfo and _ParseNodeInfo.
|
Get disk directives for Xen config file. This method builds the xen config disk directive according to the given disk_template and block_devices.
|
Add quotes around the CPUID field only if necessary. Xen CPUID fields come in two shapes: LIBXL strings, which need quotes around them, and lists of XEND strings, which don't.
|
Run the network configuration script for a specified NIC See hv_base.ConfigureNIC.
|
|
XEND_CONFIG_FILE
|
XL_CONFIG_FILE
|
VIF_BRIDGE_SCRIPT
|
_FILE_DRIVER_MAP
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Mon Aug 22 11:13:09 2016 | http://epydoc.sourceforge.net |