Table Of Contents

Previous topic

The cinder.volume.nexenta.jsonrpc Module

Next topic

The cinder.volume.nfs Module

This Page

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

The cinder.volume.nexenta.volume Module

nexenta.volume – Driver to store volumes on Nexenta Appliance

class NexentaDriver

Bases: cinder.volume.driver.ISCSIDriver

Executes volume driver commands on Nexenta Appliance.

check_for_setup_error()

Verify that the volume for our zvols exists.

Raise :LookupError
create_export(_ctx, volume)

Create new export for zvol.

Parameters:volume – reference of volume to be exported
Returns:iscsiadm-formatted provider location string
create_snapshot(snapshot)

Create snapshot of existing zvol on appliance.

Parameters:snapshot – shapshot reference
create_volume(volume)

Create a zvol on appliance.

Parameters:volume – volume reference
create_volume_from_snapshot(volume, snapshot)

Create new volume from other’s snapshot on appliance.

Parameters:
  • volume – reference of volume to be created
  • snapshot – reference of source snapshot
delete_snapshot(snapshot)

Delete volume’s snapshot on appliance.

Parameters:snapshot – shapshot reference
delete_volume(volume)

Destroy a zvol on appliance.

Parameters:volume – volume reference
do_setup(context)
ensure_export(_ctx, volume)

Recreate parts of export if necessary.

Parameters:volume – reference of volume to be exported
local_path(volume)

Return local path to existing local volume.

We never have local volumes, so it raises NotImplementedError.

Raise :NotImplementedError
remove_export(_ctx, volume)

Destroy all resources created to export zvol.

Parameters:volume – reference of volume to be unexported