A driver for XenServer or Xen Cloud Platform.
Related Flags
xenapi_connection_url: | |
---|---|
URL for connection to XenServer/Xen Cloud Platform. | |
xenapi_connection_username: | |
Username for connection to XenServer/Xen Cloud Platform (default: root). | |
xenapi_connection_password: | |
Password for connection to XenServer/Xen Cloud Platform. | |
target_host: | the iSCSI Target Host IP address, i.e. the IP address for the nova-volume host |
target_port: | iSCSI Target Port, 3260 Default |
iqn_prefix: | IQN Prefix, e.g. ‘iqn.2010-10.org.openstack’ |
Variable Naming Scheme
Bases: nova.virt.driver.ComputeDriver
A connection to XenServer or Xen Cloud Platform.
Add a compute host to an aggregate.
Attach volume storage to VM instance.
Apply a diff to the instance metadata.
Check if it is possible to execute live migration.
Parameters: |
|
---|
Do required cleanup on dest host after check_can_live_migrate calls
Parameters: |
|
---|
Check if it is possible to execute live migration.
This checks if the live migration can succeed, based on the results from check_can_live_migrate_destination.
Parameters: |
|
---|
Confirms a resize, destroying the source VM.
Destroy VM instance.
Detach volume storage to VM instance.
Completes a resize, turning on the migrated instance.
Finish reverting a resize, powering back on the instance.
Return bandwidth usage counters for each interface on each running VM
Retrieve resource info.
This method is called when nova-compute launches, and as part of a periodic task.
Parameters: | nodename – ignored in this driver |
---|---|
Returns: | dictionary describing resources |
Return snapshot of console.
Return data about VM diagnostics.
Return the current state of the host. If ‘refresh’ is True, run the update first.
Returns the result of calling “uptime” on the target host.
Return data about VM instance.
Used by libvirt for live migration. We rely on xenapi checks to do this for us.
Get information about instance resource usage.
Returns: | dict of nova uuid => dict of usage |
---|
info
Return link to instance’s VNC console.
Return volume connector information.
Start/Stop host maintenance window. On start, it triggers guest VMs evacuation.
The only valid values for ‘action’ on XenServer are ‘reboot’ or ‘shutdown’, even though the API also accepts ‘startup’. As this is not technically possible on XenServer, since the host is the same physical machine as the hypervisor, if this is requested, we need to raise an exception.
Create a file on the VM instance. The file path and contents should be base64-encoded.
inject network info for specified instance.
Indicate if the driver requires the legacy network_info format.
Get the list of nova instance uuids for VMs found on the hypervisor.
List VM instances.
Performs the live migration of the specified instance.
Params ctxt: | security context |
---|---|
Params instance_ref: | |
nova.db.sqlalchemy.models.Instance object instance object that is migrated. | |
Params dest: | destination host |
Params post_method: | |
post operation method. expected nova.compute.manager.post_live_migration. | |
Params recover_method: | |
recovery method when any exception occurs. expected nova.compute.manager.recover_live_migration. | |
Params block_migration: | |
if true, migrate VM disk. | |
Params migrate_data: | |
implementation specific params |
Transfers the VHD of a running instance to another host, then shuts off the instance copies over the COW disk
Pause VM instance.
Plug VIFs into networks.
Poll for rebooting instances.
Post operation of live migration at destination host.
Params ctxt: | security context |
---|---|
Params instance_ref: | |
nova.db.sqlalchemy.models.Instance object instance object that is migrated. | |
Params network_info: | |
instance network information |
:params : block_migration: if true, post operation of block_migraiton.
Power off the specified instance.
Power on the specified instance.
Used by libvirt for live migration. We rely on xenapi checks to do this for us. May be used in the future to populate the vdi/vif maps
Preparation live migration.
Params block_device_info: | |
---|---|
It must be the result of _get_instance_volume_bdms() at compute manager. |
Reboot VM instance.
Updates security group rules for specified instance.
Invoked when instances are added/removed to a security group or when a rule is added/removed to a security group.
Updates security group rules for all instances associated with a given security group.
Invoked when instances are added/removed to a security group.
Updates security group rules for all instances associated with a given security group.
Invoked when security group rules are updated.
Remove a compute host from an aggregate.
Rescue the specified instance.
reset networking for specified instance.
Restore the specified instance.
resume the specified instance.
resume guest state when a host is booted.
Set the root/admin password on the VM instance.
Sets the specified host’s ability to accept new instances.
Create snapshot from a running VM instance.
Soft delete the specified instance.
Create VM instance.
suspend the specified instance.
Undo aggregate operation when pool error raised.
Removes security groups configured for an instance.
Unpause paused VM instance.
Unplug VIFs from networks.
Unrescue the specified instance.
Bases: object
The session to invoke XenAPI SDK calls.
Call host.call_plugin on a background thread.
Call the specified XenAPI method on a background thread.
Retrieve all refs and recs for a Xen record type.
Handles race-conditions where the record may be deleted between the get_all call and the get_record call.
Return a string session_id. Used for vnc consoles.
Return the xenapi host on which nova-compute runs on.