The nova.virt.vmwareapi.host Module

Management class for host-related functions (start, reboot, etc).

class Host(session)

Bases: object

Implements host related operations.

host_maintenance_mode(host, mode)

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

host_power_action(host, action)

Reboots or shuts down the host.

set_host_enabled(_host, enabled)

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

class HostState(session, host_name)

Bases: object

Manages information about the ESX host this compute node is running on.

get_host_stats(refresh=False)

Return the current state of the host. If ‘refresh’ is True, run the update first.

update_status()

Update the current state of the host.

class VCState(session, host_name, cluster)

Bases: object

Manages information about the VC host this compute node is running on.

get_host_stats(refresh=False)

Return the current state of the host. If ‘refresh’ is True, run the update first.

update_status()

Update the current state of the host.

Previous topic

The nova.virt.vmwareapi.fake Module

Next topic

The nova.virt.vmwareapi.io_util Module

This Page