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_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, network_info=None, block_device_info=None)

Create a new instance/VM/domain on powerVM.

Parameters:
  • context – security context
  • instance – Instance object as returned by DB layer. This function should use the data there to guide the creation of the new instance.
  • image_meta – image object returned by nova.image.glance that defines the image from which to boot this instance
  • network_infoget_instance_nw_info()
  • block_device_info – Information about block devices to be attached to the instance.
suspend(instance)

suspend the specified instance

unpause(instance)

Unpause paused VM instance

update_available_resource(ctxt, host)

Updates compute manager resource info on ComputeNode table.

This method is called when nova-compute launches, and whenever admin executes “nova-manage service update_resource”.

Parameters:
  • ctxt – security context
  • host – hostname that compute manager is currently running

Previous topic

The nova.virt.powervm.constants Module

Next topic

The nova.virt.powervm.exception Module

This Page