A connection to 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
This method is supported only by libvirt.
Confirms a resize, destroying the source VM
Destroy VM instance
Detach volume storage to VM instance
This method is supported only libvirt.
Completes a resize, turning on the migrated instance
Finish reverting a resize, powering back on the instance
Return bandwidth usage info for each interface on each running VM
Return snapshot of console
Return data about VM diagnostics
Return the current state of the host. If ‘refresh’ is True, run the update first.
Return data about VM instance
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.
List VM instances
This method is supported only by libvirt.
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
Poll for rescued instances
Power off the specified instance
Power on the specified instance
Reboot VM instance
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
resume the specified instance
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
Create VM instance
suspend the specified instance
Removes security groups configured for an instance.
Unpause paused VM instance
Unplug VIFs from networks.
Unrescue the specified instance
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: |
|
---|
Update the status info of the host, and return those values to the calling program.
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.
Stubout point. This can be replaced with a mock xenapi module.
Return a string session_id. Used for vnc consoles.
Return the xenapi host on which nova-compute runs on.