Previous topic

The nova.virt.xenapi.volume_utils Module

Next topic

The nova.vnc.xvp_proxy Module

This Page

Psst... hey. You're reading the latest content, but it might be out of sync with code. You can read Nova 2011.2 docs or all OpenStack docs too.

The nova.virt.xenapi.volumeops Module

Management class for Storage-related functions (attach, detach, etc).

class VolumeOps(session)

Bases: object

Management class for Volume-related tasks

attach_volume(connection_info, instance_name, mountpoint)

Attach volume storage to VM instance

create_sr(label, params)
create_volume_for_sm(volume, sr_uuid)
delete_volume_for_sm(vdi_uuid)
detach_volume(connection_info, instance_name, mountpoint)

Detach volume storage to VM instance

forget_sr(sr_uuid)
introduce_sr(sr_uuid, label, params)
is_sr_on_host(sr_uuid)