Part of libcloud.compute.drivers.opennebula View Source View In Hierarchy
Known subclasses: libcloud.compute.drivers.opennebula.OpenNebula_1_4_NodeDriver, libcloud.compute.drivers.opennebula.OpenNebula_2_0_NodeDriver
Method | __new__ | Undocumented |
Method | create_node | Create a new OpenNebula node. |
Method | destroy_node | Destroy a node. |
Method | list_nodes | List all nodes @return: list of node objects @rtype: list
of Node |
Method | list_images | List images on a provider |
Method | list_sizes | Return list of sizes on a provider. |
Method | list_locations | List data centers for a provider |
Method | ex_list_networks | List virtual networks on a provider. |
Method | ex_node_action | Build action representation and instruct node to commit action. |
Method | _to_images | Request a list of images and convert that list to a list of NodeImage objects. |
Method | _to_image | Take XML object containing an image description and convert to NodeImage object. |
Method | _to_networks | Request a list of networks and convert that list to a list of OpenNebulaNetwork objects. |
Method | _to_network | Take XML object containing a network description and convert to OpenNebulaNetwork object. |
Method | _to_nodes | Request a list of compute nodes and convert that list to a list of Node objects. |
Method | _to_node | Take XML object containing a compute node description and convert to Node object. |
Method | _extract_networks | Extract networks from a compute node XML representation. |
Method | _extract_images | Extract image disks from a compute node XML representation. |
Inherited from NodeDriver:
Method | __init__ | |
Method | reboot_node | Reboot a node. |
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. |
Parameters | networks | List of virtual networks to which this node should connect. (optional) (type: OpenNebulaNetwork
or list of OpenNebulaNetwork ) |
Unknown Field: inherits | NodeDriver.create_node |
Depending upon the provider, this may destroy all data associated with the node, including backups.
Parameters | node | The node to be destroyed (type: Node ) |
Returns | True if the destroy was successful, otherwise False (type: bool ) |
Parameters | location | The location at which to list images (type: NodeLocation ) |
Returns | list of node image objects (type: list of NodeImage ) |
Returns | List of compute node sizes supported by the cloud provider. (type: list of OpenNebulaNodeSize ) | |
Unknown Field: inherits | NodeDriver.list_sizes |
Returns | list of node location objects (type: list of NodeLocation ) |
Parameters | location | Location from which to request a list of virtual networks. (optional) (type: NodeLocation ) |
Returns | List of virtual networks available to be connected to a compute node. (type: list of OpenNebulaNetwork ) |
Build action representation from the compute node ID, and the action which should be carried out on that compute node. Then instruct the node to carry out that action.
Parameters | node | Compute node instance. (type: Node ) |
action | Action to be carried out on the compute node. (type: str ) | |
Returns | False if an HTTP Bad Request is received, else, True is returned. (type: bool ) |
Request a list of images from the OpenNebula web interface, and issue a request to convert each XML object representation of an image to a NodeImage object.
Returns | List of images. (type: list of NodeImage ) |
Request a list of networks from the OpenNebula web interface, and issue a request to convert each XML object representation of a network to an OpenNebulaNetwork object.
Returns | List of virtual networks. (type: list of OpenNebulaNetwork ) |
Take XML representation containing a network description and convert to OpenNebulaNetwork object.
Returns | The newly extracted OpenNebulaNetwork . (type: OpenNebulaNetwork ) |
Request a list of compute nodes from the OpenNebula web interface, and issue a request to convert each XML object representation of a node to a Node object.
Returns | A list of compute nodes. (type: list of Node ) |
Extract network descriptions from a compute node XML representation, converting each network to an OpenNebulaNetwork object.
Parameters | compute | XML representation of a compute node. (type: ElementTree ) |
Returns | List of virtual networks attached to the compute node. (type: list of OpenNebulaNetwork s.) |
Extract image disk descriptions from a compute node XML representation, converting the disks to an NodeImage object.
Parameters | compute | XML representation of a compute node. (type: ElementTree ) |
Returns | First disk attached to a compute node. (type: NodeImage .) |