l.c.d.e.ECPNodeDriver(NodeDriver) : class documentation

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

Enomaly ECP node driver
Method list_nodes Returns a list of all running Nodes
Method reboot_node Shuts down a VM and then starts it again.
Method destroy_node Shuts down and deletes a VM.
Method list_images Returns a list of all package templates aka appiances aka images.
Method list_sizes Returns a list of all hardware templates
Method list_locations This feature does not exist in ECP. Returns hard coded dummy location.
Method create_node Creates a virtual machine.
Method _to_node Turns a (json) dictionary into a Node object. This returns only running VMs.

Inherited from NodeDriver:

Method __init__ @param key: API key or username to be used (required) @type key: C{str}
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 the given nodes are fully booted and have an IP address assigned.
Method _wait_until_running Undocumented
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 _connect_and_run_deployment_script Undocumented
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 list_nodes(self): (source)
Returns a list of all running Nodes

@rtype: C{list} of L{Node}
def _to_node(self, vm): (source)
Turns a (json) dictionary into a Node object.
This returns only running VMs.
def reboot_node(self, node): (source)
Shuts down a VM and then starts it again.

@inherits: L{NodeDriver.reboot_node}
def destroy_node(self, node): (source)
Shuts down and deletes a VM.

@inherits: L{NodeDriver.destroy_node}
def list_images(self, location=None): (source)
Returns a list of all package templates aka appiances aka images.

@inherits: L{NodeDriver.list_images}
def list_sizes(self, location=None): (source)
Returns a list of all hardware templates

@inherits: L{NodeDriver.list_sizes}
def list_locations(self): (source)
This feature does not exist in ECP. Returns hard coded dummy location.

@rtype: C{list} of L{NodeLocation}
def create_node(self, **kwargs): (source)
Creates a virtual machine.

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

@keyword    size:   The size of resources allocated to this node .
                    (required)
@type       size:   L{NodeSize}

@keyword    image:  OS Image to boot on node. (required)
@type       image:  L{NodeImage}

@rtype: L{Node}
API Documentation for libcloud, generated by pydoctor at 2013-09-18 15:42:48.