Previous topic

The nova.virt.vmwareapi.vmware_images Module

Next topic

The nova.virt.xenapi.fake Module

This Page

Psst... hey. You're reading the latest content, but it might be out of sync with code. You can read Nova 2011.2 docs or all OpenStack docs too.

The nova.virt.vmwareapi_conn Module

A connection to the VMware ESX platform.

Related Flags

vmwareapi_host_ip:
 IPAddress of VMware ESX server.
vmwareapi_host_username:
 Username for connection to VMware ESX Server.
vmwareapi_host_password:
 Password for connection to VMware ESX Server.
vmwareapi_task_poll_interval:
 The interval (seconds) used for polling of remote tasks (default: 1.0).
vmwareapi_api_retry_count:
 The API retry count in case of failure such as network failures (socket errors etc.) (default: 10).
exception Failure(details)

Bases: exceptions.Exception

Base Exception class for handling task failures.

class VMWareAPISession(host_ip, host_username, host_password, api_retry_count, scheme='https')

Bases: object

Sets up a session with the ESX host and handles all the calls made to the host.

class VMWareESXConnection(host_ip, host_username, host_password, api_retry_count, scheme='https')

Bases: nova.virt.driver.ComputeDriver

The ESX host connection object.

attach_volume(connection_info, instance_name, mountpoint)

Attach volume storage to VM instance.

destroy(instance, network_info, block_device_info=None)

Destroy VM instance.

detach_volume(connection_info, instance_name, mountpoint)

Detach volume storage to VM instance.

get_console_output(instance)

Return snapshot of console.

get_console_pool_info(console_type)

Get info about the host on which the VM resides.

get_diagnostics(instance)

Return data about VM diagnostics.

get_info(instance)

Return info about the VM instance.

get_volume_connector(_instance)

Return volume connector information

host_maintenance_mode(host, mode)

Start/Stop host maintenance window. On start, it triggers guest VMs evacuation.

host_power_action(host, action)

Reboots, shuts down or powers up the host.

init_host(host)

Do the initialization that needs to be done.

list_instances()

List VM instances.

pause(instance)

Pause VM instance.

plug_vifs(instance, network_info)

Plug VIFs into networks.

reboot(instance, network_info, reboot_type, block_device_info=None)

Reboot VM instance.

resume(instance)

Resume the suspended VM instance.

set_host_enabled(host, enabled)

Sets the specified host’s ability to accept new instances.

snapshot(context, instance, name)

Create snapshot from a running VM instance.

spawn(context, instance, image_meta, network_info, block_device_mapping=None)

Create VM instance.

suspend(instance)

Suspend the specified instance.

unpause(instance)

Unpause paused VM instance.

unplug_vifs(instance, network_info)

Unplug VIFs from networks.

update_available_resource(ctxt, host)

This method is supported only by libvirt.

get_connection(_read_only)

Sets up the ESX host connection.