The nova.virt.powervm.driver Module

class PowerVMDriver

Bases: nova.virt.driver.ComputeDriver

PowerVM Implementation of Compute Driver.

destroy(instance, network_info, block_device_info=None)

Destroy (shutdown and delete) the specified instance.

get_available_resource()

Retrieve resource info.

get_host_ip_addr()

Retrieves the IP address of the dom0

get_host_stats(refresh=False)

Return currently known host stats

get_info(instance)

Get the current status of an instance.

get_num_instances()
host_power_action(host, action)

Reboots, shuts down or powers up the host.

host_state
init_host(host)

Initialize anything that is necessary for the driver to function, including catching up with currently running VM’s on the given host.

instance_exists(instance_name)
legacy_nwinfo()

Indicate if the driver requires the legacy network_info format.

list_instances()
manage_image_cache(context)

Manage the driver’s local image cache.

Some drivers chose to cache images for instances on disk. This method is an opportunity to do management of that cache which isn’t directly related to other calls into the driver. The prime example is to clean the cache and remove images which are no longer of interest.

pause(instance)

Pause the specified instance.

plug_vifs(instance, network_info)
power_off(instance)

Power off the specified instance.

power_on(instance)

Power on the specified instance

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

Reboot the specified instance.

Parameters:
  • instance – Instance object as returned by DB layer.
  • network_infoget_instance_nw_info()
  • reboot_type – Either a HARD or SOFT reboot
resume(instance)

resume the specified instance

spawn(context, instance, image_meta, injected_files, admin_password, network_info=None, block_device_info=None)

Create a new instance/VM/domain on powerVM.

suspend(instance)

suspend the specified instance

unpause(instance)

Unpause paused VM instance

Previous topic

The nova.virt.powervm.constants Module

Next topic

The nova.virt.powervm.exception Module

This Page