l.c.d.c.CloudSigmaBaseNodeDriver(NodeDriver) : class documentation

Part of libcloud.compute.drivers.cloudsigma View Source View In Hierarchy

Known subclasses: libcloud.compute.drivers.cloudsigma.CloudSigmaLvsNodeDriver, libcloud.compute.drivers.cloudsigma.CloudSigmaZrhNodeDriver

No class docstring
Method reboot_node Reboot a node.
Method destroy_node Destroy a node (all the drives associated with it are NOT destroyed).
Method list_images Return a list of available standard images (this call might take up to 15 seconds to return).
Method list_sizes List sizes on a provider
Method list_nodes List all nodes @return: list of node objects @rtype: C{list} of L{Node}
Method create_node Creates a CloudSigma instance
Method ex_destroy_node_and_drives Destroy a node and all the drives associated with it.
Method ex_static_ip_list Return a list of available static IP addresses.
Method ex_drives_list Return a list of all the available drives.
Method ex_static_ip_create Create a new static IP address.p
Method ex_static_ip_destroy Destroy a static IP address.
Method ex_drive_destroy Destroy a drive with a specified uuid. If the drive is currently mounted an exception is thrown.
Method ex_set_node_configuration Update a node configuration. Changing most of the parameters requires node to be stopped.
Method ex_start_node Start a node.
Method ex_stop_node Stop (shutdown) a node.
Method ex_shutdown_node Stop (shutdown) a node.
Method ex_destroy_drive Destroy a drive.
Method _to_node Undocumented
Method _get_node Undocumented
Method _get_node_info Undocumented

Inherited from NodeDriver:

Method __init__ @requires: key, secret
Method list_locations List data centers for a provider
Method deploy_node Create a new node, and start deployment.
Method create_volume Create a new volume.
Method destroy_volume Destroys a storage volume.
Method attach_volume Attaches volume to node.
Method detach_volume Detaches a volume from a node.
Method _wait_until_running Block until node is fully booted and has an IP address assigned.
Method _ssh_client_connect Try to connect to the remote SSH server. If a connection times out or is refused it is retried up to timeout number of seconds.
Method _run_deployment_script Run the deployment script on the provided node. At this point it is assumed that SSH connection has already been established.
Method _get_size_price Undocumented

Inherited from BaseDriver (via NodeDriver):

Method _ex_connection_class_kwargs Return extra connection keyword arguments which are passed to the Connection class constructor.
def reboot_node(self, node): (source)
Reboot a node.

Because Cloudsigma API does not provide native reboot call,
it's emulated using stop and start.

@inherits: L{NodeDriver.reboot_node}
def destroy_node(self, node): (source)
Destroy a node (all the drives associated with it are NOT destroyed).

If a node is still running, it's stopped before it's destroyed.

@inherits: L{NodeDriver.destroy_node}
def list_images(self, location=None): (source)
Return a list of available standard images (this call might take up
to 15 seconds to return).

@inherits: L{NodeDriver.list_images}
def list_sizes(self, location=None): (source)
List sizes on a provider

@keyword location: The location at which to list sizes
@type location: L{NodeLocation}

@return: list of node size objects
@rtype: C{list} of L{NodeSize}
def list_nodes(self): (source)
List all nodes
@return:  list of node objects
@rtype: C{list} of L{Node}
def create_node(self, **kwargs): (source)
Creates a CloudSigma instance

@inherits: L{NodeDriver.create_node}

@keyword    name: String with a name for this new node (required)
@type       name: C{str}

@keyword    smp: Number of virtual processors or None to calculate
based on the cpu speed
@type       smp: C{int}

@keyword    nic_model: e1000, rtl8139 or virtio (is not specified,
e1000 is used)
@type       nic_model: C{str}

@keyword    vnc_password: If not set, VNC access is disabled.
@type       vnc_password: C{bool}

@keyword    drive_type: Drive type (ssd|hdd). Defaults to hdd.
@type       drive_type: C{str}
def ex_destroy_node_and_drives(self, node): (source)
Destroy a node and all the drives associated with it.

@param      node: Node which should be used
@type       node: L{Node}

@rtype: C{bool}
def ex_static_ip_list(self): (source)
Return a list of available static IP addresses.

@rtype: C{list} of C{str}
def ex_drives_list(self): (source)
Return a list of all the available drives.

@rtype: C{list} of C{dict}
def ex_static_ip_create(self): (source)
Create a new static IP address.p

@rtype: C{list} of C{dict}
def ex_static_ip_destroy(self, ip_address): (source)
Destroy a static IP address.

@param      ip_address: IP address which should be used
@type       ip_address: C{str}

@rtype: C{bool}
def ex_drive_destroy(self, drive_uuid): (source)
Destroy a drive with a specified uuid.
If the drive is currently mounted an exception is thrown.

@param      drive_uuid: Drive uuid which should be used
@type       drive_uuid: C{str}

@rtype: C{bool}
def ex_set_node_configuration(self, node, **kwargs): (source)
Update a node configuration.
Changing most of the parameters requires node to be stopped.

@param      node: Node which should be used
@type       node: L{Node}

@param      kwargs: keyword arguments
@type       kwargs: C{dict}

@rtype: C{bool}
def ex_start_node(self, node): (source)
Start a node.

@param      node: Node which should be used
@type       node: L{Node}

@rtype: C{bool}
def ex_stop_node(self, node): (source)
Stop (shutdown) a node.

@param      node: Node which should be used
@type       node: L{Node}

@rtype: C{bool}
def ex_shutdown_node(self, node): (source)
Stop (shutdown) a node.

@inherits: L{CloudSigmaBaseNodeDriver.ex_stop_node}
def ex_destroy_drive(self, drive_uuid): (source)
Destroy a drive.

@param      drive_uuid: Drive uuid which should be used
@type       drive_uuid: C{str}

@rtype: C{bool}
def _to_node(self, data): (source)
Undocumented
def _get_node(self, node_id): (source)
Undocumented
def _get_node_info(self, node): (source)
Undocumented
API Documentation for libcloud, generated by pydoctor at 2012-11-19 11:53:43.